The Mathematics of Musical Harmony
The connection between mathematics and music runs deeper than any other art form. Pythagoras discovered that harmonious intervals correspond to simple whole-number frequency ratios: the octave is 2:1, the perfect fifth is 3:2, the perfect fourth is 4:3. This discovery — that beauty has mathematical structure — has fascinated thinkers for over 2,500 years and remains one of the most profound connections between science and art.
Consonance and the Simplicity of Ratios
When two notes with a simple frequency ratio sound together, their combined waveform repeats at a regular period, and the ear perceives smoothness. A 3:2 ratio means the waveform repeats every 2 cycles of the higher note and 3 of the lower. Complex ratios like 45:32 (tritone) create waveforms that take many cycles to repeat, producing the tension and restlessness that characterizes dissonance. This simulation visualizes these interference patterns directly.
Tuning Systems and the Compromise
A fundamental problem in music theory: you cannot have all intervals be simultaneously pure. Stacking 12 perfect fifths (3:2) does not exactly equal 7 octaves — it overshoots by the Pythagorean comma (23.46 cents). Tuning systems represent different compromises. Just intonation keeps key intervals pure but limits modulation. Equal temperament distributes the comma equally among 12 semitones, making every key equally slightly impure but enabling free modulation.
Visualizing Interval Quality
The combined waveform of two notes reveals their harmonic relationship at a glance. Consonant intervals produce organized, periodic patterns. Dissonant intervals produce chaotic, aperiodic patterns. The boundary between consonance and dissonance is not sharp — it's a gradient that depends on context, culture, and musical training. But the physics of wave interference provides the foundation upon which musical aesthetics are built.