Editing Dither

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
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.
+
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]], and they can even be completely inaudible.
 +
Signal details smaller than the quantization level are retained, after quantization, when Dither Noise is added to the source material.
 +
==Explanation.==
 +
A small signal detail with height less than the quantization level, 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.
  
 
==Bit depth reduction==
 
==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.
+
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.
  
==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.
 
  
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.
+
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. The waveform error is expressed in the output signal as noise, but noise related to (correlated to) the audio from which it is derived. This is a quality of noise that is generally found to be unpleasant.
  
Anyone who believes dither is always necessary for conversions to 16-bit should submit, on the HydrogenAudio forums, samples that can be discriminated in blind testing.
+
When a small variation in the signal 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 total noise is much less objectionable than the effect of quantization alone.
  
{{stub}}
+
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.
 +
 
 +
HydrogenAudio is forum where examples of dithered conversions to 16-bit can be submitted for evaluating and blind testing.

Please note that all contributions to Hydrogenaudio Knowledgebase are considered to be released under the GNU Free Documentation License 1.2 (see Hydrogenaudio Knowledgebase:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page: