Spectra and Fourier analysis

Any periodic sound can be built from sine waves at whole-number multiples of its frequency (Fourier’s theorem); the list of their strengths is its spectrum, and a spectrogram shows how the spectrum changes over time. The spectrum largely decides a steady tone’s color: a flute’s is dominated by a few low harmonics, a violin’s rich in upper ones, a clarinet’s low notes strong in the odd ones.

Also called: spectrum, Fourier analysis, spectrogram (English); Spektrum, Fourier-Analyse, Spektrogramm (German); spectre, analyse de Fourier (French).

Basic waveforms and their harmonics (n = 1 is the fundamental).
WaveformHarmonics presentStrength of harmonic nSounds like
Sineonly the fundamental—a pure, flute-like whistle
Squareodd only (1, 3, 5 …)1/nhollow, like a low clarinet
Triangleodd only1/n² (fading fast)soft, between sine and square
Sawtoothall (1, 2, 3 …)1/nbright and buzzy, like a bowed string or brass

The ear does something like a Fourier analysis itself: the cochlea’s basilar membrane responds to different frequencies at different places, so a sound’s components are sorted before they reach the brain (see How we hear pitch). Within limits we hear the strengths of the harmonics, not their timing relative to each other (their phases), as Ohm and Helmholtz argued — though phase can matter for sharp attacks and for very low notes.

Real sounds are not perfectly periodic: their spectra change as they begin and fade, they include noise (breath, bow scrape, hammer thump), and their partials may not be exact harmonics. A spectrogram — time across, frequency up, strength as darkness or color — shows all of this, and is the tool behind speech analysis, spectral composition and the visual displays of audio software (see Partials, Spectral music).

History

Joseph Fourier introduced his series in work on heat (1807; Théorie analytique de la chaleur, 1822). Georg Ohm (1843) proposed that the ear analyzes sounds into sinusoidal components; Helmholtz confirmed it with tuned resonators (1863) and built the first synthesizer of vowels from tuning forks. Bell Telephone Laboratories’ sound spectrograph (1940s, published as Visible Speech, 1947) made spectra visible; the Fast Fourier Transform of James Cooley and John Tukey (1965) made computer analysis fast, and with it digital audio processing.

Where the words come from

spectrum
Latin, "appearance, image" (from specere, "to look"); Newton used it for the band of colors from a prism (1671).
sine
Latin sinus, "fold, bay," a mistranslation of Arabic jayb (itself from Sanskrit jyā, "bowstring").

Questions

If two instruments have the same spectrum, will they sound the same?

Not quite: the attack, the noise and the changes over time matter as much as the steady spectrum. A recording of a piano played backward keeps its spectrum but sounds like an organ.

Read with it

Sources