Module notes

Source
Expand description

this modules implements the various representations of musical notes, octaves, and pitches.

Modules§

aspn
an implementation of the American Scientific Pitch Notation (ASPN) for musical notes.

Structs§

AccidentalStateIter
An iterator over the variants of AccidentalState
Aspn
An american scientific pitch notation (Aspn) representation of a musical note; this standard is used to represent notes in a way that is consistent with the American scientific pitch notation system, which uses a combination of a pitch class (represented as an integer) and an octave (represented as an Octave) to uniquely identify a musical note. The pitch class is the note’s position in the chromatic scale, while the octave indicates the note’s position in the musical range.
NoteBase
The NoteBase is a generic representation of a musical note

Enums§

Accidental
Accidental enumerates the two alternative states a note make take, either sharp or flat and their respective states, single or double.
AccidentalState

Traits§

AsAspn
The AsAspn trait is used to convert a reference into a Aspn
IntoAspn
A trait for converting a type into a Aspn