Skip to content

Commit

Permalink
repo: add .vscode to gitignore and add a few missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paveyry committed Dec 21, 2023
1 parent 9c077f5 commit 556f8f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -8,3 +8,5 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

.vscode
1 change: 1 addition & 0 deletions examples/scales_example.rs
Expand Up @@ -7,6 +7,7 @@ use rust_music::{
Instrument, Note, NoteName, Part, Phrase, Score, Tempo,
};

// This example requires the `composition` feature.
fn main() -> Result<(), Box<dyn Error>> {
// Create a simple C Minor Scale on octave 4 (this requires the `composition` feature)
let s = Scale::new(
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Expand Up @@ -7,6 +7,9 @@ mod part;
mod phrase;
pub mod score;

// The `composition` feature enables the composition module which contains various
// utilities that simplify music composition, for example by streamlining the creation
// of common musical structures using music theory.
#[cfg(feature = "composition")]
pub mod composition;

Expand Down

0 comments on commit 556f8f1

Please sign in to comment.