The Approximation of Harmony
The musical scale is arguably humanity’s oldest algorithm for beauty. Music theory can seem intimidating (for instance, I probably should have learned tuning theory back in 16 when I was sitting in orchestra). But it’s actually quite straightforward. Imagine you’re a piano designer: you want your instrument to sound nice, but you also don’t want it to have an infinite number of keys. Axiom 1 (Sounding nice) Two notes sound consonant when their frequencies form a ratio of small integers. The simpler the ratio, the more pleasant the sound. For example, a perfectly harmonic octave has a ratio of $2:1$, and a nice fifth has $3:2$. ...