• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

Dithering is a Mathematical Process - NOT a psychoacoustic process.

Hayabusa

Addicted to Fun and Learning
Joined
Oct 12, 2019
Messages
833
Likes
575
Location
Abu Dhabi
What rules? Curious... My system shaped the noise to move it out of band and control the amplitude. What sort of psychoacoustic rules are used to optimize dither in audio systems? Do they correlate to the math? Noise decorrelation is pretty well defined and has been for decades; I don't know anything (relatively) about psychoacoustics.


from https://en.wikipedia.org/wiki/Noise_shaping

Noise shaping is a technique typically used in digital audio, image, and video processing, usually in combination with dithering, as part of the process of quantization or bit-depth reduction of a digital signal. Its purpose is to increase the apparent signal-to-noise ratio of the resultant signal. It does this by altering the spectral shape of the error that is introduced by dithering and quantization; such that the noise power is at a lower level in frequency bands at which noise is considered to be less desirable and at a correspondingly higher level in bands where it is considered to be more desirable. A popular noise shaping algorithm used in image processing is known as ‘Floyd Steinberg dithering’; and many noise shaping algorithms used in audio processing are based on an ‘Absolute threshold of hearing’ model.
 

solderdude

Grand Contributor
Joined
Jul 21, 2018
Messages
16,038
Likes
36,409
Location
The Neitherlands
I suppose Radsone's marketing of their "advanced dithering" is just BS?
They're quite literally advertising two "Radsone-tuned" dithering modes.

Paul can claim 'pkane-tuned' dithering mode :D
 

mansr

Major Contributor
Joined
Oct 5, 2018
Messages
4,685
Likes
10,705
Location
Hampshire
What rules? Curious... My system shaped the noise to move it out of band and control the amplitude. What sort of psychoacoustic rules are used to optimize dither in audio systems? Do they correlate to the math? Noise decorrelation is pretty well defined and has been for decades; I don't know anything (relatively) about psychoacoustics.
The audibility of dither noise below 20 kHz can be minimised by shaping it along the sensitivity curves of the ear. This is most useful when using 44.1/48 kHz sample rate since there is no ultrasonic region where noise can be dumped.
 

DonH56

Master Contributor
Technical Expert
Forum Donor
Joined
Mar 15, 2016
Messages
7,892
Likes
16,701
Location
Monument, CO
from https://en.wikipedia.org/wiki/Noise_shaping

Noise shaping is a technique typically used in digital audio, image, and video processing, usually in combination with dithering, as part of the process of quantization or bit-depth reduction of a digital signal. Its purpose is to increase the apparent signal-to-noise ratio of the resultant signal. It does this by altering the spectral shape of the error that is introduced by dithering and quantization; such that the noise power is at a lower level in frequency bands at which noise is considered to be less desirable and at a correspondingly higher level in bands where it is considered to be more desirable. A popular noise shaping algorithm used in image processing is known as ‘Floyd Steinberg dithering’; and many noise shaping algorithms used in audio processing are based on an ‘Absolute threshold of hearing’ model.

Yes, nice link, I read that earlier, since I have not considered dither for some time. Part of my problem is that I was introduced to noise decorrelation for radar systems and other RF communications (voice/data links, EW, etc.) and not audio. I was made aware of it in audio around the same time but paid little attention to it until some years later. My applications were not audio so psychoacoustics played no part whatsoever in how I researched and utilized dither in my designs. I actually worked with it later at a company that produced high-speed imagers as there were some research efforts to see if adding dither inside the imager or in the processor after was better for performance and SWAP (size, weight, and power).

At any rate, clearly I am not understanding the debate, and will quit derailing the thread! - Don
 
Last edited:

DonH56

Master Contributor
Technical Expert
Forum Donor
Joined
Mar 15, 2016
Messages
7,892
Likes
16,701
Location
Monument, CO
The audibility of dither noise below 20 kHz can be minimised by shaping it along the sensitivity curves of the ear. This is most useful when using 44.1/48 kHz sample rate since there is no ultrasonic region where noise can be dumped.

Thank you. A scheme I used in the primordial past had the same problem (needed to apply in-band decorrelation with minimal damage to everything else) and was solved by a fairly complicated circuit (designed by myself and a really good RF engineer I was working with at the time). Should have patented it but the company had a "don't let the secrets out" mentality and the end program was black. The solution was specific to I-Q systems, however, so not applicable to audio.
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
Sigh. This takes me back to my days at Nicolet...

/very old man

I had one of your audio spectrum analyzers connected to an AA501 for about two decades. That was a very useful setup, let me tell you.
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
As far as I know, there are different dithering algorithms that generate different noise shaping responses, and the developers choose them by psychoacoustics tests.

There are many options, including shaped dither, and dither including noise shaping (where you shape the quantization noise spectrum as well).

I used the most basic, simple method going for a simple reason, it shows conclusively that without dither, INFORMATION IS LOST.
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
The audibility of dither noise below 20 kHz can be minimised by shaping it along the sensitivity curves of the ear. This is most useful when using 44.1/48 kHz sample rate since there is no ultrasonic region where noise can be dumped.

Indeed, if you use 96K sampling rate and 25kHz bandwidth, you can dump a veritable (*&(*&*(load of noise above 25K. No speculation on my part, that :)
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
Yes, nice link, I read that earlier, since I have not considered dither for some time. Part of my problem is that I was introduced to noise decorrelation for radar systems and other RF communications (voice/data links, EW, etc.) and not audio.

If you were doing broadband signals, you're probably best off using white dither, of course. What you want to do is improve the SNR of the part of the spectrum you need. But your basic point holds, psychoacoustics IS NOT the reason for dither. Dither preserves information.
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
To help with the squint factor, here is a 4k version of the first plot.
Untitled.jpg
 

xr100

Addicted to Fun and Learning
Joined
Jan 6, 2020
Messages
518
Likes
237
Location
London, UK
Here's a swept sine at -144dB, dithered and noise-shaped to 16-bits:

ASR64.png


I've shown this sort of thing and created demo files before, to "convince" digital "non-believers"... but it doesn't work on them!

And don't get them started on sampling rate ("timing error... missing between the samples..." :facepalm:)
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
And don't get them started on sampling rate ("timing error... missing between the samples..." :facepalm:)

Yeah, that nonsense is still around, and still widely promoted, including in places where people should have known better.
 

xr100

Addicted to Fun and Learning
Joined
Jan 6, 2020
Messages
518
Likes
237
Location
London, UK

What a mess of an article! :-(

However, to quote from it--the key basic point in understanding noise shaping:

"Noise shaping works by putting the quantization error in a feedback loop."

IOW it's not a question of simply "EQ'ing" dither and then adding an already spectrally modified dither to the signal; and noise shaping can be used without dither.
 
OP
j_j

j_j

Major Contributor
Audio Luminary
Technical Expert
Joined
Oct 10, 2017
Messages
2,282
Likes
4,789
Location
My kitchen or my listening room.
What a mess of an article! :-(

However, to quote from it--the key basic point in understanding noise shaping:

"Noise shaping works by putting the quantization error in a feedback loop."

IOW it's not a question of simply "EQ'ing" dither and then adding an already spectrally modified dither to the signal; and noise shaping can be used without dither.


Indeed. No idea which SOX does, of course.
 
Top Bottom