The Building Blocks of Sound
Every musical sound is a sum of simple sine waves at frequencies that are integer multiples of a fundamental. This harmonic series — discovered mathematically by Joseph Fourier and physically by Hermann von Helmholtz — is the key to understanding why a violin sounds different from a flute playing the same note. The difference is timbre: the recipe of harmonics that defines each instrument's voice.
Harmonic Decay and Instrument Character
The way harmonic amplitudes decrease with frequency determines timbre character. When amplitudes fall as 1/n (where n is the harmonic number), the result approximates a sawtooth wave — bright and rich, like a bowed string. When amplitudes fall as 1/n², the sound is mellow and flute-like, dominated by the fundamental. Equal-amplitude harmonics produce an aggressive, buzzy quality. This simulation lets you hear these differences by watching how individual harmonics combine.
Visualizing the Spectrum
The frequency spectrum shows each harmonic as a bar at its frequency, with height representing amplitude. The combined waveform — the sum of all these sine waves — appears above. As you add more harmonics, the waveform shape becomes more complex and angular. With enough harmonics and 1/n decay, it converges toward a sawtooth; with only odd harmonics, it converges toward a square wave.
Phase and Perception
An often-surprising result: the human ear is largely insensitive to the relative phases of harmonics. Randomizing phases dramatically changes the waveform's visual appearance but barely affects perceived timbre. This is because our auditory system primarily analyzes frequency content (spectral analysis), not waveform shape. The cochlea acts as a biological Fourier analyzer, decomposing sound into its frequency components.