Number of an canonical notes (12).
Accidentals abbreviations.
Names of canonical notes ('c', 'c#', 'd',...).
NoteAccidental associated to diatonic intervals.
Names of diatonic intervals ('unison', 'm2', 'M2',...).
Semitones shift associated to intervals .
Note values.
Indices of the root notes.
Values of the root notes.
Names of root notes ('c', 'd',...)
Scales associated with m (minor) and M (major).
Semitones shifts associated with scales.
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.
Return root, accidental and type associated to a key.
Return root and accidental associated to a note.
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).
Music implements some standard music theory routines.