Logarithms and pitch
We hear pitch logarithmically: each octave doubles the frequency, so equal musical steps are equal ratios, not equal differences. Logarithms turn those ratios into sums — which is why cents, MIDI note numbers and the piano keyboard are all, in effect, logarithmic scales.
Also called: logarithmic pitch, log frequency; cents, MIDI numbers (English); Logarithmus, logarithmische Tonhöhe (German); échelle logarithmique (French); scala logaritmica (Italian).
| Note | Frequency (Hz) | MIDI number |
|---|---|---|
| A0 (lowest piano key) | 27.5 | 21 |
| A1 | 55 | 33 |
| A2 | 110 | 45 |
| A3 | 220 | 57 |
| A4 | 440 | 69 |
| A5 | 880 | 81 |
| A6 | 1760 | 93 |
| A7 | 3520 | 105 |
- Equal temperament: each half step multiplies the frequency by the twelfth root of 2 (about 1.0595).
- Cents: 1200 × log₂ of a frequency ratio — the octave is 1200 (see Cents).
- MIDI note number: 69 + 12 × log₂(f / 440) — middle C is 60.
- The keyboard itself is a logarithmic ruler: equal spaces for equal ratios.
The ear is not a perfect logarithm machine: pitch perception bends at the extremes (the mel scale was proposed to describe it), and very high octaves sound "small". But across the musical range, equal ratios sound like equal steps — the basis of transposition, of melody recognized in any key, and of all tuning arithmetic.
History
John Napier published logarithms in 1614. Music theorists soon saw their use: Joseph Sauveur (1701) divided the octave into 43 mérides, each of 7 heptamérides — 301 units, chosen because the common logarithm of 2 is about 0.301 — and Euler (1739) measured intervals logarithmically. Gustav Fechner’s psychophysics (1860) made logarithmic perception a general law; Alexander Ellis’s cents (1885) became the standard unit.
Where the words come from
- logarithm
- Napier’s coinage, from Greek logos "ratio" + arithmos "number": the number that measures a ratio.
Questions
Why does the piano’s top octave seem to have so little space between notes?
In frequency the steps are huge — hundreds of hertz — but they are the same ratios as at the bottom. What shrinks is our pitch resolution and the instrument’s sustain; logarithmically, every octave is the same size.
Read with it
Sources
- Joseph Sauveur, "Système général des intervalles des sons," Mémoires de l’Académie royale des sciences (1701).
- Leonhard Euler, Tentamen novae theoriae musicae (St. Petersburg, 1739).
- Alexander J. Ellis, "On the Musical Scales of Various Nations," Journal of the Society of Arts 33 (1885).