Lesson 4 of 15
Major & Minor Scales
Scales
A scale is an ordered set of notes within an octave, defined by intervals between consecutive notes.
Major Scale (Ionian Mode)
The major scale has a bright, happy character. Intervals in semitones:
W W H W W W H
2 2 1 2 2 2 1
(W = whole step = 2 semitones, H = half step = 1 semitone)
Starting from MIDI root: add [0, 2, 4, 5, 7, 9, 11, 12] semitones.
Natural Minor Scale (Aeolian Mode)
The natural minor scale sounds darker and more melancholic:
W H W W H W W
2 1 2 2 1 2 2
Intervals from root: [0, 2, 3, 5, 7, 8, 10, 12]
Example: C Major
MIDI: 60, 62, 64, 65, 67, 69, 71, 72
Note: C4 D4 E4 F4 G4 A4 B4 C5
Example: A Minor
MIDI: 69, 71, 72, 74, 76, 77, 79, 81
Note: A4 B4 C5 D5 E5 F5 G5 A5
Your Task
Implement scaleNotes(root, isMinor) that returns an array of 8 MIDI note numbers.
Run your code to hear a major scale ascend.
Web Audio API loading...
Loading...
Click "Run" to execute your code.