Aliasing
Aliasing is the misrepresentation of a frequency in a sampled signal: when a signal contains energy above half the sampling rate, sampling shifts that energy to a lower frequency, where it cannot be told apart from a genuine component there.[1:1] Avoiding it is the reason the Nyquist–Shannon sampling theorem requires a signal to be band-limited below half the sampling rate, and the reason digital audio systems filter their input before converting it.[1:2][2:1]
Folding
For real signals, a component at a frequency ε above half the sampling rate, Fs/2 + ε, appears after sampling at Fs/2 − ε, a mirror image about half the sampling rate; the effect is therefore also called folding. Julius Smith notes that this is not a complete description: for complex signals, aliasing is better understood as the sum of all the spectral blocks of width Fs.[1:1] A component exactly at half the sampling rate is a borderline case that cannot in general be reconstructed: a sinusoid at that frequency sampled at its zero crossings yields only zeros.[1:1]
Anti-aliasing filters
Content above half the sampling rate must therefore be removed before sampling, by a low-pass anti-aliasing filter ahead of the converter. Such a filter cannot be ideal, but modern techniques come very close.[2:1] No ideal anti-aliasing or reconstruction filter exists, and real signals are never exactly band-limited, so in practice the requirement is approximated.[3:1]
Modern audio converters ease the analog filter's task by oversampling. A higher sampling rate leaves a wider gap between 20 kHz, the top of the audible range, and half the sampling rate, so a simpler and smoother analog filter suffices; a digital anti-aliasing filter then completes the job at the high rate, and the surplus samples are discarded.[2:2]
Related distortion
A different problem can arise when audio files keep content above the audible range. Reproduced through amplifiers and loudspeakers that are not perfectly linear, inaudible ultrasonic components can produce intermodulation distortion products that fall in the audible range. A 2012 Xiph.Org essay argued for this reason that 192 kHz music files are slightly worse for playback than 44.1 or 48 kHz files.[2:3] This is a different mechanism from aliasing.
- ^a ^b ^c ↗ js-aliasing ^ ↗ js-theorem Smith III, Julius O. (2007). Mathematics of the Discrete Fourier Transform (DFT), with Audio Applications. W3K Publishing. ISBN 978-0-9745607-4-8. https://ccrma.stanford.edu/~jos/mdft/.
- ^a ^b ↗ xi-sampling ^ ↗ xi-oversampling ^ ↗ xi-ultrasonic Montgomery, Christopher (2012-03-01). 24/192 Music Downloads ...and why they make no sense. Xiph.Org. https://people.xiph.org/~xiphmont/demo/neil-young.html.
- ^ ↗ un-problems Unser, Michael (2000-04). Sampling—50 Years After Shannon. Proceedings of the IEEE. https://doi.org/10.1109/5.843002 https://infoscience.epfl.ch/record/63072.
Wikidata: Q868732