62Music

How a musical scale is built

A scale is a pattern of steps. Build major and minor scales on any note, see why an octave has twelve equal steps, stack fifths and find the gap that never closes.

Keyboard

Seven notes, one pattern

A piano has 12 different notes in each octave, counting the black keys. A scale picks some of them. The most familiar scale uses seven, and it is built from a short pattern of steps. Start from any note and follow the pattern, and you get a scale that sounds the same, only higher or lower.

Four things to try. Build scales from a pattern of steps and hear them. See why an octave is split into twelve equal steps, and what each step does to the frequency. Stack fifths and find out why twelve of them do not quite come home. And listen to a scale and say whether it is major or minor. The patterns and the sums are worked out by the page. Without a script each part shows one picture or table.

First key

Build a scale

The smallest step on a piano is a half step, from one key to the very next, black or white. Two half steps make a whole step. The major scale goes whole, whole, half, whole, whole, whole, half. Count the steps on the keys and you reach the same note an octave higher. The natural minor scale goes whole, half, whole, whole, half, whole, whole. The pentatonic scales use only five notes, and some of their gaps are three half steps.

Pick a starting note and a kind of scale. The lit keys are the scale. The gaps are shown as W for a whole step and H for a half step, or a number of half steps for a bigger gap. The page names notes with sharps only, so a scale that musicians would write with flats shows the sharp name instead.

C major: C4, D4, E4, F4, G4, A4, B4, C5. Gaps: W W H W W W H.

Second key

Twelve equal steps

Going up an octave doubles the frequency. In the usual tuning, equal temperament, the octave is split into 12 equal steps, and each step multiplies the frequency by the same number. Twelve steps must make 2, so each step multiplies by the twelfth root of 2, which is about 1.0595. The note A above middle C is set at 440 hertz, a standard fixed in 1939.

Slide the number of steps up from A. The page shows the frequency and the multiplier. At 12 steps you are at 880 hertz, exactly double.

Frequencies of the twelve steps up from A at 440 hertz
StepsNoteTimesHertz
0A1.0000440.00
1A#1.0595466.16
2B1.1225493.88
3C1.1892523.25
4C#1.2599554.37
5D1.3348587.33
6D#1.4142622.25
7E1.4983659.26
8F1.5874698.46
9F#1.6818739.99
10G1.7818783.99
11G#1.8877830.61
12A2.0000880.00

A is 440.00 hertz. Each step multiplies by 1.0595, and twelve of them double the frequency.

Third key

Stacking fifths

The most natural interval after the octave is the fifth, where the frequencies are in the ratio 3 to 2. Start on C and go up a fifth to G, then D, A, E, B and so on. After 12 fifths you come back to a C, but it does not quite match. Twelve fifths of 3 to 2 overshoot seven octaves by a small gap of about 23.46 cents, a quarter of a half step. It is called the Pythagorean comma.

Equal temperament solves this by making every fifth a little narrow, by about 2 cents. A just fifth is 701.96 cents and an equal tempered fifth is exactly 700. Slide the number of fifths and see how the pure stack drifts away from the equal notes.

Stacking fifths from C: the note, the stack in cents and the gap to equal temperament
FifthsNotePure stack (cents)Equal (cents)Gap
1G702.07001.96
2D203.92003.91
3A905.99005.87
4E407.84007.82
5B1,109.81,1009.78
6F#611.760011.73
7C#113.710013.69
8G#815.680015.64
9D#317.630017.60
10A#1,019.61,00019.55
11F521.550021.51
12C23.5023.46

After 12 fifths the pure stack is 23.46 cents above the start, which should be exactly back at the start. This gap is the Pythagorean comma.

Fourth key

Major or minor

Major and minor scales differ by where the half steps fall. In a major scale the third note is a whole step plus a whole step above the first. In minor it is a whole step plus a half step. Many people hear major as bright and minor as darker, though that is a matter of taste and culture.

Press Play to hear a scale on a random starting note, then say which kind it was. Turn the sound on first.

  • Major: whole, whole, half, whole, whole, whole, half.
  • Natural minor: whole, half, whole, whole, half, whole, whole.

Press play, listen, then choose. Turn the sound on first.

Right 0, wrong 0.

Key takeaways

  1. A scale is a pattern of steps. The major scale is whole, whole, half, whole, whole, whole, half, and the natural minor is whole, half, whole, whole, half, whole, whole.
  2. An octave doubles the frequency. Equal temperament splits it into 12 equal steps, each step times about 1.0595. A above middle C is 440 hertz.
  3. A fifth in tune is a ratio of 3 to 2, about 701.96 cents. Twelve of them overshoot seven octaves by about 23.46 cents, the Pythagorean comma.
  4. Equal temperament makes each fifth exactly 700 cents, about 2 cents narrow, so the circle of fifths closes.
  5. The pentatonic scales use five notes and have bigger gaps.

Sources

Some of these sites could not be opened while this page was written, so some facts were checked through search results that quote them. The major scale as whole, whole, half, whole, whole, whole, half with the offsets 0, 2, 4, 5, 7, 9 and 11, the natural minor as whole, half, whole, whole, half, whole, whole with 0, 2, 3, 5, 7, 8 and 10, the equal temperament step of the twelfth root of 2, A above middle C at 440 hertz, standardised in 1939 (before that between about 415 and 466 hertz), the fifth as 3 to 2 and 701.96 cents against 700 in equal temperament, and the Pythagorean comma of 531441 over 524288, or 23.46 cents, each appeared in at least two places. The pentatonic patterns (0, 2, 4, 7, 9 and 0, 3, 5, 7, 10) are standard but were not confirmed by the sources checked here. The sums on the page are computed. The remark that major sounds bright and minor darker is a common view and is marked as a matter of taste.