Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th March 2011, 11:31 AM   #1
oshifis is offline oshifis  Hungary
diyAudio Member
 
Join Date: Mar 2004
Location: Budapest, Hungary
Default Adding Dither

I don't know too much about the theory of dither, but I think it is correct to state that it improves low level linearity. Then I know that either the CD record may contain added dither, or the digital filter may add dither during playback.

If the above is correct (please confirm) then would it be possible to generate dither in hardware and add it to the bit samples? I mean building a random signal generator (PRBS) and some logic circuitry into the CD player could do it.
  Reply With Quote
Old 8th March 2011, 01:28 PM   #2
Banned
 
Join Date: Jan 2008
Blog Entries: 2
Dither is added to randomize patterns that arise in quantization. Production CDs normally have dither added at the mastering stage e.g when the sample rate is reduced from 24 to 16 bits. The rounding-up and -down which takes place is randomised so that an overflow of 0.1 will be rounded up once for every 9 times it is rounded down, the pattern of 1-to-9 roundings being varied randomly.

I don't think it's practical to add dither at playback, it requires knowledge of the signal being processed (downsampled or filtered), and I can't see a good reason for doing it.

w

Last edited by wakibaki; 8th March 2011 at 01:30 PM.
  Reply With Quote
Old 8th March 2011, 01:50 PM   #3
diyAudio Member
 
abraxalito's Avatar
 
Join Date: Sep 2007
Location: Hangzhou - Marco Polo's 'most beautiful city'. 700yrs is a long time though...
Blog Entries: 46
Send a message via MSN to abraxalito Send a message via Yahoo to abraxalito Send a message via Skype™ to abraxalito
Quote:
Originally Posted by oshifis View Post
I don't know too much about the theory of dither, but I think it is correct to state that it improves low level linearity.
You could put it like that - in practice there's no linearity (no signal) at all below the LSB in the absence of dither and even above this the quantization noise is correlated with the signal.

Quote:
Then I know that either the CD record may contain added dither, or the digital filter may add dither during playback.
I'd hope that dither is used whenever an A/D conversion is performed or the word length is reduced. Hence a digital filter based on a sum-of-products structure ideally adds dither before sending 16/18/20/22 or 24 bits out to the DAC.

Quote:
If the above is correct (please confirm) then would it be possible to generate dither in hardware and add it to the bit samples?
Certainly its possible but would perform no useful function unless its added prior to word-length truncation. To do that requires access to the internals of the digital filter in use.

Quote:
I mean building a random signal generator (PRBS) and some logic circuitry into the CD player could do it.
Yes, that would be a primitive way of doing it, but suboptimal in the sense that dither is ideally TPF which is usually generated by summing two uncorrelated noise sources. So to do it well, you should have two independent PRBS and take steps in the design to ensure they remain uncorrelated. But as I've already mentioned, there's no benefit to doing this unless inserted at the correct point - immediately prior to truncation.
__________________
I think ideas are what you want to get rid of. I don't really like songs with ideas. - Leonard Cohen
  Reply With Quote
Old 8th March 2011, 03:23 PM   #4
badman is offline badman  United States
Custom Title
diyAudio Member
 
badman's Avatar
 
Join Date: Sep 2003
Location: Sunny Tustin, SoCal
Quote:
Originally Posted by abraxalito View Post
Certainly its possible but would perform no useful function unless its added prior to word-length truncation. To do that requires access to the internals of the digital filter in use.
Unless you were stuck with poorly mastered material and wished to add low level noise for masking purposes. I'll take a low-level complex noise spectrum over a low level signal-correlated artifact anyday.

Of course, you'd want this switchable.
__________________
I write for www.enjoythemusic.com in the DIY section. You may find yourself getting a preview of a project in-progress. Be warned!
  Reply With Quote
Old 8th March 2011, 04:39 PM   #5
Banned
 
Join Date: Jan 2008
Blog Entries: 2
Helluva long way round to go to add some noise.

w
  Reply With Quote
Old 8th March 2011, 04:49 PM   #6
diyAudio Member
 
Join Date: Jan 2008
Location: Virginia
Like it was said before addind dither reduces the available bitdepth. That's why it can be done to the original 20-24 bit signal when is converted to 16 bit.

Addig dither to an existing 16 bit signal is possible only if you can live with resulting 14-15 bit of data (or less). And it won't "improve" the quality of the original signal, it will just make those "lesser" bitdepth samples to sound better that the same bitdepth samples obtained without having the dither applied at the conversion/truncation.

Last edited by SoNic_real_one; 8th March 2011 at 04:51 PM.
  Reply With Quote
Old 8th March 2011, 04:52 PM   #7
guido is offline guido  Netherlands
diyAudio Member
 
guido's Avatar
 
Join Date: Mar 2002
Location: diepe zuiden
Use a PMD100 (or 200 if you can ever find one). It can add dither (several levels of dither) towards the dac. Seems to have a positive effect specially for (old) multibit dacs (pcm63 etc). Have a look at the datasheet.

I've done some testing with one and a spectrum analyser and could clearly see a drop in the noisefloor in the audioband when dither was added. Together with a rise in the noisefloor outside the audio band (no such thing as a free lunch).
__________________
GuidoB
  Reply With Quote
Old 8th March 2011, 05:31 PM   #8
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
in theory the HDCD case is another example of adding dither to a higher resolution digital stream - HDCD uses compression/expansion in coding the CD so they claim up ~20 bits of dynamic range

the dither is being added to the expanded/decoded HDCD "higher resolution" bit stream to still drive 16 bit DAC
  Reply With Quote
Old 8th March 2011, 05:37 PM   #9
diyAudio Member
 
Join Date: Jan 2008
Location: Virginia
That is only the case of PCM100. Latter implementations (via DSP) drive directly 20 or 24 bit DAC's.
  Reply With Quote
Old 8th March 2011, 08:15 PM   #10
guido is offline guido  Netherlands
diyAudio Member
 
guido's Avatar
 
Join Date: Mar 2002
Location: diepe zuiden
Quote:
Originally Posted by jcx View Post
in theory the HDCD case is another example of adding dither to a higher resolution digital stream - HDCD uses compression/expansion in coding the CD so they claim up ~20 bits of dynamic range

the dither is being added to the expanded/decoded HDCD "higher resolution" bit stream to still drive 16 bit DAC
No, this is not the HDCD part of the filter. You can separately add dither to a normal, not hdcd encoded, source. And it makes a measurable difference (i added a microprocessor to the filter and could change dither settings on the fly with a remote).
__________________
GuidoB
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Supertweeter.... raypalmer Multi-Way 17 4th September 2011 08:07 AM
Adding a Potentiometer marian99 Chip Amps 29 22nd March 2009 10:33 PM
Adding capacitor built Car Audio 8 17th October 2007 02:27 PM
How to Control Dither on PMD100 Chip? fastcat95 Digital Source 1 1st September 2007 11:36 PM
adding capacitor DREW028 Solid State 21 19th July 2004 08:35 AM


New To Site? Need Help?

All times are GMT. The time now is 11:33 PM.

Page generated in 0.11534 seconds (81.44% PHP - 18.56% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio