🍋
Menu
Audio

Aliasing (Audio)

Audio Aliasing

Distortion occurring when audio frequencies above the Nyquist limit are sampled, producing false lower frequencies.

Technical Detail

According to the Nyquist-Shannon theorem, a aliasing (audio) must be at least twice the highest frequency to be captured. CD audio uses 44,100 Hz (capturing up to 22,050 Hz, beyond most human hearing at ~20,000 Hz). Professional audio uses 48,000 Hz (video standard), 96,000 Hz, or 192,000 Hz for headroom during processing. Higher sample rates are valuable for time-stretching and pitch-shifting algorithms but provide no audible benefit during playback for most listeners.

Example

```javascript
// Aliasing (Audio): Web Audio API example
const audioCtx = new AudioContext();
const response = await fetch('audio.mp3');
const buffer = await audioCtx.decodeAudioData(await response.arrayBuffer());
const source = audioCtx.createBufferSource();
source.buffer = buffer;
source.connect(audioCtx.destination);
source.start();
```

Related Tools

Related Terms