The Harmonic Series — Why Instruments Sound Different
Every musical note is more than one frequency. Understanding harmonics is the key to understanding timbre, synthesis, and why a violin sounds nothing like a flute even when they play the same pitch.
What is a harmonic?
When a string vibrates at 220 Hz (A3), it doesn't just vibrate as a whole — it also vibrates in halves (440 Hz = A4), thirds (660 Hz = E5), quarters (880 Hz = A5), and so on. These are harmonics: integer multiples of the fundamental frequency. Every acoustic sound source produces harmonics naturally, in varying amounts depending on the material, shape, and how the instrument is played.
Timbre: the personality of a sound
Timbre (pronounced TAM-ber) is the quality of a sound that makes it identifiable even when pitch and loudness are held constant. Two instruments playing the same note at the same volume can be told apart instantly because of their different harmonic content. A flute's soft, breathy quality comes from a strong fundamental with very few overtones. A violin's rich, complex sound comes from a full stack of harmonics up to the 8th and beyond. The organ's distinctive sound comes from specific drawbar registrations — which are simply specific combinations of harmonics.
Additive synthesis
Additive synthesis is the technique of building complex sounds by combining sine waves. Since any periodic waveform can be expressed as a sum of sine waves (thanks to Fourier's theorem), additive synthesis is theoretically capable of reproducing any sound. In practice, it requires many individual oscillators. This tool gives you 16 — one per harmonic. A sawtooth wave is the sum of ALL 16 harmonics weighted by 1/n. A square wave uses only odd harmonics (1, 3, 5, 7…). A triangle wave uses odd harmonics too, but they decay much faster (1/n²). Enabling just the fundamental gives you a pure sine — the simplest possible sound.
Reading the spectrum display
The spectrum visualization below the waveform shows one bar per harmonic (1 through 16). When audio is playing, the bar height reflects the actual frequency content detected by the Web Audio AnalyserNode. Active harmonics glow in the primary color; inactive ones are dim. This is a simplified view — a full spectrum analyzer would show thousands of frequency bins, but this 16-bin view makes it easy to see exactly which harmonics are contributing to the sound.
About Harmonics
Explore the harmonic series with real-time waveform and spectrum visualization. Toggle harmonics 1-16, hear additive synthesis in action, and learn why different instruments have different timbres.
How to use
- Set the fundamental frequency with the slider (50-500 Hz). 220 Hz = A3, 440 Hz = A4 (concert pitch).
- Press Play to start the sound. Only the fundamental (1x) is on by default — a pure sine wave.
- Click the numbered harmonic buttons (2x, 3x, 4x…) to add overtones. Watch the waveform change shape as harmonics combine.
- Watch the spectrum bars — each bar shows the amplitude of one harmonic. Active harmonics glow brightly.
- Try an instrument preset (Violin, Flute, Clarinet, Organ) to hear approximations of real instrument timbres.
- Use All On to get a full sawtooth-like wave, or All Off to reset and start fresh.
- Adjust the volume slider to prevent clipping when many harmonics are active.
Frequently asked questions
What is the harmonic series?
The harmonic series is the sequence of frequencies that naturally occur above a fundamental pitch: 2x (one octave up), 3x (an octave plus a fifth), 4x (two octaves), 5x (two octaves plus a major third), and so on. Every acoustic instrument produces some combination of these harmonics alongside the fundamental, and the balance of harmonics — called timbre or tone color — makes instruments sound different from each other.
What is additive synthesis?
Additive synthesis builds complex sounds by combining multiple sine waves at different frequencies and amplitudes. Each sine wave represents one harmonic. Adding all harmonics in equal proportion builds a sawtooth wave. Adding only odd harmonics builds a square wave. This is the opposite of subtractive synthesis, where you start with a harmonically rich wave and filter partials out.
Why do instruments sound different on the same note?
When a violin and a flute both play A3, you hear the same pitch because both produce 220 Hz. But they sound completely different because of timbre — the balance of harmonics. A flute produces mostly the fundamental with a quiet second harmonic. A violin produces strong harmonics up to the 8th or beyond. Toggle harmonics here and hear exactly how they shape the sound.
What makes a sawtooth wave different from a square wave?
A sawtooth wave contains ALL harmonics (1x, 2x, 3x, 4x…), each decreasing at 1/n amplitude. A square wave contains only ODD harmonics (1x, 3x, 5x, 7x…). This makes the square wave hollow and reedy — like a clarinet — while the sawtooth sounds bright and buzzy, like synth brass or a bowed string.
What do the instrument presets simulate?
The presets approximate the harmonic content of real instruments: Flute (mostly fundamental + 2nd harmonic), Clarinet (odd harmonics — 1, 3, 5, 7), Violin (rich 1-6 harmonic mix), and Organ (1, 2, 3, 4, 6, 8 — classic drawbar registration). These are simplified models but demonstrate clearly why timbre differs.
Disclaimer: Audio output requires a compatible browser (Chrome, Firefox, Edge, or Safari 14+). iOS requires a tap/click before audio can play — press Play after the page loads.
Part of ToolFluency’s library of free online tools for Music. No account needed, no data leaves your device.