• 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!

Where does quantization noise come from.

Tell

Active Member
Joined
Mar 30, 2024
Messages
129
Likes
168
Here you have a good explanation how quantization noise works and sounds.
(The juicy part starts at around 4:35)

And I can really recommend to watch the whole series, the guy explains the digital audio really well :)
 

Mulder

Addicted to Fun and Learning
Forum Donor
Joined
Sep 2, 2020
Messages
644
Likes
893
Location
Gothenburg, Sweden
Understanding quantization error as such is not very difficult I think, and many have explained it in this thread. But one question I had a hard time understanding once in a while, and as I think many others find it difficult to understand intuitively - is why the reconstructed signal at all becomes the same as the analog signal as in the original situation. If there is a quantization error now, why does this error give rise to "noise" - why does it not instead lead to the final curve getting a certain deviation compared to the original, ie the digital sound deviates from the original in a way corresponding to the quantization error. This interpretation of the error is what is sometimes claimed within HiFi-Folklore. I think the most intuitive conclusion is that the quantization error leads to a somewhat distorted curve, not that it leads to Noise. It was pretty tricky, I remember that I thought once in time to understand this, and I really just understand it just purely mathematically, ie I don't know what an educational non-mathematical explanation would look like. I may be wrong, but isn't this question the thread starter wondering?
 
Last edited:

voodooless

Grand Contributor
Forum Donor
Joined
Jun 16, 2020
Messages
10,433
Likes
18,442
Location
Netherlands
Here you have a good explanation how quantization noise works and sounds.
(The juicy part starts at around 4:35)

And I can really recommend to watch the whole series, the guy explains the digital audio really well :)
Except for the fact that this picture is dead wrong:
1713858224496.png

A telltale sign that something is wrong, is when you see staircases :facepalm:
 

antcollinet

Master Contributor
Forum Donor
Joined
Sep 4, 2021
Messages
7,848
Likes
13,268
Location
UK/Cheshire
I know what you're getting at, but just watch the explanation and you'll understand :)
The video is understandable. The problem is the depiction using stair stepped waveforms is misleading, and simply perpetuates one of the myths of digital audio.

If he replaced the stair steps with lollipop representation it would be fine.
 

Tell

Active Member
Joined
Mar 30, 2024
Messages
129
Likes
168
The video is understandable. The problem is the depiction using stair stepped waveforms is misleading, and simply perpetuates one of the myths of digital audio.

If he replaced the stair steps with lollipop representation it would be fine.
Yeah those lollipops are everywhere in his videos, it's just that this is a good way of explaining quanatization noise.
 

torgeirs

Member
Joined
Sep 10, 2021
Messages
13
Likes
3
The question of the original signal and the quantization noise is interesting.
For me the original waveform + noise waveform is easiest to understand intuitivly.
A real world example is (simplified) when you talk to someone you know on the telephone. Then you recognize the voice. If the reception gets bad you still recognize the voice but you also hear the irritating quantization noise. So the brain seperates the original signal and the quantization noise.
 

antcollinet

Master Contributor
Forum Donor
Joined
Sep 4, 2021
Messages
7,848
Likes
13,268
Location
UK/Cheshire
but you also hear the irritating quantization noise.

If the line is just getting bad, it is not quantisation noise. It is some other form of noise.

But the example is still valid. Just as any noise signal (eg mains hum, or telephone line interference, or crosstalk etc etc) is simply added to the signal, so is the quantisation noise. It is just added in the digital domain, rather than the analogue domain.
 

solderdude

Grand Contributor
Joined
Jul 21, 2018
Messages
16,127
Likes
36,696
Location
The Neitherlands
Well... sometimes we do enjoy seeing this kind of visual illusions even we know exactly what is the truth. Isn't it?
Nothing wrong with enjoying illusion(ists).
That, however, has nothing to do with technical performance nor with VFM.
'sound stage' and 'depth' however are just illusions the brain creates from 2 sound sources and basically are an illusion which also happens to be different for each person and is not related to quantization error nor noise either.
 

torgeirs

Member
Joined
Sep 10, 2021
Messages
13
Likes
3
If the line is just getting bad, it is not quantisation noise. It is some other form of noise.

But the example is still valid. Just as any noise signal (eg mains hum, or telephone line interference, or crosstalk etc etc) is simply added to the signal, so is the quantisation noise. It is just added in the digital domain, rather than the analogue domain.
Often with cellular phone the bitrate is reduced with bad reseption and the quantisation noise goes up
 

torgeirs

Member
Joined
Sep 10, 2021
Messages
13
Likes
3
Another test is super low bitrate music codec. Say 32kbit. You still recognise the singer and instruments. But the quantization noise can be anoying. (Of course a little bit more complicated because of the sub band coding)

Or plain truncating like this

The funny thing at that example is that at 2 bits you can kind of hear a shadow of the music in the error waveform.
So the noise is correlated with the signal
 
Last edited:

antcollinet

Master Contributor
Forum Donor
Joined
Sep 4, 2021
Messages
7,848
Likes
13,268
Location
UK/Cheshire

antcollinet

Master Contributor
Forum Donor
Joined
Sep 4, 2021
Messages
7,848
Likes
13,268
Location
UK/Cheshire
Often with cellular phone the bitrate is reduced with bad reseption and the quantisation noise goes up
Must admit I've never heard that - but I'm prepared to take your word for it.

What I normally hear on a bad line is pops and crackles. Though I guess this is mainly where there is a landline at one end of the link.
 

DonH56

Master Contributor
Technical Expert
Forum Donor
Joined
Mar 15, 2016
Messages
7,926
Likes
16,775
Location
Monument, CO
Understanding quantization error as such is not very difficult I think, and many have explained it in this thread. But one question I had a hard time understanding once in a while, and as I think many others find it difficult to understand intuitively - is why the reconstructed signal at all becomes the same as the analog signal as in the original situation. If there is a quantization error now, why does this error give rise to "noise" - why does it not instead lead to the final curve getting a certain deviation compared to the original, ie the digital sound deviates from the original in a way corresponding to the quantization error. This interpretation of the error is what is sometimes claimed within HiFi-Folklore. I think the most intuitive conclusion is that the quantization error leads to a somewhat distorted curve, not that it leads to Noise. It was pretty tricky, I remember that I thought once in time to understand this, and I really just understand it just purely mathematically, ie I don't know what an educational non-mathematical explanation would look like. I may be wrong, but isn't this question the thread starter wondering?
The image (output) filter integrates, i.e. smooths, the waveform so it is a continuous curve. The stair-step waveform before the image (output) filter is due to quantization and the high-frequency content creating those sharp edges as the DAC switches state (values). Sharp edges require very wide bandwidth. much greater than audio (~20 kHz). The output filter removes frequencies above Nyquist, half the sampling rate, so the edges of the steps no longer appear at the output and all you see is a continuous waveform. The difference is also integrated so all those little pieces of signal ("triangles") between the smoothed output and the pre-filter stairstep create the quantization noise, the lower limit of the noise floor and thus maximum possible SNR from a DAC.

The math is a little painful (calculus used) and is shown here: https://www.audiosciencereview.com/...snr-about-6n-db-come-from.46603/#post-1663671
 
Last edited:

Tell

Active Member
Joined
Mar 30, 2024
Messages
129
Likes
168
It can equally (and more accurately) be explained with the correct representation of time discrete samples.
Yeah guess you're correct, but apart from that it's a good explanation and the whole series is the best I've ever seen on digital audio (except for Monty of course, but it's not a comprehensive).

Let's stick with not using the term "noise" because it leads to confusion. :cool:

Well it sounds like noise except that it's affected by the input signal, so correlated noise. It's quite an established term afaik so why not use it?
 

DonH56

Master Contributor
Technical Expert
Forum Donor
Joined
Mar 15, 2016
Messages
7,926
Likes
16,775
Location
Monument, CO
All the engineering societies and references I know use "noise" for quantization noise. Whilst mathematically related to the signal and sampling rate, in general there is no common denominator between the fixed sampling rate and the signal, so the noise tones (spectra) created are uncorrelated and distinct from conventional distortion. For testing it is often useful to use a signal with specific ("prime") relation to the sample rate and FFT size so that all quantization noise spurs land in the middle of an FFT bin, obviating the need to window the result, but a PSD (power spectral density) analysis of the result will still yield essentially noise with equal energy in every FFT bin.

Refer to IEEE Standards 1057, 1241, 1658, etc. (yes I am biased, as I had a hand in writing some of those).
 

torgeirs

Member
Joined
Sep 10, 2021
Messages
13
Likes
3
Must admit I've never heard that - but I'm prepared to take your word for it.

What I normally hear on a bad line is pops and crackles. Though I guess this is mainly where there is a landline at one end of the link.
Yes maybe a bad example in a international forum. Guess it can be difference from network to network. This is what I refer to: https://en.wikipedia.org/wiki/Link_adaptation
 
Top Bottom