Why Music Is Mathematics: Setting the Stage
Why Music Is Mathematics: Setting the Stage
Strike a single key on a piano, then strike another exactly one octave higher and let both notes ring together. Hold that chord for a few seconds and listen carefully. Now release everything, find the key for C, then stretch your hand up the keyboard to F-sharp and play them simultaneously. The two experiences could hardly be more different. The first feels like the two notes were always meant to belong together, as if the higher C is a natural echo of the lower one rather than a separate event. The second feels unstable, even unsettling: a friction in the air, a question demanding resolution. Both experiences are entirely subjective, yet they are also remarkably universal. Musicians across centuries and continents tend to agree on which intervals feel "right" and which feel "tense," and that agreement has a name in Western tradition: *consonance* and *dissonance*. The first purpose of this chapter is to ask a simple, stubborn question. Why? Why should the ear behave this way? Why should something as abstract as the ratio between two numbers, $2:1$ in one case and roughly $45:32$ in the other, produce such strikingly different feelings in the listener? The answer is not philosophical speculation; it is measurement, geometry, and the physics of vibrating strings. The math is not an external ornament hung on music for the pleasure of intellectuals. The math is what music *is*.
The Historical Entanglement of Music and Mathematics
The idea that music is a branch of mathematics is older than the word "mathematics" itself. For the Pythagoreans of the sixth century BCE, music was not a separate art to be studied alongside numbers. It *was* numbers, audible. The school is reported to have walked past blacksmiths, heard the ringing of different sized hammers on an anvil, and noticed that certain combinations produced pleasing sounds while others produced harsh ones. The ancient legend, preserved by later writers like Boethius, has it that Pythagoras weighed the hammers and found that those whose weights stood in simple ratios produced the most consonant intervals. The story is almost certainly false in its details: a vibrating anvil produces a complicated spectrum, and the actual pitch of a hammer stroke has more to do with the mass of the anvil than with the hammer. But the conclusion the legend points toward is correct, and that is what matters. The Greeks did not invent the relationship between ratios and music; they *discovered* it.
What they discovered, through careful experiments with stretched strings of different lengths, was that the perceptual quality of an interval depends on how the two frequencies relate to each other as a ratio. A string that is exactly half as long as another vibrates at twice the frequency, and the two notes produced are separated by an octave. A string that is two-thirds as long as another produces a note that lies a perfect fifth above the lower one. A string that is three-quarters as long as another produces a note that lies a perfect fourth above the lower one. These were not metaphors or symbolic connections. The Greek theorists believed that the human soul recognized these ratios because the soul itself was, in some sense, a tuning system, and consonance was the experience of two vibrations arriving at a common mathematical proportion.
This conviction persisted for more than two thousand years. In the second century CE, Claudius Ptolemy codified a system of tuning known as *just intonation*, in which every interval was defined by a precise rational ratio derived from the harmonic series. Ptolemy organized the diatonic scale into a hierarchy of pure intervals, and he did so using arithmetic relationships that look startlingly modern. His system allowed for small but real disagreements with other theorists of his era: Aristoxenus, who had argued that the ear, not the ratio, should be the final judge, and Archytas, who attempted to ground the entire scale in the simplest possible ratios $1:1$, $1:2$, $2:3$, $3:4$, and so on. Each of these thinkers knew that the question of how to tune an instrument was also, fundamentally, a question about the structure of numbers.
The medieval and early modern periods inherited this assumption without serious challenge. Boethius, in the fifth century, divided all music into three kinds: *musica mundana*, the music of the spheres; *musica humana*, the music of the human body and soul; and *musica instrumentalis*, the music one actually played on instruments. All three were governed by the same numerical laws. Gioseffo Zarlino, in his *Le istitutioni harmoniche* of 1558, gave the most influential codification of Renaissance tuning and made the ratios explicit. The major third, he argued, was not the ugly compromise it had once been considered but a perfect 5:4 ratio, on par with the older perfect consonances. The entire system of tonal harmony that was about to take over Western music would be built on Zarlino's ratios, even as composers and performers gradually moved away from them in actual practice.
The seventeenth century brought two developments that complicated the Pythagorean inheritance. First, Marin Mersenne and others worked out the physical laws of vibrating strings, showing that pitch is determined by length, tension, and density in ways that could be measured precisely. Second, the rise of *equal temperament*, the system of tuning in which the octave is divided into twelve equal semitones, gradually replaced just intonation in practice. Equal temperament deliberately distorts the pure ratios of Zarlino's system so that every key sounds equally (slightly) out of tune. This compromise made it possible to modulate freely around the circle of fifths, to play in C major and C-sharp major on the same instrument, and to compose the increasingly chromatic music of the Baroque and Classical eras. For some theorists, equal temperament was a pragmatic surrender of mathematical purity. For others, it was the beginning of a new and richer mathematical understanding, one that would not replace ratios but place them inside a larger framework of compromise, modulation, and mod-12 arithmetic.
The eighteenth century saw the first serious mathematical theories of harmony as such. Jean-Philippe Rameau, in his *Traité de l'harmonie* of 1722, argued that all harmony derives from a single principle: the *fundamental bass*, the lowest note in any chord, to which the other notes are related by the simple ratios of the harmonic series. A chord is not a stack of intervals, in Rameau's view; it is a single physical object, the chord being the expression of the overtones of an imagined fundamental. This was a revolutionary idea, and it brought music theory into contact with the new physics of vibration pioneered by Mersenne and Savart. Leonhard Euler, the most prolific mathematician of the century, took the idea further in his *Tentamen novae theoriae musicae* of 1739. Euler proposed that musical pleasure arises from the mind's recognition of order, and that the most consonant intervals are those in which the two notes can be expressed as the simplest possible fractions. The octave is $2:1$, the perfect fifth is $3:2$, the perfect fourth is $4:3$, the major third is $5:4$. Consonance is a kind of "gradual" perception in which the mind, sensing the order in the vibrations, experiences satisfaction. Dissonance is the absence of such recognition, and the listener feels unease.
The nineteenth century added experimental psychology to the mix. Hermann von Helmholtz, in his *On the Sensations of Tone* of 1863, combined the physics of vibration, the mathematics of ratios, and the physiology of the inner ear into a single comprehensive theory. Helmholtz proposed that consonance and dissonance were not mental categories imposed on a neutral sound world; they were direct consequences of how the cochlea of the inner ear responds to simultaneous vibrations.