StaticaccidentalsAccidentals abbreviations.
StaticcanonicalNames of canonical notes ('c', 'c#', 'd',...).
StaticdiatonicNoteAccidental associated to diatonic intervals.
StaticdiatonicNames of diatonic intervals ('unison', 'm2', 'M2',...).
StaticintervalsSemitones shift associated to intervals .
StaticnoteNote values.
StaticNUM_Number of an canonical notes (12).
StaticrootIndexes of the root notes.
StaticrootsNames of root notes ('c', 'd',...)
StaticrootValues of the root notes.
StaticscalesSemitones shifts associated with scales.
StaticscaleScales associated with m (minor) and M (major).
Create a scale map that represents the pitch state for a
keySignature. For example, passing a G to keySignature would
return a scale map with every note naturalized except for F which
has an F# state.
Interval name associated to a value.
Canonical note name associated to a value.
Return the interval of a note, given a diatonic scale. e.g., given the scale C, and the note E, returns M3.
Interval value associated to an interval name.
Note value associated to a note name.
Given a root and note value, produce the relative note name.
Given a note, interval, and interval direction, produce the relative note.
Return scale tones, given intervals. Each successive interval is relative to the previous one, e.g., Major Scale:
TTSTTTS = [2,2,1,2,2,2,1]
When used with key = 0, returns C scale (which is isomorphic to interval list).
ProtectedisProtectedis
Music implements some standard music theory routines.