1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
mod chord;
mod constants;
pub mod errors;
mod instrument;
mod note;
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;

pub use crate::errors::Error;
pub type Result<T> = core::result::Result<T, Error>;

pub use chord::Chord;
pub use constants::dynamic;
pub use constants::rhythm;
pub use instrument::Instrument;
pub use note::{compute_pitch, pitch_info, Accidental, Note, NoteName};
pub use part::Part;
pub use phrase::{Phrase, PhraseEntry};
pub use score::{Metadata, Mode, Score, Tempo};

pub use midly;
pub use midly::num;