Become a Site Supporter and Never see Ads again!

Author Topic: Dithering facts and fiction  (Read 6506 times)

0 Members and 1 Guest are viewing this topic.

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Dithering facts and fiction
« on: October 25, 2004, 08:33:43 PM »
Ok... first off I would like to say I claim to be NO expert on dithering, but I thought I would open up a discussion on it.  I was looking through a few of the posts in this thread relating to dithering.  There were a few places where it was stated or implied that dithering was used AS bitrate conversion.
     It is my understanding that dithering is adding little chunks of noise to a wav which causes the already present noise to blend in better and makes it less audible.  It is also my understanding that this should be used each time after any amplitude adjustment (such as normalizing, eq, compression, or any time you are changing the "volume" of the wav or part of the wav), and again anytime you change either the bitrate or samplerate.  It is also my understanding that the only noise that this will correct is distortion which is caused by the above.
     I would like to hear from thoes who are more educated on this subject than I, and clear this up for all of us.

Thanks in advance!

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline jk labs

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 191
  • Gender: Male
  • Straight wire!
    • Mics, pre and ADC...
Re: Dithering facts and fiction
« Reply #1 on: October 25, 2004, 09:32:42 PM »
It's a huge topic and it's not all about noise. In a way you can say that dithering is about adding noise so as to make the digital signal better resemble the analog signal:   
say you have a 16 bit converter. The analog input is just a fraction too weak to be detected. It lives down in the 17th bit. If you now add noise to the signal the combined signal will be detected now and then. In fact you get something that resemble the analog signal. But now there is added noise here as well.

So dithering is about adding the proper amount of noise during the process of data truncation in order to get a better, more accurate representation of the signal.     

Noiseshaping is about dithering with noise of such a spectrum (and nature) that the noise added
to the recording is the least amount objectionable. 


Thing is when you change the bitrate, you are often forced to form products and excecute huge summations. This prosessing ought to be done at a much higher resolution than the original data. Say 32 bits are used. And then at the end, when all post processing at this higher resolution is done, you must truncate down to target bitdepth ....

Edited Ia: In light of what you wrote about normalization etc I should just have posted in your support on the issue of samplerate conversion: Truncating the bitdepth has nothing to do with inserting or removing new timesamples.

Edited Ib: All operations on the data involving some form of multiplication cause the bitdepth to increase. Dithering must be performed *every* time that data is truncated to a lesser bitdepth.   

PS: You can't mask noise that's already on the recording. But you can reduce the quantization noise that brute force chopping off would have caused... 
 
« Last Edit: October 25, 2004, 10:42:39 PM by jk labs »

Offline MattD

  • Taper Emeritus
  • Trade Count: (1)
  • Needs to get out more...
  • *****
  • Posts: 4634
  • Gender: Male
Re: Dithering facts and fiction
« Reply #2 on: October 25, 2004, 09:35:55 PM »
Ok... first off I would like to say I claim to be NO expert on dithering, but I thought I would open up a discussion on it.  I was looking through a few of the posts in this thread relating to dithering.  There were a few places where it was stated or implied that dithering was used AS bitrate conversion.
It is used "during" bit depth conversion. You are correct in your assessment.

Quote
It is also my understanding that this should be used each time after any amplitude adjustment (such as normalizing, eq, compression, or any time you are changing the "volume" of the wav or part of the wav), and again anytime you change either the bitrate or samplerate.
This is incorrect. Dithering should only be performed once, generally as the FINAL STEP before creating the master.
Out of the game … for now?

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #3 on: October 26, 2004, 09:09:22 AM »
Thing is when you change the bitrate, you are often forced to form products and excecute huge summations. This prosessing ought to be done at a much higher resolution than the original data. Say 32 bits are used. And then at the end, when all post processing at this higher resolution is done, you must truncate down to target bitdepth ....
Are you suggesting that we should convert to a higher bitrate than the original recording, then perform all post processing, then convert to target bitrate just for the final product?


Edited Ib: All operations on the data involving some form of multiplication cause the bitdepth to increase. Dithering must be performed *every* time that data is truncated to a lesser bitdepth. 
 

This is incorrect. Dithering should only be performed once, generally as the FINAL STEP before creating the master.
Quote
Seems we have differing opinions here.  Anyone else want to chime in?  Thanks guys!  +T

Matt
Quote
« Last Edit: October 26, 2004, 09:12:06 AM by mmmatt »
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline MattD

  • Taper Emeritus
  • Trade Count: (1)
  • Needs to get out more...
  • *****
  • Posts: 4634
  • Gender: Male
Re: Dithering facts and fiction
« Reply #4 on: October 26, 2004, 11:31:07 AM »
This is incorrect. Dithering should only be performed once, generally as the FINAL STEP before creating the master.

Seems we have differing opinions here.  Anyone else want to chime in?  Thanks guys!  +T

I don't think I'm diplomatic enough to say this without sounding like an ass, but please don't take this as a personal attack. My statement above was not opinion. Dithering introduces quantization noise. Dithering multiple times compounds the noise.
Out of the game … for now?

Offline jk labs

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 191
  • Gender: Male
  • Straight wire!
    • Mics, pre and ADC...
Re: Dithering facts and fiction
« Reply #5 on: October 26, 2004, 12:00:01 PM »
Thing is when you change the bitrate, you are often forced to form products and excecute huge summations. This prosessing ought to be done at a much higher resolution than the original data. Say 32 bits are used. And then at the end, when all post processing at this higher resolution is done, you must truncate down to target bitdepth ....
Are you suggesting that we should convert to a higher bitrate than the original recording, then perform all post processing, then convert to target bitrate just for the final product?

.....

 Thanks guys!  +T

Matt


(Who tricked me into using the word bitrate above?  >:(  It doesn't really belong to this discussion.)

My suggestion is that you leave the samplerate alone unless you have a good reason for changing it.
But if the need for a different samplerate arises then the need for truncation and dithering is present.

Every time you manipulate the data and save to file, and the process of saving involves truncating valid data, you must dither. And it's not optional.  Yes, that means a lot of dithering. This is _the_ reason for the practice that
one plans the entire mastering process well and do all mastering while keeping the intermediate data at a higher
bit resolution. That way you only have to dither once: during the final save.

Democrats may see things differently ...  ;D

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #6 on: October 26, 2004, 01:05:48 PM »
Ok... I think maybe you guys are more on the same lines than I thought.  Let me back up a bit.  I currently record to a jb3, and now that I have recently acquired decent software for samplerate conversion/dithering (wavelab essential) I am back to recording at 48/16.  My reason for popping into this part of the world (computer recording) is that I'm planning on blowing the dust off the laptop and attempting a 24bit recording next time I run my matrix rig.
     Now, when I do an ambient recording I don't typically touch my recordings.  I just change samplerate (if I recorded at 48/16) and cut the sucker up.  Sometimes I get a bass hum or something and I have to do more, but it is rare as I typically use a rolloff on the mics when I see that comming.
     With my matrix rig it is a completely different story.  I often do some global processing, and then cut, and then do processing on each file individually.  The last three things I do are convert from 48/16 to 44.1/16, dither, and save.  If I do any amplitued adjusting I dither between each step.  So in my situation I may dither the file 3 or more times.  I think it is safe to say that I am dithering too much, and as long as I complete my processing prior to saving I only need to dither prior to a save.
     If this is the case, then I will be saving myself a lot of dither time!  However I will have to rethink my global processing step because this will require an additional dither step and potentially add unwanted noise.

Am I on track now?

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline rustoleum

  • Trade Count: (0)
  • Taperssection All-Star
  • ****
  • Posts: 1015
  • Gender: Male
  • AKG 481s->MiaGi IIs->MiniMe->MTII
Re: Dithering facts and fiction
« Reply #7 on: October 26, 2004, 01:35:45 PM »
Process (EQ, Normalize, etc).  Then Resample.  Then Dither.

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #8 on: October 26, 2004, 02:46:41 PM »
Thank you JK and Matt.  This is starting to make sence to me now.  I will happily put together a blind test if someone has a way to host it.  I could take 2 30sec chunks from a wav... one that has quiet spots and one that has more drive and do dithering your way, my (old) way, and none at all.  I have only recently started dithering anythingl, and I do notice a difference between dithering and not.  Mostly through my headphones though (sennheiser 280s) as my playback (nakamichi A/V reciever > polk s-10s) is very forgiving and anything but acurate.

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline Scooter

  • Trade Count: (2)
  • Taperssection All-Star
  • ****
  • Posts: 1770
  • Gender: Male
Re: Dithering facts and fiction
« Reply #9 on: October 26, 2004, 03:50:19 PM »
In Wavelab, ANY time you move a fader, insert a plugin, or other certain types of things, it is upsampling to 32 bits, then downsampling again.  So if you render multiple times w/ processing, you must dither each time.  I like the earlier suggestion of saving in 32 bit format if you think you might need to process again at a later time, good idea!  This seems like it would negate then need for multiple dithers when you process multiple times.  As far as if you can hear the effect of multiple dithers, good question ;).
« Last Edit: October 26, 2004, 03:55:05 PM by Scooter »
MBHO 603a(ka200n/ka500hn) >
R-44, or H120

LMA Recordings

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #10 on: October 26, 2004, 04:30:15 PM »
I like the 32bit suggestion as well, but my stone age 18GB-HD computer can't handle multiple versions of files at 16bit let alone 32.  New computer soon and I won't worry about that, but for now I'm just going to start what I finish  :)  I rarely do global processing anyway, it is ussually file by file.

   ***Side note*** this would be another good reason for TS.com to have a torrent tracker.  It would be nice to torrent tests like this!
35-40 MB on a torrent would run fast.

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline jk labs

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 191
  • Gender: Male
  • Straight wire!
    • Mics, pre and ADC...
Re: Dithering facts and fiction
« Reply #11 on: October 26, 2004, 06:12:09 PM »
In Wavelab, ANY time you move a fader, insert a plugin, or other certain types of things, it is upsampling to 32 bits, then downsampling again.  So if you render multiple times w/ processing, you must dither each time.  I like the earlier suggestion of saving in 32 bit format if you think you might need to process again at a later time, good idea!  This seems like it would negate then need for multiple dithers when you process multiple times.  As far as if you can hear the effect of multiple dithers, good question ;).

We'll see :) We know that dither lessens the severity of the quantization noise that occurs when truncating from analog or high resolution, to lower resolution.  The data that is of interest to us was for sure truncated and dithered in the ADC. So the final dithering will be added to the initial dithering irrespective of how much we try to resist it.

Now comes the fun part. The different noiseshapes used when dithering might be "incompatible".. That is when you dither on top of an already dithered signal bad things _could_ happen.

This is something to be aware of if dithering is applied several times using fancy noiseshaping. "Dithered 4 times" might be very different from "dithered four times".

To be of value any test must keep track of the noiseshaping algortihm(s) used.







Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #12 on: October 26, 2004, 06:40:50 PM »
Well... my std wavelab "internal" dithering doesn't give anything to scientiffic... just noise 1 or 2 and shaping 1,2 , or 3.  I could certainly do the same and then do mix-n-match as a 3rd test.  The other thing we could do to get this around is just e-mail the files to a phony yahoo e-mail account, then just share the password and login.  I think the yahoo acounts are 100 mb now, and I'm sure they would handle a 5mb file.

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #13 on: October 27, 2004, 04:19:15 PM »
ok... the place to get the files is through a gmail act.  www.gmail.com
login is dither.test
password is tsdotcom
    I have diter test "a" up and b" in just a few minutes.  They can be downloaded from the "sent" folder.


Ok... here is the test!
2 files "A" is a rock jam and "B" is a quiet acoustic jam.  "A" is
from a matrix that had a fair amount of noise to start with coming off
the soundboard feed.  "B" is mics only and is as clean as I have
(sorry no u87's here!)

"A"  akg391's (on stage corners facing audience) + SBD > Mackie ONYX
1220 > ua-5 (for A/D only) > jb3@48/16

"B" akg391's DIN, DFC, 15' > ua-5 (d-mod only) > jb3@48/16

processes are as follows (please note I wasn't trying to improve the
sound... just random processes!)
all files:
fade in
fade out
normalize to -0.1
compress @ 2 to 1 w/-20db threshold
normalize to -0.4
master volume to +.15
convert samplerate to 44.1/16

In each of the 2 file groups I produced 4 seperate wavs
one of each has the folowing

no dithering at all

dither with the same noise/shaping after every change except the fades
(5 rounds of dither)

dither with different noise/shaping after every change except fades (5
different combinations of dither)

dither only at the end of the process during the save sequence

Bonus points is you can gues the bands, and the songs but at least song "a" is a nobrainer.

Good luck!!!
Matt


Matt
« Last Edit: October 27, 2004, 04:23:55 PM by mmmatt »
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

Offline mmmatt

  • taping > photography
  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 4168
  • Gender: Male
  • ... A broken angel sings from a guitar
    • LightCraft Photography
Re: Dithering facts and fiction
« Reply #14 on: October 27, 2004, 04:54:58 PM »
they are all up now

Matt
I do think taping is the reality of the business..it is also an impetus for artists to create studio CDs that are ART, not just another recording...    Fareed Haque  2-4-2005




Canon 24-70 f2.8L, Canon 135 f2L, Canon 70-200 f4L, Canon 50 f1.8, > Canon 5D or Canon xt (digi) and Canon 1N (film)

 

RSS | Mobile
Page created in 0.08 seconds with 39 queries.
© 2002-2024 Taperssection.com
Powered by SMF