Noise shaping

On this page 8

Noise shaping is a signal processing technique that redistributes quantization error across the frequency spectrum, pushing it away from the bands where human hearing is most sensitive and into bands where it is less audible. In digital audio, it is used mainly when reducing bit depth, for example from a 24-bit master to 16-bit CD audio, and it is the core principle behind delta-sigma converters.

The technique does not remove noise; it changes the spectral shape of the error. Total noise power usually increases, but the perceived noise level can fall by the equivalent of several bits, which allows a 16-bit file to sound noticeably quieter than plain truncation or flat dither would allow.

How noise shaping works through error feedback

Noise shaping works by feeding the quantization error back into the signal path through a filter before the next sample is quantized. Each time a sample is rounded to the target word length, the difference between the original and rounded value is captured, filtered and subtracted from the following samples. This loop gives the error a frequency-dependent character instead of a flat, white spectrum.

The behavior is described by the noise transfer function, which specifies how much error energy appears at each frequency. A simple first-order shaper has a transfer function that rises steadily toward the Nyquist frequency, so noise is lowered at low frequencies and raised near the top of the band. Higher-order filters produce steeper and more tailored curves.

A fundamental constraint, often explained through the Gerzon-Craven noise shaping theorem, is that lowering noise in one band requires raising it in another. Shaping therefore trades total noise power for audibility, and the gain depends on how well the curve matches the sensitivity of the ear.

Noise shaping and dither

Noise shaping is almost always combined with dither, but the two solve different problems. Dither adds a small random signal before quantization so that the error becomes independent of the music, removing distortion and the gritty decay of fading notes. Noise shaping then moves that now benign noise to less audible frequencies.

The table below separates the roles of the techniques that are often confused during word length reduction.

TechniqueWhat it doesResult on quiet passagesAudible character
TruncationDiscards lower bitsCorrelated distortionHarsh, grainy decay
Flat TPDF ditherAdds triangular random noiseClean but noisier floorEven white hiss
Dither with noise shapingAdds dither and filters the errorClean with lower perceived hissFaint hiss shifted high
Noise shaping without ditherFilters undithered errorCan leave residual distortionUnstable, signal-dependent
Roles of truncation, dither and noise shaping

Because shaping alone does not decorrelate the error, professional tools apply dither inside the feedback loop. Using shaping without dither is rarely recommended for audio masters.

Common noise shaping curves and their parameters

Noise shaping curves range from simple high-pass filters to psychoacoustically weighted designs that follow the ear’s threshold of hearing. Many weighted curves mirror the equal-loudness contours, placing minimal noise around 2 to 5 kHz, where hearing is most acute, and concentrating it above about 15 kHz.

Curve typeFilter orderWhere noise is movedTypical use
First-order high-pass1Gradually toward high frequenciesSimple, safe mastering option
Moderate psychoacoustic3-5Away from 2-5 kHz, above 15 kHzGeneral 16-bit mastering
Aggressive psychoacoustic7-9Strongly above 15 kHzQuiet classical and acoustic material
Delta-sigma modulator loop2-7Far above the audio bandADCs, DACs and DSD
Typical noise shaping filter types

Aggressive curves can lower the perceived noise floor by around 15 to 20 dB relative to flat dither, but they also place substantial energy near the Nyquist limit. The choice depends on the program material and on what will happen to the file afterward.

Noise shaping in delta-sigma converters

Noise shaping is the enabling principle of delta-sigma conversion, which dominates modern ADC and DAC chips. These converters quantize at very high oversampling rates with only one bit or a few bits, and a high-order loop pushes the resulting large quantization noise far above 20 kHz. A digital or analog low-pass filter then removes the out-of-band noise.

The same idea underlies DSD, the one-bit format used on Super Audio CD, where noise rises steeply above roughly 25 to 50 kHz. In these systems the shaping is an inseparable part of the converter design, whereas in mastering it is an optional processing stage chosen by the engineer.

When to apply noise shaping in a workflow

The essential rule is to apply noise shaping once, at the final word length reduction. Any later gain change, sample rate conversion or lossy encoding disturbs the carefully shaped noise and can amplify the high-frequency energy it contains. The decision table summarizes typical situations.

SituationRecommended choiceReason
Final 16-bit master for CDDither with moderate shapingLower perceived noise at fixed word length
Master for lossy streaming encodeFlat dither or mild shapingEncoders may waste bits on shaped noise
Intermediate bounce in a DAWNo shaping, keep 24-bit or 32-bit floatFurther processing will follow
Loud, dense pop masterFlat or mild shapingMusic masks the noise floor anyway
Quiet orchestral or solo pianoPsychoacoustic shapingLong fades expose the noise floor
Decision guide for noise shaping in production

Limitations and common misconceptions

Noise shaping is powerful but frequently misunderstood. Engineers who expect it to improve every file sometimes create problems that are harder to hear on studio monitors than on consumer playback chains.

  • It does not reduce total noise; it relocates noise and usually increases its overall power.
  • Repeated shaping accumulates high-frequency noise if a file is dithered more than once.
  • Strong high-frequency noise can stress tweeters or interfere with lossy encoders.
  • Benefits shrink at 24-bit, where the noise floor is already far below audibility.
  • Listening tests remain essential, because curves designed for average hearing do not suit every listener or playback system.

A non-technical view

When a digital recording is made smaller, tiny rounding errors appear, and they sound like a faint hiss. Noise shaping does not delete that hiss; it moves it to very high pitches that most people barely notice.

Imagine sweeping dust in a room. You cannot make the dust disappear, but you can push it under a cabinet where nobody looks. The ear has its own blind corners, and noise shaping hides the noise there, so the music sounds cleaner even though the same amount of noise is still present.

A concrete example

A mastering engineer prepares a solo piano album recorded at 24-bit and 96 kHz for release on CD. The final step converts the files to 16-bit and 44.1 kHz. With flat dither, the long decaying chords at the end of each piece reveal a soft hiss when listeners turn up the volume.

The engineer switches to TPDF dither with a moderate psychoacoustic curve, applied only once at the very end of the chain. Measured total noise rises slightly, but the hiss now sits mostly above 15 kHz, and in blind comparisons on headphones the quiet passages sound noticeably cleaner. For the separate streaming master, the engineer uses flat dither instead, because the platform’s lossy encoder would otherwise spend data on reproducing shaped high-frequency noise.