← All animations

๐ŸŽป Harmonics & Timbre

Pluck a string and it doesn't vibrate at just one frequency โ€” it rings at a whole series of them at once: the fundamental, then overtones at 2ร—, 3ร—, 4ร—โ€ฆ that frequency. Your ear hears the fundamental as the pitch, while the relative loudness of all the overtones gives the note its colour, or timbre. That's why a flute and a violin playing the very same note still sound nothing alike. Build your own recipe below โ€” and hear it.

1. The harmonic series โ€” build a tone from its overtones

A string fixed at both ends can only vibrate in whole-number modes: 1 bump (the fundamental, f), 2 bumps (2f), 3 bumps (3f), and so on. Each slider sets how loud that harmonic is. The faint coloured curves are the individual modes; the bright teal curve is their sum โ€” the actual waveform. Change the recipe and the wave's shape changes, but its repeat length (the pitch) does not.

Pitch: 220 Hz (A3)

2. Why instruments differ โ€” same note, different recipe

Press a preset: each loads a characteristic harmonic mix and plays it. A pure sine has only the fundamental. A flute is nearly a sine plus a faint 2nd harmonic โ€” soft and round. A sawtooth (bowed-string / brass-like) packs in every harmonic โ€” bright and buzzy. A square / clarinet contains only the odd harmonics (1, 3, 5, 7โ€ฆ) โ€” hollow and woody. Left: the waveform. Right: the spectrum โ€” a bar per harmonic.

Pure sine โ€” fundamental only

3. The takeaway โ€” pitch vs. timbre, and the Fourier link

Three ideas tie it all together: