Can someone explain to me what dithering is? - Gearslutz.com Gearslutz.com
 


All Advertisers
Go Back   Gearslutz.com > The Forums > Newbie audio engineering & production question zone (trial beta forum)

Can someone explain to me what dithering is?
Topic: New Reply New Reply Thread Tools Search this Thread
Old 26th July 2012   #1
Gear Head
 
Billly's Avatar
 
Joined: Jul 2012
Location: NJ
Posts: 45

Thread Starter
Can someone explain to me what dithering is?

From what i understand it is the regaining of lost information when an analog signal is converted into digital or back in to digital? Or is that completely wrong? I really have no idea.
Billly is offline  
Reply With Quote
Old 26th July 2012   #2
Gear interested
 
Joined: Jul 2012
Posts: 18

I'm sure you can google and the first result will be a definition or Wikipedia article. But I'm too lazy to copy/paste.
Drtro is offline  
Reply With Quote
Old 26th July 2012   #3
Lives for gear
 
Joined: Aug 2010
Posts: 520

Completely wrong. But I like above answer best because if I try to explain it I'll get it wrong and it will start a 3 page thread.
johnnyv is offline  
Reply With Quote
Old 26th July 2012   #4
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by Billly View Post
From what i understand it is the regaining of lost information when an analog signal is converted into digital or back in to digital? Or is that completely wrong? I really have no idea.
It adds noise due to issues in quantisation when sampling.
ShadowAMD is offline  
Reply With Quote
Old 27th July 2012   #5
Lives for gear
 
Joined: Mar 2010
Location: Area 51, NV, USA
Posts: 1,614

Quote:
Originally Posted by Billly View Post
From what i understand it is the regaining of lost information when an analog signal is converted into digital or back in to digital? Or is that completely wrong? I really have no idea.
Not even close, but don't worry about it.

The very short answer: It's a method to convert larger digital sample sizes to smaller sizes, while trying to preserve some of the detail carried in the bits that are removed. There are various methods that are used, most involving adding a very low level, shaped random noise spectrum.

The Wikipedia listing is detailed but is also very "dry" and includes excruciating detail that will turn off almost everyone.

For a shorter, more understandable explanation see: What is dither?
Lotus 7 is online now  
Reply With Quote
Old 27th July 2012   #6
Gear Head
 
Billly's Avatar
 
Joined: Jul 2012
Location: NJ
Posts: 45

Thread Starter
thanks so much guys this really helped a lot
Billly is offline  
Reply With Quote
Old 27th July 2012   #7
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by Billly View Post
thanks so much guys this really helped a lot
Short answer (my try):

The act of reducing bit depth introduces background noise that is modulated by the original waveform, resulting unpleasant. Dither modifies the reduction process so that the generated noise is not modulated by the source, resulting less annoying.

Noise-shaping changes that noise's EQ so that more energy is moved to frequencies that are less audible, resulting in an apparent quieter noisefloor.
__________________
AudioExMachina's Echorec Bible: visit the complete Binson Echorec catalog at http://audioexmachina.wordpress.com/...echorec-bible/

Last edited by audioexmachina; 27th July 2012 at 06:07 PM.. Reason: typo
audioexmachina is offline  
Reply With Quote
Old 27th July 2012   #8
Gear maniac
 
Joined: Jan 2009
Posts: 176

Try here: iZotope Insider Tips: Introduction To Dither - YouTube
SochiTag is offline  
Reply With Quote
Old 28th July 2012   #9
Lives for gear
 
joe_04_04's Avatar
 
Joined: Oct 2009
Location: Indiana
Posts: 1,396

I could never wrap my head around that technical jargon, just know that it is something that is necessary when bouncing your 24 bit mixes to 16. Its the most boring plug that will ever be in your signal chain, unless you are recording to disk in which case pro tools (if you use it) automatically adds dither upon exporting the bounced region (clip in pt 10).
__________________
Free Casio MT-35 Kontakt Library:
http://dl.dropbox.com/u/5129928/Casi...ent%20V2.1.zip
Free multilayer, multivelocity snare drum:
https://dl.dropbox.com/u/5129928/My%...My%20Snare.zip
In a metal band? Join my promotion page and post your material!
www.facebook.com/pedaltothemetalpromotions
Do you enjoy producing/Tracking?Mixing? Join my FB club!
http://www.facebook.com/groups/248380011960208/
joe_04_04 is offline  
Reply With Quote
Old 30th July 2012   #10
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by audioexmachina View Post
Short answer (my try):

The act of reducing bit depth introduces background noise that is modulated by the original waveform, resulting unpleasant. Dither modifies the reduction process so that the generated noise is not modulated by the source, resulting less annoying.

Noise-shaping changes that noise's EQ so that more energy is moved to frequencies that are less audible, resulting in an apparent quieter noisefloor.
Sorry but your wrong, I can pull you towards 50 whitepaper's saying that.
ShadowAMD is offline  
Reply With Quote
Old 30th July 2012   #11
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by ShadowAMD View Post
Sorry but your wrong, I can pull you towards 50 whitepaper's saying that.
I'd be interested in knowing what these papers say: would you please post a quick summary in a few words, if you have time?

I can assure you, having worked on the subject for a long time, that the purpose of dither, in engineering, is the decorrelation between the quantization noise and the original signal.

Last edited by audioexmachina; 30th July 2012 at 11:54 PM.. Reason: typo
audioexmachina is offline  
Reply With Quote
Old 31st July 2012   #12
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by audioexmachina View Post
I'd be interested in knowing what these papers say: would you please post a quick summary in a few words, if you have time?

I can assure you, having worked on the subject for a long time, that the purpose of dither, in engineering, is the decorrelation between the quantization noise and the original signal.
I've done audio R&D for over 10 years, so nice to meet other guys..

"Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and digital video data, and is often one of the last stages of audio production to compact disc."

Dither - Wikipedia, the free encyclopedia

https://docs.google.com/viewer?a=v&q...7dPCoUvQ&pli=1

Here is just a few, you only have to google it and they are spot on!
__________________
http://mixalliance.co.uk Trade mixing and mastering skills.
ShadowAMD is offline  
Reply With Quote
Old 31st July 2012   #13
Lives for gear
 
perform/record's Avatar
 
Joined: Sep 2010
Location: earth
Posts: 638

Send a message via ICQ to perform/record
Quote:
Originally Posted by Lotus 7 View Post
...

For a shorter, more understandable explanation see: What is dither?
EDIT:

Thanks, this was interesting.
perform/record is offline  
Reply With Quote
Old 31st July 2012   #14
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by ShadowAMD View Post
I've done audio R&D for over 10 years, so nice to meet other guys..
My pleasure as well! Looks like I'm older so won't expose my mileage in the field :-) I think the problem is just that a rather clear mathematical topic is referenced by many sources in natural language instead of formulas, leading to possible misunderstandings.


Quote:
"Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and digital video data, and is often one of the last stages of audio production to compact disc."
Right, "to randomize quantization error" references decorrelating the quantization error and the original signal.

This book (just the first coming out from google, never seen before), page 81 ( 2.8.10 Dither for Digital Interface Handbook, Third EditionAuthor(by John Watkinson and Francis Rumsey) ):

"If the quantizing error can be decorrelated from the input in some way, the system can remain linear. Dither performs the job of decorrelation"



Wiki says the same:

"If that error is repeating and correlated to the signal, the error that results is repeating, cyclical, and mathematically determinable. In some fields, especially where the receptor is sensitive to such artifacts, cyclical errors yield undesirable artifacts. In these fields dither results in less determinable artifacts."

That's obtaining decorrelation by whitening the quantization noise.


Same here too:
"When we now remove the last 8 bits to finally turn this signal into a 16 bit signal you'll see that we no longer have determineable "stair steps" as we did when just truncating, but we rather have random quantization fluctuations of single bits here and there."

Also, this last paper has a flaw: it suggest that dither noise should peak at the LSB level of the output signal: "In our working example we're dithering 24bits to 16 bits, so we're going to add 9 bits of noise."

That's a misundertanding of the function of dithering: that way one could dither a 16bit signal starting with a 16bit signal and random-flipping the LSB :-)

A proper example, IMHO, would use sub-LSB amplitude, such as 0.5bit peak levels for dither noise, showing that adding noise BEFORE the quantizer (even below the minimum sensitivity level of the quantizer itself) is the key to dithering. We know it's okay to peak dither up to the LSB, depending on the statistical distribution shape, but the paper suggest that as a REQUIRED condition. Which is not true.
audioexmachina is offline  
Reply With Quote
Old 31st July 2012   #15
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by audioexmachina View Post
My pleasure as well! Looks like I'm older so won't expose my mileage in the field :-) I think the problem is just that a rather clear mathematical topic is referenced by many sources in natural language instead of formulas, leading to possible misunderstandings.




Right, "to randomize quantization error" references decorrelating the quantization error and the original signal.

This book (just the first coming out from google, never seen before), page 81 ( 2.8.10 Dither for Digital Interface Handbook, Third EditionAuthor(by John Watkinson and Francis Rumsey) ):

"If the quantizing error can be decorrelated from the input in some way, the system can remain linear. Dither performs the job of decorrelation"





Wiki says the same:

"If that error is repeating and correlated to the signal, the error that results is repeating, cyclical, and mathematically determinable. In some fields, especially where the receptor is sensitive to such artifacts, cyclical errors yield undesirable artifacts. In these fields dither results in less determinable artifacts."

That's obtaining decorrelation by whitening the quantization noise.




Same here too:
"When we now remove the last 8 bits to finally turn this signal into a 16 bit signal you'll see that we no longer have determineable "stair steps" as we did when just truncating, but we rather have random quantization fluctuations of single bits here and there."

Also, this last paper has a flaw: it suggest that dither noise should peak at the LSB level of the output signal: "In our working example we're dithering 24bits to 16 bits, so we're going to add 9 bits of noise."

That's a misundertanding of the function of dithering: that way one could dither a 16bit signal starting with a 16bit signal and random-flipping the LSB :-)

A proper example, IMHO, would use sub-LSB amplitude, such as 0.5bit peak levels for dither noise, showing that adding noise BEFORE the quantizer (even below the minimum sensitivity level of the quantizer itself) is the key to dithering. We know it's okay to peak dither up to the LSB, depending on the statistical distribution shape, but the paper suggest that as a REQUIRED condition. Which is not true.
Umm, but I agree with the above LOL! I guess I must of just took the wrong end of the meaning in your post. It's hard not to be pedantic on the subject sorry :D
ShadowAMD is offline  
Reply With Quote
Old 31st July 2012   #16
Motown legend
 
Bob Olhsson's Avatar
 
Joined: Jun 2002
Location: Songwriter Gulch, Nashville TN
Posts: 12,069

My recent tests have shown that full level flat dither actually is required but if the signal has ever been truncated without dither, sub-LSB dither levels or noise shaping can sound better. It just won't sound as good as audio that was properly dithered with full level flat dither at every truncation step.

I realize this is a bit counterintuitive. The reduced level and noise shaping were all developed at a time when most converters had truncated oversampling and most recordings were made with 18 bit converters truncated to 16 bits. Modern converter chips are really a whole new ballgame that demonstrate the theory actually was correct.
Bob Olhsson is offline  
Reply With Quote
Old 31st July 2012   #17
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by ShadowAMD View Post
Umm, but I agree with the above LOL! I guess I must of just took the wrong end of the meaning in your post. It's hard not to be pedantic on the subject sorry :D
Yes, I'm sure we were saying the same thing :-) It doesn't hurt as that makes this thread a bit more informative (hopefully).
audioexmachina is offline  
Reply With Quote
Old 31st July 2012   #18
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by Bob Olhsson View Post
My recent tests have shown that full level flat dither actually is required but if the signal has ever been truncated without dither, sub-LSB dither levels or noise shaping can sound better. It just won't sound as good as audio that was properly dithered with full level flat dither at every truncation step.


Bob, do you have any reading for the dither peak value (and shape: RPDF,TPDF,...) at "full level", during those tests?

I'm asking as the 0.5bit I cited is the theorical minimum required ONLY for the rectangular shape (RPDF). If using TPDF you'd need to peak at least at 1.0bit, and even more with other custom shapes, however, even with peaks that high, most of the time the dither signal will be at sub-LSB level, due to the distributions not being rectangular. Basically, the higher the peaks, the less they happen.
audioexmachina is offline  
Reply With Quote
Old 31st July 2012   #19
Motown legend
 
Bob Olhsson's Avatar
 
Joined: Jun 2002
Location: Songwriter Gulch, Nashville TN
Posts: 12,069

Triangular 2.0 bits.
Bob Olhsson is offline  
Reply With Quote
Old 1st August 2012   #20
Gear maniac
 
JamesClark1991's Avatar
 
Joined: Jul 2012
Posts: 223

So lets say I record a vocalist at 24bit 48khz and then later on convert it to 16bit 44.1 should I dither it? and if I do will there be any artifacts? would it be better to just record straight to 16bit 44.1khz in the first place?

Any help appreciated
__________________
My Soundcloud. An assortment of random stuff! - http://soundcloud.com/jamesclark1991
JamesClark1991 is offline  
Reply With Quote
Old 1st August 2012   #21
Motown legend
 
Bob Olhsson's Avatar
 
Joined: Jun 2002
Location: Songwriter Gulch, Nashville TN
Posts: 12,069

If you do any digital signal processing, even a tiny gain change, you are creating 56 to 80 bit audio that needs to be dithered back to the final bit depth. I won't record anything at 16 bits for this reason.

I think a lot of plug-ins sound better at 48k and better yet at 96k so I record at those sample rates. At this point most of what people get paid for is video which would need to be converted to 48k. 48k MP3s sound better too.

The 44.1 conversion also creates 80 bit audio that needs to be dithered to 16.
Bob Olhsson is offline  
Reply With Quote
Old 1st August 2012   #22
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by JamesClark1991 View Post
So lets say I record a vocalist at 24bit 48khz and then later on convert it to 16bit 44.1 should I dither it? and if I do will there be any artifacts? would it be better to just record straight to 16bit 44.1khz in the first place?

Any help appreciated
Record in 44.1 /24 there are many reasons, especially when tracking.
ShadowAMD is offline  
Reply With Quote
Old 1st August 2012   #23
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by JamesClark1991 View Post
So lets say I record a vocalist at 24bit 48khz and then later on convert it to 16bit 44.1 should I dither it?
Yes, you should dither at the moment you reduce bit depth. Not later (as extra infomation from lower bits has already been lost), not earlier (as possible further processing stages may damage dither).

Quote:
and if I do will there be any artifacts?
Yes, but there would be artifacts even if you don't dither. The purpose of dithering is replacing unpleasant artifacts with more acceptable artifacts. Specifically, you reduce distortion at the expense of your S/N ratio (you get a little bit of extra background noise).

Quote:
would it be better to just record straight to 16bit 44.1khz in the first place?
(I'm skipping the 48<->44.1 conversion intentionally). It wouldn't be better to record at 16bit in first place. Look at it this way: that would be a bit reduction as well, from analog to 16, and you'd need to dither the input signal before it gets captured to obtain a quality comparable to a dithered 16bit coming from a 24bit source. Even doing that, you'd end up with a recording that, if processed, may loose its dithering components (see conditions at the start of this message).

Starting with hi-resolution sources and applying bit reduction only at the very last step is the correct way to preserve signal quality. Sometimes this is not possible (e.g. you're on a 32FP buss and need a roundtrip through the converters for a send/return connection to outboard gear)

I'd like to remark that all this is quite an academic perspective as in practice operating in a real world with rear devices (can I trust my hardware? and expecially my software?) introduces many other variables. Still IMHO it's not bad to keep theory as a reference.
audioexmachina is offline  
Reply With Quote
Old 1st August 2012   #24
Lives for gear
 
Joined: Oct 2010
Location: UK
Posts: 3,358

Quote:
Originally Posted by audioexmachina View Post
Yes, you should dither at the moment you reduce bit depth. Not later (as extra infomation from lower bits has already been lost), not earlier (as possible further processing stages may damage dither).



Yes, but there would be artifacts even if you don't dither. The purpose of dithering is replacing unpleasant artifacts with more acceptable artifacts. Specifically, you reduce distortion at the expense of your S/N ratio (you get a little bit of extra background noise).



(I'm skipping the 48<->44.1 conversion intentionally). It wouldn't be better to record at 16bit in first place. Look at it this way: that would be a bit reduction as well, from analog to 16, and you'd need to dither the input signal before it gets captured to obtain a quality comparable to a dithered 16bit coming from a 24bit source. Even doing that, you'd end up with a recording that, if processed, may loose its dithering components (see conditions at the start of this message).

Starting with hi-resolution sources and applying bit reduction only at the very last step is the correct way to preserve signal quality. Sometimes this is not possible (e.g. you're on a 32FP buss and need a roundtrip through the converters for a send/return connection to outboard gear)

I'd like to remark that all this is quite an academic perspective as in practice operating in a real world with rear devices (can I trust my hardware? and expecially my software?) introduces many other variables. Still IMHO it's not bad to keep theory as a reference.
What this guy said !! You type it, I'll take credit ;P
ShadowAMD is offline  
Reply With Quote
Old 2nd August 2012   #25
Motown legend
 
Bob Olhsson's Avatar
 
Joined: Jun 2002
Location: Songwriter Gulch, Nashville TN
Posts: 12,069

What kills me is that this is exactly the kind of thing computers are really good at keeping track of. It is programming incompetence and malpractice that users ever need to even think about dither. It is as dumb as an analog machine that defaulted to the bias being disabled.
Bob Olhsson is offline  
Reply With Quote
Old 2nd August 2012   #26
Gear nut
 
audioexmachina's Avatar
 
Joined: Jan 2012
Posts: 75

Quote:
Originally Posted by Bob Olhsson View Post
What kills me is that this is exactly the kind of thing computers are really good at keeping track of. It is programming incompetence and malpractice that users ever need to even think about dither. It is as dumb as an analog machine that defaulted to the bias being disabled.
I couldn't agree more.. That's what I see happen when products are completely designed by technicians, with real users having no role in the process.

IMHO a great product comes from users: engineers just need to figure out how to build it and make it work, then leave.
audioexmachina is offline  
Reply With Quote
New Reply New Reply Submit Thread to Facebook Facebook  Submit Thread to Twitter Twitter  Submit Thread to LinkedIn LinkedIn 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread starter Forum Replies Last Post
Is dithering a must??? davidperetz Mastering forum 17 5th December 2007 05:19 PM
Logic, it's Greek to me. Zarathustra Music Computers 3 11th October 2007 12:51 PM
Experts please explain tamasdragon Mastering forum 15 21st September 2007 10:38 PM
dither me this big country Music Computers 17 1st June 2007 02:29 AM
Dither? mml Mastering forum 11 8th December 2006 11:13 PM


All times are GMT +1. The time now is 02:44 AM.

Home - Search Forum - Contact Us - Terms Of Use / Privacy Policy - Advertise on Gearslutz - All Advertisers - Top
 
 
Powered by vBulletin®
Gearslutz.com LTD - UK Company Number 7597610.
Registered Office - 35 Ballards Lane, London, N3 1XW.
Hosted by Nimbus Hosting.

By using this site, you agree to our use of cookies.

SEO by vBSEO ©2011, Crawlability, Inc.