What is aliasing in music?
What is aliasing?
Recording & Production
A digital audio distortion that occurs when frequencies above the Nyquist limit are sampled or generated without adequate filtering. These frequencies appear as incorrect lower-frequency components in the resulting signal.
What does aliasing mean?
Aliasing occurs when different underlying frequencies become indistinguishable in a sampled representation. For ordinary real-valued audio, frequencies above half the sample rate can appear as components in the baseband below that limit. This folding does not preserve the intended pitch relationships, so it can introduce unwanted tones or an inharmonic edge rather than simply removing high-frequency detail.
It can arise while recording, changing sample rate, or generating and processing audio digitally. Before analog-to-digital conversion, an anti-aliasing filter restricts the incoming bandwidth. Before downsampling, a digital filter must similarly attenuate content that the lower sample rate cannot represent. Within a synthesizer or effect, discontinuous waveforms, nonlinear distortion, and other operations can create new high-frequency components even when the original input was safely band-limited.
Oversampling runs a relevant process at a higher internal sample rate, giving its new components more room before folding. Filtering before returning to the project rate then removes the out-of-band energy. Its effectiveness depends on the process, oversampling factor, and filters; the label alone is not a guarantee of zero aliasing. Once an unwanted component has folded onto a wanted frequency, a simple output low-pass filter cannot separate them by frequency.
fs>0 is sample rate in samples per second, fN is the Nyquist frequency in hertz, and f is a nonnegative sinusoidal frequency in hertz. The output falias is the nonnegative folded frequency, also in hertz. The modulo operation returns a value from 0 up to, but not including, fs. The second equation maps a real sinusoid to its equivalent frequency magnitude between 0 and fs/2; it does not describe every phase or amplitude detail of a composite signal. For reliable baseband sampling, the signal bandwidth must be strictly below the Nyquist limit, with practical margin for the filter transition band. A tone exactly at Nyquist is a special boundary case whose sampled result depends on phase.
Examples related to aliasing
- At a 48 kHz sample rate, Nyquist is 24 kHz. A 30 kHz sinusoid reaching the sampler without adequate filtering aliases to 18 kHz.
- A distortion process acting on a 10 kHz tone can generate a 30 kHz third harmonic. At 48 kHz, that harmonic can fold to 18 kHz unless the process prevents or sufficiently reduces the aliasing.
- Reducing a 96 kHz recording to 48 kHz requires filtering before decimation. Merely discarding every other sample can fold content above 24 kHz into the retained band.
Common confusions and distinctions
Aliasing is not quantization noise: sample rate and bandwidth govern frequency ambiguity, while bit depth governs amplitude representation. Increasing bit depth alone does not solve aliasing. Nor does upsampling an already aliased recording undo the ambiguity. Aliasing is sometimes used deliberately for a retro digital effect, but that artistic choice does not change its mechanism.
Back to the glossary