Dither: Difference between revisions

From Hydrogenaudio Knowledgebase
(Page improved.)
m (→‎Is dither really necessary?: removed "threatening" tone of previous edit)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Dither is random noise added to a signal in order to increase the degree to which the quantization and sampling process accurately reproduces the image of the input signal. The simplest dither is quiet white noise, but more complicated forms of dither are possible using [[noise shaping]].
{{stub}}
Signal details smaller than the quantization level are retained, after quantization, when Dither Noise is added to the source material.
'''[[wikipedia:Dither#Digital audio|Dither]]''' is random or semi-random noise added to a signal in order to mask potential artifacts arising from quantization error and/or extend dynamic range. The simplest dither is quiet white noise, but more complicated forms of dither are possible using [[noise shaping]], and they can even be completely inaudible.
==Explanation.==
A small signal detail with height less than the size of a quantization step, and centred half way between two quantization steps, is too small to cross a quantization step. It is lost when the waveform is quantized. With a Dither Noise waveform added, the height of the two waveforms summed is occasionally greater than the quantization level. At these occasional points the waveform crosses a quantization step. So now when this waveform is quantized, although the result is noisy, the shape of the original signal detail is retained.
 
 
When a small variation in the signal is adjacent to, and switches between quantization steps, it will be highly distorted, e.g. converted into a square wave. Dither will then reduce the distortion. Frequently flipping the least signifficant bit by the sum of the small signal and the dither noise retaines the shape that the waveform originally had. With the dither, the accuracy of the recording is greater than with quantization alone.


==Bit depth reduction==
==Bit depth reduction==
A common use for dither is to retain the waveform shape defined in the bits to be lost when converting a digital signal from a higher bit depth to a lower one, e.g. from 24-bit to 16-bit.
A common use for dither is to improve the perceived audio quality when converting a digital signal from a higher bit depth to a lower one, e.g. from 24-bit to 16-bit. By dithering the signal with a small amount of added noise, the additional rounding error added from requantization can be decorreated from the signal, resulting in a noise floor that is mathematically slightly higher, but audibly less noticeable.  The addition of dither becomes more important as the number of quantization levels decreases, and so is particularly important when converting to 8 bit or lower audio.
 
 
When you reduce bit depth without dither there will be resulting distortion as well as the loss of the fine detail. This has two aspects, the change (error) in the waveform itself and an unpleasant addition to the sound because of the error. Noise correlated to the audio from which it is derived is generally found to be unpleasant.


==Is dither really necessary?==
<!--adapted from another Andy H-ha post in the same thread-->
Going from 24-bit to 16-bit, the quantization error is very small and the distortion/noise is extremely unlikely to be heard in any real music. Since quantization error isn’t audible in any real music at useable listening levels, whether dither must be used is more a matter of doctrine than functionality.


Going from 24-bit to 16-bit, the quantization error is small.
Many sources (e.g. cassettes and LPs) already have considerable noise such as tape hiss. Even the best live recordings get some noise from the equipment, especially microphone preamplifiers. This might not make the best dither, but it acts in the same way, to largely de-correlate the quantization error from the signal.
Many sources (e.g. cassettes and LPs) already have considerable noise such as tape hiss. Even the best live recordings get some noise from the equipment, especially microphone preamplifiers. This might not make the best dither, but it acts in the same way.


HydrogenAudio is forum where examples of dithered conversions to 16-bit can be submitted for evaluating and blind testing.
Anyone who believes dither is always necessary for conversions to 16-bit should submit, on the HydrogenAudio forums, samples that can be discriminated in [[TOS 8|scientifically reproducible]] [[Blind test|blind testing]].
[[Category:Signal Processing]]
[[Category:Technical]]
[[Category:Algorithms]]

Latest revision as of 21:22, 26 October 2023

Dither is random or semi-random noise added to a signal in order to mask potential artifacts arising from quantization error and/or extend dynamic range. The simplest dither is quiet white noise, but more complicated forms of dither are possible using noise shaping, and they can even be completely inaudible.

Bit depth reduction

A common use for dither is to improve the perceived audio quality when converting a digital signal from a higher bit depth to a lower one, e.g. from 24-bit to 16-bit. By dithering the signal with a small amount of added noise, the additional rounding error added from requantization can be decorreated from the signal, resulting in a noise floor that is mathematically slightly higher, but audibly less noticeable. The addition of dither becomes more important as the number of quantization levels decreases, and so is particularly important when converting to 8 bit or lower audio.

Is dither really necessary?

Going from 24-bit to 16-bit, the quantization error is very small and the distortion/noise is extremely unlikely to be heard in any real music. Since quantization error isn’t audible in any real music at useable listening levels, whether dither must be used is more a matter of doctrine than functionality.

Many sources (e.g. cassettes and LPs) already have considerable noise such as tape hiss. Even the best live recordings get some noise from the equipment, especially microphone preamplifiers. This might not make the best dither, but it acts in the same way, to largely de-correlate the quantization error from the signal.

Anyone who believes dither is always necessary for conversions to 16-bit should submit, on the HydrogenAudio forums, samples that can be discriminated in scientifically reproducible blind testing.