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

Math and Digitizing Question: how is dynamic range > 46dB at 16 bits? Linear or exponential encoding?

mdsmith01

New Member
Joined
Nov 12, 2021
Messages
1
Likes
0
I'm looking at a new DAC which is why I posted this here, but I have a more technical question about how the encoding works and why 16 bits is even close to being adequate. I've seen encoding described most often as recording the voltage on Y axis, which is the same as intensity (not dB). If encoding is linear, by my calculations, this will result in the first bit turning on at -45dB!

If we are encoding a ±1V signal, at 16 bits we have ±32767 units, for a total of (2^16) or 65536 possible values. The smallest encoding increment is 1/65536V. 10Log(1/65536) is -48.1dB. 1 bit is for polarity, so let's say it's 10Log(1/32767) or -45.1dB. Likewise, if we have 24 bits, the first bit turns on at 10Log(1/2^(24-1)) or -69.23dB, and if we have 32 bits, the first bit turns on at 10Log(1/2^(32-1)) or -93.3dB. Which seems like a barely acceptable value. I also know that certain 32 bit encoding specs include some exponent bits, giving a dynamic range of something over 1000dB (which is an inconceivably huge number).

So... Is the signal encoded using purely intensity, or some exponential function that will give more weight to higher intensity (and wouldn't that be a new type of distortion?) I do know where the 96dB signal to quantization noise figure comes from for 16 bits, but this doesn't address the more important question of the level where the first bit comes on (because you can't describe a signal smaller than that figure). If you have -96dB of quantization noise on top of a -45.1dB signal, clearly, that q noise is a tiny issue. But describing the original signal adequately at 45dB certainly would be anything but a small problem! Obviously, based on the testing shown here, small values CAN be described and measured, but how is this issue overcome?

Thanks!
 

DVDdoug

Major Contributor
Joined
May 27, 2021
Messages
3,024
Likes
3,979
It's linear, and the 10log... formula is for power... For amplitude (including digital values) it's 20log... ;)

...As we move from the digital domain to the physical/electrical domain the digital amplitude is converted to voltage. For example, +6dB is a doubling of voltage. When we double the voltage, the current also doubles (Ohm's Law). Power (Wattage) can be calculated as Voltage X Current, so double the amplitude (+6dB) is 4 times the power.

I do know where the 96dB signal to quantization noise figure comes from for 16 bits,
I don't think you really do... ;) Technically, it is more like "distortion" and it's sometimes called "quantization error". But if you listen to an 8-bit file (where you can hear it) it sounds like noise and just-like analog noise it's most noticeable with low signals (worse signal-to-noise ratio) but unlike regular analog noise it goes-away completely with silence.


...Back when digital audio was a new thing and I was just learning about it, I was surprised that "normal digital audio" was linear!
 
Last edited:

EB1000

Senior Member
Joined
Jan 8, 2020
Messages
484
Likes
579
Location
Israel
The standard logarithmic gain strategy represents power gain, not signal (voltage/current) gain. So its either 10log(Po/Pi) or 10log (Vo^2/Vi^2)=20log(Vo/Vi) or Io/Ii, as the V^2 is the equivalent weighted power dissipated across a 1 Ohm resistor.
 
Top Bottom