Système Dcalculate, tune, understand

Sampling and quantizing

How a converter turns sound into numbers: sample rate, aliasing, bits, quantisation noise, dither and floating point.

16-minute lesson · Digital audio. In the app it ends with a three-level quiz and comes with the matching calculators.

Open the lesson

A mic outputs a continuously varying voltage. A digital console, recorder or speaker processor only handles numbers. Between them, the analogue-to-digital converter (ADC) measures voltage at regular intervals and writes each reading as a number. At the output, the digital-to-analogue converter (DAC) rebuilds voltage from numbers. Two settings decide everything: how many readings per second (sample rate) and how finely (bit depth).

Sampling: readings at regular intervals

Sample rate (fs) is readings per second. At 48 kHz the converter takes 48,000 samples a second — one every 20.8 µs. Instinct says we lose what happens between dots. Nyquist-Shannon says otherwise: if signal holds no frequency above fs/2 (the Nyquist frequency), the samples rebuild it exactly. The DAC doesn’t join dots into stairs: its reconstruction filter redraws the original curve.

Te = 1 / fs fmax < fs / 2 48 kHz → Te = 20.8 µs, Nyquist = 24 kHz

Aliasing and the anti-alias filter

If a frequency above fs/2 still reaches the converter, it doesn’t vanish: it aliases, reappearing at another frequency mirrored around fs/2. 30 kHz sampled at 48 kHz reappears at 48 − 30 = 18 kHz — mid-audible, with zero musical link to the sound. Unremovable afterwards. Hence every ADC is preceded by an anti-alias low-pass that passes up to 20 kHz and cuts everything before fs/2.

Between fs/2 and fs: aliased f = fs − f 30 kHz at 48 kHz → 18 kHz

Common sample rates

fsNyquistUse
44.1 kHz22.05 kHzAudio CD, much music production
48 kHz24 kHzPro standard: video, broadcast, live consoles, audio networks (Dante)
96 kHz48 kHzHigh-resolution recording, some live systems; twice the data
192 kHz96 kHzRare: four times the data of 48 kHz, debatable audible gain

Why go above 48 kHz if hearing stops near 20 kHz? The serious arguments are technical: gentler filters, less aliasing in nonlinear processing (saturation, fast compression), shorter latency at equal buffer. In listening, blind tests show no clear gap between 48 and 192 kHz. Live, the desk or network often dictates: the whole system runs one rate.

Quantizing: bits and levels

Each sample rounds to the nearest of 2ᴺ possible levels, N being bit depth. 16-bit: 65,536 levels; 24-bit: over 16.7 million. Rounding error peaks at half a step: quantisation noise. Each added bit doubles level count, gaining ~6 dB of range. For a full-scale sine, the classic formula gives an ideal converter’s signal-to-noise ratio.

Range ≈ 6.02 · N + 1.76 dB 16-bit → 98 dB 24-bit → 146 dB

In practice, analogue noise (preamp, components) caps the best 24-bit converters near 120 dB of range — about twenty useful bits. Already huge: recording 24-bit keeps healthy headroom (peaks near −12 dBFS, average near −18 dBFS) with no hiss fear. dBFS-to-dBu alignment lives in Electrical levels.

Dither: hiss instead of distortion

On very quiet signal (reverb tail, fade), rounding error tracks signal: it becomes gritty, nasty distortion. Dither adds very faint noise (around the least significant bit) just before reducing bit depth. Error then becomes steady, signal-independent hiss — far more acceptable — and sub-LSB detail stays audible within it. Noise-shaped dither pushes that hiss toward extreme treble, where ears are least sensitive.

32-bit float

In fixed point (16- or 24-bit), 0 dBFS is a wall: past it, clipping. In 32-bit float, each number carries a 24-bit mantissa plus exponent: headroom above 0 dBFS turns near-limitless. DAWs and plugins compute in float, dodging internal clipping. Some field recorders capture 32-bit float too, with paired converters. But note: a converter stays fixed-point. The output DAC still clips at 0 dBFS.

Oversampling

A very steep analogue filter just under 24 kHz would cost dear and twist phase. Modern (sigma-delta) converters thus sample far faster — often 64× fs or more: the analogue filter can stay gentle, and a steep digital filter does the work before dropping back to 48 kHz (decimation). Oversampling also serves saturation plugins, keeping fresh harmonics from aliasing, and true-peak meters (see Measuring levels).

Practise with

Sources

Continue

← Power amplifiers · Audio files and formats →