Signals and DSP · DFT and FFT
The discrete Fourier transform compares a block of samples against a set of test tones, which is how digital systems measure spectra.