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

Distortion (or not) of digital volume control.

jan.didden

Member
Joined
Apr 19, 2018
Messages
41
Likes
70
I've been wondering some time now whether digital volume control is as good, or as bad, as they say. Depending on who you ask.
So I thought I'd measure the distortion of the digital volume control on my miniDSP FLEX digital.
Feed coaxial from the AP SYS2722 digital generator, output Toslink to the AP digital analyzer.
I measured at 0dB with 1dBV input and with the control turned down to -20dB and -30dB.
Frequency slightly offset to see the individual traces.
I can't find any flaw with it. (24 bit, 48kHz, triangular dither).

Comments?

Jan
 

Attachments

  • FLEX dig Vol fft.pdf
    109.9 KB · Views: 123

RayDunzl

Grand Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
13,250
Likes
17,192
Location
Riverview FL
My experience with digital volume control:

By the time you turn it down far enough to create a SNR problem you can't hear the program any more anyway.
 

kemmler3D

Major Contributor
Forum Donor
Joined
Aug 25, 2022
Messages
3,352
Likes
6,862
Location
San Francisco
Digital volume control will generally work at 24 or 32 bits I think? So you can get pretty quiet before the noise starts to get audible. I think even if you at 16 bits, you really need to throw away quite a few bits before noise becomes objectionable. 12 or so is still better than you think.
 

RayDunzl

Grand Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
13,250
Likes
17,192
Location
Riverview FL
Long ago...

While considering "losing bits" with volume control...

I went for the worst case scenario.

I took a "well known" recording and reduced it to "one bit" - if the signal was positive it went to the "up" level, or negative to the "down" level.

Basically just capture zero crossings and one level positive or negative representing one digital bit.

A short segment of the waveform is seen in the background while it plays.

https://soundcloud.com/ray-880875693%2Fonebitpaul
I thought it was remarkably intelligible.

In fact, this is the longest version I was able to get past the hall monitor that prevents you from posting known commercial tunes - longer versions were rejected for copyright violation by their recognition software.

1680013724307.png


1680014044284.png


I didn't dispute the claim.
 
Last edited:
OP
jan.didden

jan.didden

Member
Joined
Apr 19, 2018
Messages
41
Likes
70
@RayDunzl yes you're probably right. Harmonics at -165dB wrt 1V?
Still more than 100dB SINAD.
As to your 1bit file, if you would dither that you'd probably just hear a noisy track.

Jan
 

Attachments

  • FLEX dig Vol fft -60dB.pdf
    101.4 KB · Views: 64

RayDunzl

Grand Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
13,250
Likes
17,192
Location
Riverview FL
As to your 1bit file, if you would dither that you'd probably just hear a noisy track.

Well, I think it's just crude representation of one bit, in that there are only two levels (three if any of the original samples was zero) raised to an audible level.

Dither would just wiggle the flats around their level for the most part.

SoundCloud performed some compression algorithm and maybe dithered it themselves, since the corners as displayed are no longer the original 90 degree square.

1680014533204.png


Leading edges look pretty square but the trailing edges don't.

And dither is too small to see at this scale.
 
Last edited:

danadam

Addicted to Fun and Learning
Joined
Jan 20, 2017
Messages
994
Likes
1,544
As to your 1bit file, if you would dither that you'd probably just hear a noisy track.
I think the way he generated this file was by applying such a high gain that every sample clipped, so I don't see how dither could be used there.

And if you wanted to generate such 1-bit file really by lowering the volume, then dither is a must, because without it you are left with only a few non-zero samples, in places where the original file had peaks, and the rest are all zeros.
 

RayDunzl

Grand Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
13,250
Likes
17,192
Location
Riverview FL
I think the way he generated this file was by applying such a high gain that every sample clipped, so I don't see how dither could be used there.

Correct.

Digitally amplified (maybe it was +100dB), until any sample positive or negative went full scale, then the volume reduced to a listenable level.
 
Top Bottom