mathrixhome

Why the piano is out of tune on purpose

Stack up twelve perfect fifths and you should land exactly seven octaves higher. You don't quite. That small gap is why pianos are tuned the way they are.

A perfect fifth is the ratio 3:2: one string vibrating half again as fast as the other. An octave is 2:1. Nobody chose these. They're what you get when two string lengths line up in simple whole numbers, and that's why they sound settled.

So twelve fifths up and seven octaves down should land you back where you began. The arithmetic disagrees. (3/2)12 over27 comes to 531441 / 524288, which isn't 1. The leftover is 23.46 cents, about a quarter of a semitone. It's called the Pythagorean comma. Too small to bother you in one chord, too big to hide across 88 keys.

What equal temperament does about it

Equal temperament shares the error out evenly. Every semitone becomes exactly 21/12, so twelve of them close the octave with nothing left over. The trade is that now only the octave is properly in tune. Everything else is slightly off, deliberately, and off by the same amount in every key. That last part is what makes it worth doing: you can play in any key and it sounds equally fine.

intervalratiojustequalerrorhear it
unison1:10.000.0
minor second16:15111.7100-11.7
major second9:8203.9200-3.9
minor third6:5315.6300-15.6
major third5:4386.3400+13.7
perfect fourth4:3498.0500+2.0
tritone45:32590.2600+9.8
perfect fifth3:2702.0700-2.0
minor sixth8:5813.7800-13.7
major sixth5:3884.4900+15.6
minor seventh16:9996.11000+3.9
major seventh15:81088.31100+11.7
octave2:11200.012000.0
Cents above the root; 100 cents is a semitone. “Error” is the distance between equal temperament and the whole-number ratio. The worst is the minor third, off by -15.6 cents. That's why minor thirds on a piano never sound quite settled, and never have.

Hear it for yourself

Press both on any row and you'll hear the just interval and the equal-tempered one at the same time, over a shared root. On the fourth and the fifth they're so close you just hear one steady note. On the major third they aren't, and you get beating instead: a slow throb as the two waves slide in and out of step. The throb happens once per hertz of difference between them. You're listening to the tuning error directly.

Root is A220. The just third is 275.0 Hz (5:4), the equal-tempered one 277.2 Hz. Just over two hertz apart, so you get roughly two beats a second. That's the slow pulse on the third button.