Dithering in Audio: What Is It and When To Use It?

May 26, 2024

In the world of digital audio, we often work with files at various bit depths. When reducing bit depth – for example, bouncing down a project for CD mastering – quantization errors can create distortion and degrade sound quality. That's where dithering comes in. This strategic technique involves adding a controlled amount of noise to minimize those errors, leading to a cleaner and more accurate final result. This article explains what dither is, how it works, and when to apply it in your audio workflow.

What is Audio Dither?

Dither, in the context of digital audio, is the intentional addition of a very small amount of random noise to an audio signal. Why would we intentionally add noise to a sound file? The answer lies in the way we convert analog sound waves – continuous variations in air pressure - into the digital realm of 0s and 1s. This conversion process, known as quantization, assigns a specific digital value to each measurement of the sound wave's amplitude (loudness) at a given moment. You can read more about how we convert analog audio signal to digital audio here – Digital Audio Theory Fundamentals.

 

Bit Depth and Quantization

Here's where the challenge arises: the real world of sound is infinitely nuanced, with subtle variations in volume. Digital representations, however, have limitations. This limitation comes from the concept of bit depth. Imagine trying to represent a smoothly curving line on a graph using only horizontal gridlines. Think of bit depth as the spacing of those gridlines. The wider the spacing (low bit depth), the more roughly the curve is approximated. Even with close spacing (high bit depth), there can be points where the actual curve falls between the gridlines. This mismatch is called quantization error, and it can manifest as unwanted distortion, especially at very low signal levels.

 

What Is Quantization Error?

Quantization error is the inherent mismatch that arises when representing a continuously varying analog signal with a finite number of discrete digital values. Picture trying to measure the height of a wavy line using a ruler with only a few markings. Some points of the wave will fall between those markings, forcing you to approximate. This difference between the true measurement and the nearest available value is quantization error. In audio, this error manifests as a form of distortion, particularly noticeable in quiet passages or during fades where the signal level is very low. The lower the bit depth (fewer ruler markings), the more pronounced the quantization error becomes.

 

How Dither Helps: Trading Distortion for Noise

Dithering works its magic by strategically adding a minuscule amount of usually white noise to the digital audio signal, the added noise cleverly masks the effects of quantization error. At low signal levels, where quantization error can cause amplitudes to round down to zero (effectively silence), the dither ensures there's always a tiny bit of activity, preserving the integrity of the signal. The key point is that our ears are much less sensitive to random noise, especially at low levels, than the harsh distortions caused by quantization. By essentially swapping one kind of sonic inaccuracy for another, less perceptible one, dithering maintains the overall fidelity of the sound, especially when dealing with lower bit depths.

 

Hearing the Impact of Dither

This demonstration will showcase the impact of quantization error and how dithering helps mitigate it. We'll listen to the same audio clip in three versions:

 

Audio Example 1: 24-bit Audio (Reference)

This first audio snippet is an example of high-quality, 24-bit audio. With a high bit depth, there are many possible digital values available (224 = 16,777,216) to represent the original sound wave's amplitude. This allows for a very accurate and nuanced representation of the audio, minimizing quantization error.

Audio Example 2: 8-bit Audio (No Dither)

This audio snippet is the same recording, but quantized to a much lower 8-bit format. With fewer available digital values (28 = 256), the quantization error becomes noticeable. Listen for harshness or digital distortion, especially in quieter passages or during fades. You can also hear a loss of detail in the audio compared to the 24-bit reference.

Audio Example 3: 8-bit Audio (With Dither)

This audio snippet demonstrates the impact of dithering on the 8-bit audio. While still a lower resolution format, the addition of carefully controlled noise helps to mask the quantization error. Listen for how the audio sounds smoother and less distorted compared to the non-dithered 8-bit version. While there is a loud hiss introduced by the dither, it's much less noticeable than the harshness of unaddressed quantization error.

 

When to Dither

Dither is a powerful tool, it's important to know when to use it for optimal results. Here's the key rule: dithering should always be OFF unless you're specifically converting audio to a lower bit depth. This means if you are recording or working with audio within your DAW project, leave dither off. Its primary use is in the mastering stage, when you're bouncing down a final mix to a lower resolution, like the 16-bit standard for CDs or online streaming. Think of dither as a final step before the audio leaves the higher bit-depth world of your DAW.

Summary

Dithering is a subtle but vital technique in digital audio that addresses a problem called quantization error. When converting continuous analog signals to the discrete values used by computers, there can be mismatches between the original sound level and the closest available digital representation. This error manifests as distortion, particularly noticeable in quiet passages or fades where the signal level is low. Dither works by adding a minuscule amount of random noise to the audio signal. This noise might sound counterintuitive, but it cleverly masks the harshness of quantization error. At low levels, it ensures there's always a bit of activity, preventing the signal from prematurely rounding down to silence. The key point is that our ears are much more tolerant of this random noise than the distortions caused by quantization. Knowing when to apply dither is crucial. As a general rule, it should only be applied when bouncing down your final audio to a lower bit depth, typically during the mastering stage.
Author Picture
By
Laurynas Ereksonas
Subscribe to our newsletter
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Explore Top-Quality Audio Production Services – Connect with Us Now

Diese9 specializes in bringing professional recording, mixing, and mastering services. Whether you're a solo artist, band, podcaster, etc. Experience hassle-free, high-quality audio production without the need for expensive equipment or technical know-how. Let us turn your audio visions into reality, with personalized service tailored to your unique needs.

Let's get started, how can we help you?

Select the type of service which you are interested in:
If you require video, audio repair, or any custom service, choose Mixing.
Next

What are we recording?

Is it a band/ensemble performace, your solo project or something else?
Next

Have you recorded yourself before?

Next

Tell us more about your project

Is there anything you want to let us know? Intruments, genre description, location, links to songs, deadlines, etc.

Tell us more about your project

Is there anything you want to let us know? How large is the project, genre description, links to references, delivery deadline, etc.

Contact details

Fill out your contact information, so that we can get in touch with you!
Preferred way we contact you
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.