Static
accidentalsAccidentals abbreviations.
Static
canonicalNames of canonical notes ('c', 'c#', 'd',...).
Static
diatonicNoteAccidental associated to diatonic intervals.
Static
diatonicNames of diatonic intervals ('unison', 'm2', 'M2',...).
Static
intervalsSemitones shift associated to intervals .
Static
noteNote values.
Static
NUM_Number of an canonical notes (12).
Static
rootIndexes of the root notes.
Static
rootsNames of root notes ('c', 'd',...)
Static
rootValues of the root notes.
Static
scalesSemitones shifts associated with scales.
Static
scaleScales 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).
Protected
isProtected
is
Music implements some standard music theory routines.