unique id for this scale(auto generated)
will generate the notes if needed or return the cached notes
The octave is clamped to the range [0, 9].
The octave is clamped to the range [0, 9].
The following Pre-defined templates are available:
major | minor | ionian | dorian |
phrygian | lydian | mixolydian | aeolian |
locrian | enigmaticMajor | enigmaticMinor | minor7b5 |
major7s4s5 | harmonicMajor | harmonicMinor | doubleHarmonic |
melodicMinorAscending | melodicMinorDescending | majorPentatonic | majorPentatonicBlues |
minorPentatonic | minorPentatonicBlues | b5Pentatonic | minor6Pentatonic |
dim8Tone | dom8Tone | neopolitanMajor | neopolitanMinor |
hungarianMajor | hungarianMinor | hungarianGypsy | spanish |
spanish8Tone | spanishGypsy | augmented | dominantSuspended |
bebopMajor | bebopDominant | mystic | overtone |
leadingTone | hirojoshi | japaneseA | japaneseB |
oriental | arabian | persian | balinese |
kumoi | pelog | algerian | chinese |
mongolian | egyptian | hindu | romanian |
hindu | insen | iwato | scottish |
yo | istrian | ukranianDorian | petrushka |
ahavaraba | halfDiminished | jewish | byzantine |
acoustic |
a copy of this scale in the Aeolian(minor) mode
Returns a copy of this Scale
a copy of this Scale
degree returns a note that represents the given degree
the degree to return
a note that represents the given degree
a copy of this scale in the Dorian mode
Returns true if this scale is equal to the given scale
the scale to compare to
true if the scales are equal
returns the names of the notes in the scale
the names of the notes in the scale
a copy of this scale in the Ionian(major) mode
a copy of this scale in the Locrian mode
a copy of this scale in the Lydian mode
a copy of this scale in the Mixolydian mode
a copy of this scale in the Phrygian mode
relative major returns a new scale that is the relative major of this scale - takes the 3rd degree as it's key
a new scale that is the relative major of this scale
relative minor returns a new scale that is the relative minor of this scale - takes the 6th degree as it's key
a new scale that is the relative minor of this scale
shift shifts the scale by the given number of degrees
a new scale that is the shifted scale
shifted returns a copy of this scale shifted by the given number of degrees
the number of degrees to shift the scale
a copy of this scale shifted by the given number of degrees
returns the amount that the scale has shifted (0 if not shifted)
the amount that the scale has shifted (0 if not shifted)
returns string version of the scale
string version of the scale
unshift shifts the original root back to the root position
this scale after unshifting it back to the original root position
unshifted returns a copy of this scale with the tonic shifted back to the root position
a copy of this scale with the tonic shifted back to the root position
Generated using TypeDoc
Scales consist of a key(tonic or root) and a template(array of integers) that
represents the interval of steps between each note.
Scale intervals are represented by an integer
that is the number of semitones between each note.
0 = key - will always represent the tonic
1 = half step
2 = whole step
3 = one and one half steps
4 = double step
[0, 2, 2, 1, 2, 2, 2] represents the major scale
Scale templates may have arbitray lengths
The following Pre-defined templates are available: