What is dithering?
Recording & ProductionThe addition of low-level noise before reducing the bit depth of digital audio. Dithering helps prevent correlated quantization distortion and makes low-level errors behave more like noise.
The addition of low-level noise before reducing the bit depth of digital audio. Dithering helps prevent correlated quantization distortion and makes low-level errors behave more like noise.
Dithering adds a carefully chosen low-level noise signal before quantization so that rounding errors do not track the audio in the same deterministic way. Without suitable dither, a low-level tone or fading passage can develop correlated distortion or irregularly disappear into the available amplitude steps. Dither trades that behavior for a small, more consistent noise floor.
In audio production, it is particularly relevant when converting a high-precision processed signal to a lower fixed-point bit depth. A common non-subtractive choice is triangular probability density function, or TPDF, dither. Its amplitude distribution is triangular; this is not a triangular audio waveform. The appropriate level relates to the size of the target quantization step.
Noise shaping can redistribute quantization-related noise across frequency to make it less audible in a particular listening band. It does not remove the noise energy or increase the file’s actual bit depth. For a final fixed-point deliverable, dither is normally applied at the final quantization stage, after processing that would otherwise create another need to quantize. Repeatedly adding it at unnecessary stages accumulates noise.
is a higher-precision input sample, is an added dither sample in the same amplitude units and is the quantized output; is an integer sample index. denotes rounding to a uniform quantizer whose positive step size is . This simple formula models non-subtractive dither, not subtractive or noise-shaped feedback quantization, and assumes the summed input does not overload the quantizer. Standard zero-mean TPDF dither can be made by summing two independent uniform random samples on , giving a triangular distribution supported on , mean zero and RMS amplitude (approximately 0.408 quantization steps). The dither contribution remains in the rendered output. Other dither and noise-shaping schemes use different models.
Dither does not repair clipping, remove background hiss or restore data lost to a codec. It is not required merely because a file is being copied or its bit depth increased without processing. Noise shaping and dither are related tools with different roles, and a noise-shaped setting is not automatically preferable for every later use.