Crate rust_music

Source

Re-exports§

pub use crate::errors::Error;
pub use score::Metadata;
pub use score::Mode;
pub use score::Score;
pub use score::Tempo;
pub use midly;

Modules§

composition
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.
dynamic
errors
num
Exotically-sized integers used by the MIDI standard.
rhythm
score

Structs§

Chord
Describes a set of notes played simultaneously
Note
Represents a music note, with a pitch, a rhythm, and a dynamic (volume)
Part
Describes a score’s part. A Part is played by a single instrument and can contain multiple phrases, played sequentially or simultaneously
Phrase
Describes a single musical phrase. Multiple Phrases can be stored in a Part. Phrases can be played in parallel too

Enums§

Accidental
Represents a note accidental
Instrument
Describes a MIDI instrument and stores valid standard MIDI instrument code
NoteName
Represents a note by name without a specific octave or accidental Supports both letters from A to G and traditional Do Re Mi … names
PhraseEntry
Describes the entries contains in a Phrase

Functions§

compute_pitch
Returns a pitch value based on the given pitch name, octave, and accidental
pitch_info
Returns the note name, accidental, and octave of the given pitch

Type Aliases§

Result