It is currently Mon May 20, 2019 7:54 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Apr 10, 2019 2:08 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 911
Location: New York, NY
Regarding DSP, when attenuating audio or mixing audio (which involves attenuation and addition), should audio dithering be applied? Is seems like a similar process as bit depth reduction?


Top
 Profile  
 
PostPosted: Wed Apr 10, 2019 2:33 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 8360
Location: Seattle
Audio dithering is only really appropriate as part of bit depth reduction. It's approximately delta-sigma modulation on the LSbits to increase the effective bit depth at lower frequency in exchange for more noise at higher frequency.


Top
 Profile  
 
PostPosted: Wed Apr 10, 2019 2:35 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 7459
Location: Canada
Dithering definitely makes a slight improvement for 8-bit output, but it's probably not worth doing for 16-bit or higher, except for very high fidelity applications.

Like it's a reasonable operation for Audacity to do when you're saving a file to disk (the application is entirely about audio, and overhead is drowned by disk access anyway), but for an emulator I wouldn't even bother thinking about it.


Top
 Profile  
 
PostPosted: Wed Apr 10, 2019 3:36 pm 
Offline
Formerly WheelInventor
User avatar

Joined: Thu Apr 14, 2016 2:55 am
Posts: 2015
Location: Gothenburg, Sweden
In general high-end music production, you only dither when you need to convert your project from 32-bit float to 16 or 24 bit media targets, as a final step once all the other mastering tweaks are done. A cargo cult idea is that it makes the mix sound more "analog", which is in a sense is true since you mitigate the rounding errors which are very digital domain, but the amount of noise added (compared to tape hiss) shouldn't be noticeable.

Elsewhere... i guess the following could be a test. Are you bit depth reducing? can you hear the rounding error affect the sound as a result (in the case of audio - elsewhere, does it provide significant inaccuracies)? Is it unacceptable? If yes to all three, dithering may be a worthwhile feature.

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Wed Apr 10, 2019 4:19 pm 
Offline

Joined: Thu Aug 20, 2015 3:09 am
Posts: 451
Some excellent explanations of dither.

My current emulator has 64-bit float DSP and 8/16-bit integer output, so I add simple TPDF dither at the final downsample. Scale and clamp rail-to-rail signal range to to +/- 32766 (or +/- 126), add two random numbers in the range +/- 0.5 and cast to int. Practical performance overhead is nil compared with resampling, and it makes an audible difference because the signal is often very quiet (headroom needed to prevent clipping and/or tracks intentionally not using full range).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group