This is it. You want to keep the full levels up until the moment you don't want to use them anymore.
For those with a math background but not electronic music experience:
You're doing arithmetic with ints. Suppose you have an 8-bit volume range between 0..255. You cut the volume in half by dividing by 2, rounding down. Now your range is 0..127. Then you want to double the volume again, so you multiply everything by 2 again. But now your range is 0..254 (not 255), and you only have the even numbers. That series of samples you took like [125, 126, 127, 128, 129]? Now it's [124, 126, 126, 128, 128]. You'll never get those original values back. You can't. They're lost.
So instead, you keep that full range up until you get to the speakers, and then you cut the volume down at that point. When you turn it back up, you have the full range of values again.
It's almost exactly the same for analog gear, too. In general, you always want to run your pre-amplifier stages as close to maximum as possible without actually maxing them out. (If you do, your guitars sound great and distorted, but almost everything else just sounds bad.) If you start with a CD-quality signal at nearly full strength up until the amps, the output will sound crystal clear. But if your input signals are turned way down, and you have to crank the amps to bring everything up to the desired volume, you'll end up amplifying all the hiss and other background noise, too.
This is true for integer sample processing, but my impression was that it's much more common to do software mixing in 32-bit float across the board these days; technically you still want to avoid an unnecessary profusion of gain multiplications both because of the unnecessary CPU work and because there's still some rounding error accumulation, but you don't hard-lose relative precision in the same way, right?
That should be the case, but AFAIK there are still lots of integer units between here and there. That's especially likely if there are any external USB devices involved. For example, while it's been a while since I looked, last I checked a lot of outboard digital-to-audio converters (aka DACs) used 16-bit integers.
We can do all the math in 32-bit floats, sure, and there's enough dynamic range therein to contain every sound that man has ever experienced -- from things that are too quiet to discern, to pressures so intense that they're incompatible with life.
But we don't usually[1] listen to 32-bit floats. We have an output stage after we're done with the math that consists of a DAC, and this DAC historically (for the past 30 years or so) has resolution of just 16 or 24 bits of linear PCM.
[1]: There are some outboard DACs and pro audio interfaces that accept 32-bit floats and convert that to analog, but...
For those with a math background but not electronic music experience:
You're doing arithmetic with ints. Suppose you have an 8-bit volume range between 0..255. You cut the volume in half by dividing by 2, rounding down. Now your range is 0..127. Then you want to double the volume again, so you multiply everything by 2 again. But now your range is 0..254 (not 255), and you only have the even numbers. That series of samples you took like [125, 126, 127, 128, 129]? Now it's [124, 126, 126, 128, 128]. You'll never get those original values back. You can't. They're lost.
So instead, you keep that full range up until you get to the speakers, and then you cut the volume down at that point. When you turn it back up, you have the full range of values again.
It's almost exactly the same for analog gear, too. In general, you always want to run your pre-amplifier stages as close to maximum as possible without actually maxing them out. (If you do, your guitars sound great and distorted, but almost everything else just sounds bad.) If you start with a CD-quality signal at nearly full strength up until the amps, the output will sound crystal clear. But if your input signals are turned way down, and you have to crank the amps to bring everything up to the desired volume, you'll end up amplifying all the hiss and other background noise, too.
Replies (1)
Replies (2)
But we don't usually[1] listen to 32-bit floats. We have an output stage after we're done with the math that consists of a DAC, and this DAC historically (for the past 30 years or so) has resolution of just 16 or 24 bits of linear PCM.
[1]: There are some outboard DACs and pro audio interfaces that accept 32-bit floats and convert that to analog, but...