🎵

This Page Is Meant to Be Heard

Every sound on this page is synthesized in real time from pure mathematics.
Make sure your device isn't muted.

Set your volume to a comfortable level

The Mathematics of Sound

The Secret Life
of Sound

From Pythagoras to your smartphone

A violin and a flute both play A4 — the exact same note. So why do they sound completely different?
The answer is mathematics, and you can hear it for yourself.

01 — PHYSICS OF SOUND

Sound Is Air in Motion

At its core, sound is nothing more than pressure rippling through air. The simplest possible sound — a sine wave — is a single, pure frequency. Drag the sliders below to shape one yourself.

Click to play. Adjust volume as needed.
440 Hz — A4
440 Hz
0.60

02 — 2,500 YEARS AGO

Pythagoras and the Blacksmith

The story goes that Pythagoras walked past a blacksmith and noticed something strange: some pairs of hammers rang beautifully together, while others clashed. He investigated — and stumbled onto one of the deepest ideas in all of science:

"Harmony is born from simple ratios of whole numbers."

Click any interval below. The simpler the ratio, the more consonant the sound.

Both notes play at once
Combined waveform of two notes

03 — THE GREAT COMPROMISE

Just Intonation vs Equal Temperament

Just intonation sounds gorgeous — but it has a fatal flaw. You can't change key without retuning the entire instrument. The fix? Equal temperament: divide the octave into 12 identical steps, each a factor of 21/12 apart.

fₖ = f₀ × 2k/12    (one semitone = ¹²√2 ≈ 1.05946…)

Bach's Well-Tempered Clavier was, in part, a declaration that this compromise could produce great art. Below, you can hear what the compromise actually sounds like.

Listen closely — headphones recommended

03.5 — SIDE BY SIDE

Just vs Equal — Instrument by Instrument

Fretless instruments — violin, cello, trombone — give the player total control over pitch. They can play in just intonation, equal temperament, or anything in between. Hear the same chord both ways.

Headphones make the beating much easier to hear
Just Equal Difference
Just Intonation
Just Intonation
Equal Temperament
Equal Temperament
Plays 2 seconds of each in sequence

Why does this happen? — In just intonation, frequencies line up as exact integer ratios. Harmonics lock in. No beating. In equal temperament, those ratios are slightly off, and the misaligned harmonics create a slow pulsing called "beating." Professional string quartets and brass ensembles instinctively nudge toward just intonation when they want a chord to ring.

THE EXTREME LAB

Maximum Contrast

When is the gap between just and equal temperament largest? Three ingredients: sustained tone, rich harmonics, and a major third. That interval is 386.3¢ in just intonation versus 400¢ in equal temperament — a 13.7-cent gap that produces unmistakable beating in the upper partials.

Below, we simulate a brass ensemble (trombone) — rich, sustained harmonics that make every cent of difference audible.

Headphones strongly recommended — the contrast is striking
Just Intonation — Pure, No Beating
Equal Temperament — Audible Beating
Hear beating appear in real time

BACH'S SECRET

A Third Way: Well-Temperament

Bach's masterwork is called the Well-Tempered Clavier — not the Equal-Tempered Clavier. The distinction matters. Werckmeister III, the tuning Bach likely used, is neither just intonation nor modern 12-TET. It's a third path entirely.

Three Systems at a Glance

Just Intonation: Pure integer ratios → flawless harmony, but no modulation
Well-Temperament (Werckmeister III): 4 fifths narrowed by 1/4 Pythagorean comma, remaining 8 are pure 3:2 — all keys playable, each with its own personality
Equal Temperament (12-TET): Every semitone = 21/12 → all keys identical, no color

The Color of Every Key

In Werckmeister III, C major's third is 390¢ — warm, nearly pure. F# major's third is 408¢ — bright, Pythagorean, tense. Click any key to hear its character.

Hear the selected key's major triad in all three systems
Just Intonation
Just Intonation
Integer ratios
Well-Temperament
Werckmeister III
Bach's tuning
Equal Temperament
Equal Temperament
12-TET

What Bach Actually Did — Well-temperament's genius is that every key works, but none sound alike. C major is warm and nearly pure; F# major crackles with tension. Bach's 24 preludes and fugues weren't proving that all keys are equal — they were celebrating that each one is different.

A Common Misunderstanding — Werckmeister III is not a system of pure integer ratios. Four of its fifths (C-G, G-D, D-A, B-F#) are each narrowed by ¼ of the Pythagorean comma — landing at roughly 696.09 cents, an irrational number. The other eight fifths stay pure at 3:2 (701.96 cents). This is what separates it from just intonation.

04 — A RADICAL IDEA, 1822

Fourier: He Was Studying Heat

Joseph Fourier wasn't thinking about music at all — he was trying to understand how heat flows through metal. But along the way, he made a staggering claim: "Any waveform, no matter how complex, is just sine waves added together." The establishment pushed back. He was right.

f(t) = Σ aₙ · sin(nωt + φₙ)

Use the sliders below to add harmonics one at a time. Watch a complex waveform emerge from nothing but sine waves.

Harmonic Synthesizer

Drag sliders to shape the sound — each controls one harmonic
Resulting Waveform

Chords — play the current timbre as a chord

Tuning System

05 — MYSTERY SOLVED

Same Note, Different Voice

A violin and a flute can both play A4 at exactly 440 Hz — yet they sound nothing alike. The secret: their overtone fingerprints are different. The Fourier coefficients aₙ are timbre.

Violin

Rich harmonics — warm, complex tone

Flute

Fundamental dominates — pure, airy tone

06 — AN OPEN QUESTION

Is Your Brain Running a Fourier Transform?

Inside your ear, the cochlea's basilar membrane vibrates at different positions for different frequencies — it's a biological spectrum analyzer. It's just 3.5 cm long, yet it covers the full range of a concert piano.

Cochlea Simulator

Sweep the frequency and watch the resonance point travel along the spiral. Click to hear the tone.

440 Hz

What's Similar

The cochlea physically decomposes sound into frequency bands — functionally, a Fourier-like operation

What's Different

Finite time windows, log-spaced frequency resolution, nonlinear amplification via outer hair cells — not a textbook FFT

"Fourier cracked half the puzzle in 1822.
Neuroscience is still working on the rest."

07 — FOURIER'S CHILDREN

Mathematics in Your Pocket

Why does a CD sample audio 44,100 times per second? Because of the Nyquist-Shannon theorem.

fsampling ≥ 2 × fmax    (44,100 ≥ 2 × 20,000)

MP3 runs a Fourier transform, then throws away the frequencies you'd never notice (psychoacoustic masking). 5G, Wi-Fi, streaming — they're all Fourier's children.

Sampling Simulator

Lower the sampling rate and watch fidelity degrade. Red dots = digital samples. Blue curve = the original analog signal.

Samples: 44 / cycle
44 / cycle

So —
What Is Music?

Pythagoras called it integer ratios

Fourier called it sums of sine waves

Your cochlea decomposes it in 3.5 centimeters

Your brain reassembles it all into beauty

A question born in a blacksmith's forge 2,500 years ago
now lives inside the phone in your pocket.

edu.kimsh.kr