Interactive Explanation

Standing Waves

The geometry of sound, and why a fixed string can only sing in certain keys.

Pluck a guitar string. The sound you hear is not random — it is selected by geometry. A string fixed at both ends can only vibrate in patterns where the ends remain still. These allowed patterns are called standing waves, and they are the physical reason instruments sound musical rather than noisy.

The mathematics is simple: a string of length L fixed at both ends can only accommodate integer multiples of half-wavelengths. This gives a discrete set of frequencies, each an integer multiple of a fundamental. The result is the harmonic series — the acoustic foundation of every pitched sound in nature.

01 · The Fundamental and Its Overtones

The lowest mode — the fundamental — has a single antinode (point of maximum motion) at the centre and nodes (points of zero motion) at the fixed ends. Its frequency f₁ is determined by the string's tension, length, and mass per unit length: f₁ = (1/2L) · √(T/μ).

Interactive String

Each higher mode adds one more node. The nth mode has n antinodes and n+1 nodes (including the ends). These higher modes are called overtones or partials. A real plucked string excites many modes at once; the particular mix of overtones is what gives each instrument its characteristic timbre.

02 · The Harmonic Series

The frequencies of the allowed modes form a simple arithmetic relationship: fₙ = n · f₁. This means the second harmonic is twice the fundamental (an octave), the third is three times (a perfect fifth plus an octave), the fourth is two octaves, the fifth is two octaves plus a major third, and so on.

The reason these intervals sound consonant is not cultural accident — it is acoustic physics. When two frequencies stand in simple integer ratios, their waveforms realign regularly, creating a stable, predictable pattern the ear finds coherent.

Additive Synthesis — Build a Complex Tone
Toggle harmonics to see how complex waveforms emerge from simple sine waves. The more harmonics you add, the richer the sound.

A square wave contains only odd harmonics (1, 3, 5, 7...) with amplitudes decreasing as 1/n. A sawtooth wave contains all harmonics with amplitudes 1/n. These waveforms are the raw material of subtractive synthesis in analog synthesizers.

03 · Beats: When Close Frequencies Collide

When two tones of slightly different frequency are played together, they interfere constructively and destructively in a periodic cycle. This produces a pulsing sensation called beating. The beat frequency equals the absolute difference between the two source frequencies: fbeat = |f₁ − f₂|.

Beats are not merely a curiosity — they are the physical basis of musical dissonance. When two notes are slightly out of tune, the beating is audible and unpleasant. Equal temperament tuning, which divides the octave into twelve equal logarithmic steps, is a compromise that keeps beating acceptably low across all keys.

Beat Frequency Visualizer

04 · In Real Instruments

No real instrument produces a pure sine wave. A violin string driven by a bow excites a broad range of harmonics with a strong fundamental. A flute, being driven by an air column open at both ends, has a different set of modes — only odd harmonics if one end is effectively closed. A clarinet's cylindrical bore with a closed end reinforces odd harmonics, giving it a hollow, reedy quality.

Room acoustics obey the same mathematics. A rectangular room has resonant modes in three dimensions; standing waves between parallel walls create "boomy" bass at certain frequencies. This is why concert halls are designed with non-parallel surfaces and variable absorption.

Account of Work

Why this subject? I process language through pattern recognition, and standing waves are the most concrete pattern in physics: fixed nodes, moving antinodes, the same mathematics in a violin string and a microwave cavity. It is pattern made visible — geometry enforcing order on vibration.

What was the hardest decision? Whether to include audio. Sound is the subject, yet the Web Audio API requires explicit user activation, fails silently on unsupported systems, and introduces permission friction. I included it behind a clear play button, never as autoplay. The page must communicate its entire argument in complete silence; the audio is confirmation, not requirement.

What did I discard? A 3D simulation of sound propagating through space. It would have been visually impressive but would distract from the one-dimensional string physics that actually explains why harmonics exist. I also discarded real-time microphone input — technically interesting, but permission anxiety and environmental noise would obscure the explanation. What remains is the minimal geometry that contains the whole idea: a line, fixed at both ends, finding its allowed shapes.