Reading a spectrogram without fooling yourself

A spectrogram is a measurement, and every measurement has artefacts. Three of them look exactly like audio defects — and all three are usually the instrument's fault, not the recording's.

The first time you look closely at a spectrogram, it is tempting to treat it as a photograph of the sound. It is not. It is a windowed transform of the signal, and the window you chose determines what you see. Most of the alarming features in a typical plot belong to the analysis, not to the audio.

1. Window leakage

Any FFT has to look at a finite slice of the signal, and cutting that slice produces an abrupt edge. That discontinuity spreads energy across the spectrum — so a pure tone no longer appears as a clean line but as a peak with skirts of energy either side. Shorter windows smear more; that is the time-frequency trade-off, not distortion.

If you see low-level fuzz spreading outward from otherwise clean tones, you are almost certainly looking at leakage. Increase the window length, or apply a proper window function, and it will shrink. The audio never changed.

2. Aliasing images

Sample a signal below the Nyquist limit and high frequencies fold back down into the audible band, appearing as content that has no business being there. On a spectrogram this shows as mirrored or descending structures — often harmonically related to real content above the fold point.

The tell is that these images move the wrong way relative to the source. If the underlying tone rises, the alias image may fall. Genuine harmonic structure never does that.

If a feature vanishes when you change the analysis settings, it was never in the file.

3. Codec brickwalls

A low-bitrate lossy file typically shows a hard horizontal ceiling where content simply stops — everything above roughly 16 kHz erased, not faded. This is real, and it is in the file.

But the location of that ceiling is worth checking before drawing conclusions. Resampling to a lower rate imposes its own ceiling at the new Nyquist point, which can be mistaken for codec damage. A 44.1 kHz file analysed on a 48 kHz grid will show a limit that has nothing to do with compression.

A working rule

Before diagnosing anything from a plot, change one analysis parameter and look again. Alter the window size, the overlap, the FFT length, or the sample rate of the analysis. Anything that moves is an artefact of the method. Anything that stays put is a property of the audio, and only then is it worth discussing.

This costs ten seconds and prevents most of the wrong conclusions people draw from spectrograms. It is also the reason our published studies include the analysis settings alongside the figures — without them, the image is decoration.

← BackAll notes Next note →The anechoic myth of the perfect listening room