Skip to main content

Variable: scaleIntervals

const scaleIntervals: object;

Defined in: midi.ts:154

Semitones above the root, for each supported scale.

Every entry starts at 0 and stays inside one octave, so a scale is a set of pitch classes rather than a set of notes: inScale compares against it with the octave taken out.

ionian and aeolian are the same sets as major and naturalMinor; both spellings are here because both are what someone reaches for depending on whether they are thinking in keys or in modes.

Type Declaration​

aeolian​

readonly aeolian: readonly [0, 2, 3, 5, 7, 8, 10];

blues​

readonly blues: readonly [0, 3, 5, 6, 7, 10];

chromatic​

readonly chromatic: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];

dorian​

readonly dorian: readonly [0, 2, 3, 5, 7, 9, 10];

harmonicMinor​

readonly harmonicMinor: readonly [0, 2, 3, 5, 7, 8, 11];

ionian​

readonly ionian: readonly [0, 2, 4, 5, 7, 9, 11];

locrian​

readonly locrian: readonly [0, 1, 3, 5, 6, 8, 10];

lydian​

readonly lydian: readonly [0, 2, 4, 6, 7, 9, 11];

major​

readonly major: readonly [0, 2, 4, 5, 7, 9, 11];

majorPentatonic​

readonly majorPentatonic: readonly [0, 2, 4, 7, 9];

melodicMinor​

readonly melodicMinor: readonly [0, 2, 3, 5, 7, 9, 11];

minorPentatonic​

readonly minorPentatonic: readonly [0, 3, 5, 7, 10];

mixolydian​

readonly mixolydian: readonly [0, 2, 4, 5, 7, 9, 10];

naturalMinor​

readonly naturalMinor: readonly [0, 2, 3, 5, 7, 8, 10];

phrygian​

readonly phrygian: readonly [0, 1, 3, 5, 7, 8, 10];

wholeTone​

readonly wholeTone: readonly [0, 2, 4, 6, 8, 10];