Fourier
In 1807 Joseph Fourier claimed that any periodic function can be written as a sum of sine and cosine oscillations. Lagrange did not believe it, but Fourier was right – with certain mathematical reservations that took a century to sort out. For a non-periodic signal the sum becomes an integral, the Fourier transform:
The most important property for an engineer is the convolution theorem: a linear, time-invariant system acts on a signal by convolution with its impulse response $h(t)$, and in the frequency domain the convolution becomes a simple product, $Y(f) = H(f)X(f)$. That is why frequency analysis is so useful: each frequency can be treated on its own.
Sampling and aliasing
A computer can only store values of the signal at discrete times $t_n = n/f_s$. The sampling theorem – Whittaker (1915), Kotelnikov (1933), Nyquist and Shannon (1949) – says that a signal with no frequencies above $f_s/2$ can be fully reconstructed from its samples. $f_s/2$ is called the Nyquist frequency.
If the signal contains frequencies above $f_s/2$, they cannot be distinguished from lower frequencies: a frequency $f$ looks like $|f - k f_s|$ for the integer $k$ that brings it below $f_s/2$. This is aliasing, and it is the same thing that makes wagon wheels in a western seem to turn backwards. Aliasing cannot be removed once it has happened – which is why there is always an analogue low-pass filter in front of an A/D converter.
DFT and FFT
With $N$ samples one computes the discrete Fourier transform
The frequency resolution is $\Delta f = f_s/N = 1/T$, the reciprocal of the measurement time. To distinguish frequencies 1 Hz apart one must measure for at least 1 s. That is the classical uncertainty relation $\Delta t\,\Delta f \geq$ constant – the same mathematics as Heisenberg’s (see From Bell’s inequality to sound intensity).
Computed directly, the DFT needs $N^2$ multiplications. In 1965 James Cooley and John Tukey published an algorithm that needs only $N\log_2 N$: the Fast Fourier Transform. For $N = 1024$ it is 100 times faster. It later turned out that Gauss had found the idea in 1805 to compute the orbits of asteroids – before Fourier. The FFT is counted among the most important algorithms of the 20th century; without it there would be no mobile phones, MRI scanners or digital audio.
Windows and leakage
The DFT assumes that the $N$ samples are one period of a periodic signal. If a whole number of periods of a tone does not fit into the measurement time, there is a jump where the signal repeats, and the tone’s energy leaks into many frequency lines. The leakage can hide weak tones next to a strong one. The remedy is to multiply the signal by a window that goes smoothly to zero at both ends. The Hanning window $w_n = \sin^2(\pi n/N)$ is standard for noise and mixed signals; the flat-top window is used when the amplitude of a tone must be read accurately; the rectangular one (no window) for transients entirely inside the measurement time.
Correlation and spectra
The cross-correlation $R_{xy}(\tau) = E[x(t)\,y(t+\tau)]$ measures how much two signals resemble each other with a time shift. It is used to find delays: how long sound takes to travel from a leak in a water pipe to two microphones, or which direction noise comes from. The Wiener–Khinchin theorem says that the Fourier transform of the autocorrelation is the power spectrum $G_{xx}(f)$, and that of the cross-correlation is the cross-spectrum $G_{xy}(f)$.
For noise signals a single spectrum is very uncertain – the standard deviation of each line is as large as the value itself. One therefore averages over many spectra; with $n$ averages the relative uncertainty falls as $1/\sqrt n$. With 50 % overlap between Hanning-windowed blocks the data are used almost fully (Welch’s method, 1967).
Frequency responses and coherence
A dual-channel analyser measures a system’s input $x$ and output $y$ simultaneously and estimates the frequency response
The coherence $\gamma^2$ lies between 0 and 1 and tells how much of the output is linearly due to the input. Low coherence means noise, non-linearity or leakage – or other sources. It is one of the most useful diagnostic tools in all experimental acoustics and vibration engineering. Sound-intensity measurement with two microphones is based on the imaginary part of the cross-spectrum between them.
Time and frequency
A spectrum does not show when the frequencies occur. In 1946 Dennis Gabor proposed dividing the time–frequency plane into cells, each represented by a Gaussian-windowed oscillation – the one that minimises $\Delta t\,\Delta f$. The short-time Fourier spectrogram is the everyday tool of speech research and birdsong. Wavelets (Morlet, Grossmann and Daubechies in the 1980s) use short windows at high frequencies and long ones at low, as the ear itself does.
Since 1989
- From analyser to PC: The dedicated FFT analyser has been replaced by 24-bit A/D converters and software on an ordinary computer – or a phone.
- Sigma–delta converters sample at a very high rate with few bits and filter digitally; they have almost removed the need for sharp analogue anti-aliasing filters.
- Compressed sensing (Candès, Donoho and Tao, 2006) showed that sparse signals can be recovered from fewer samples than Nyquist requires – used in faster MRI scanning.
- Swept-sine measurements (Farina, 2000) separate linear response and distortion in a single measurement and have replaced MLS and noise in room acoustics.
Further reading
- Julius S. Bendat and Allan G. Piersol: Random Data. Analysis and Measurement Procedures (4th ed., Wiley 2010)
- Robert B. Randall: Frequency Analysis (Brüel & Kjær, 3rd ed. 1987)
- Alan V. Oppenheim and Ronald W. Schafer: Discrete-Time Signal Processing (3rd ed., Pearson 2010)
- On this site: Joseph Fourier · Sound analyser