[Maybe a new RE] Opinion needed on dither algorithm, ...

This forum is for discussing Reason. Questions, answers, ideas, and opinions... all apply.
Post Reply
avasopht
Competition Winner
Posts: 3948
Joined: 16 Jan 2015

06 Feb 2015

I've just been experimenting with a simple dither algorithm that I've had in my head for many years.

http://phead.mu/s/7UJa0WG4

To really test the algorithm I decided to do a 4-bit dither (if you look at the wave you'll see I'm really pushing it). The first 6 seconds or so is just pure truncation, everything after that is me tweaking parameters.

I'd like your second opinions on which portion of the audio features the best settings.

FYI, this isn't just adding noise. Noise is one of the tools, but the algorithm allows much more detail to pass through.

User avatar
normen
Posts: 3431
Joined: 16 Jan 2015

06 Feb 2015

Hard to say with such examples. Btw I suggest looking into what Paul Frindle said about dithering on gearslutz for example, he revealed a lot of information about the research they have done for the Sony Oxford console. Bottom line is you don't want your algorithm to put out too cyclic noise because the brain seems to pick up on patterns in the noise and do funny things with the perceived stereo width of the audio.

avasopht
Competition Winner
Posts: 3948
Joined: 16 Jan 2015

06 Feb 2015

Interesting read!

My algorithm is pushing all of the noise into the higher frequencies, though there a few ways I can spread the error. I've found that when you apply a low pass after this dither that it sounds comparatively clear (this was at 8 bits).

I've uploaded a second demo ( http://phead.mu/s/Xxi8XDIu ) with the following format:
Bar 1: truncated
Bar 2-3: increasing dither effect
Bar 4: dither plus low pass afterwards
Bar 5: original signal
Bar 6: dither plus low pass afterwards (to compare with signal)
Bar 7-8: like bars 5-6

When you view it through a spectrometer you can see that it's really just pushing the error into the higher frequencies.

User avatar
selig
RE Developer
Posts: 11745
Joined: 15 Jan 2015
Location: The NorthWoods, CT, USA

06 Feb 2015

Is this not just "noise shaping", or something different going on here?
:)
Selig Audio, LLC

avasopht
Competition Winner
Posts: 3948
Joined: 16 Jan 2015

06 Feb 2015

selig wrote:Is this not just "noise shaping", or something different going on here?
:)
You're right. See the thing with DSP is that there are a lot of names for the same thing, and because I'm more of an experimental person I tend to "come up" with solutions that already exist :frown:

After just reading the Wikipedia entry on Noise Shaping, seems like I was reinventing the wheel completely.

Well it was a fun exercise, at least I got my excitement for the day.

There is one thing I do slightly differently and that's amplifying the fed back error with noise (multiplying between -3dB and +3dB gain). Seems to let a little more detail pass through.

User avatar
selig
RE Developer
Posts: 11745
Joined: 15 Jan 2015
Location: The NorthWoods, CT, USA

06 Feb 2015

selig wrote:Is this not just "noise shaping", or something different going on here?
:)
avasopht wrote:
You're right. See the thing with DSP is that there are a lot of names for the same thing, and because I'm more of an experimental person I tend to "come up" with solutions that already exist :frown:

After just reading the Wikipedia entry on
avasopht wrote:Noise Shaping
avasopht wrote:, seems like I was reinventing the wheel completely.

Well it was a fun exercise, at least I got my excitement for the day.

There is one thing I do slightly differently and that's amplifying the fed back error with noise (multiplying between -3dB and +3dB gain). Seems to let a little more detail pass through.
I get excited all the time with stuff like this, only to find out it's either already begin done or there are practical reasons why it's not! But believe me, it's far worse when it's a melody you think you've 'discovered'…
;)
Selig Audio, LLC

User avatar
Theo.M
Posts: 1100
Joined: 16 Jan 2015

06 Feb 2015

is it really possible to beat the izotope one anyway? Unless it was a very cheap RE i'd think that for $49 most would buy ozone to get the limiter and comprehensive megabit max dithering included which can work independently of one another anyway. Heck you can even put the ozone limiter to just deal with isps and nothing else, or just dither, or use everything but dither, etc.


User avatar
orthodox
RE Developer
Posts: 2286
Joined: 22 Jan 2015
Location: 55°09'24.5"N 37°27'41.4"E

06 Feb 2015

There were several discussions at Hydrogenaudio about which dithering algorithms are the best. No definite conclusion was made, but after reading those I decided to use pow-r3 or izotope mbit+ for production.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests