Windows Loudness Equalization, reverse-engineered and ported to PipeWire (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Playing loudly mastered audio out of your PC will be very slightly different from the true audio source by about -0.1dbps with the compressor affecting the peaks.
It works via audiodg.exe (CAudioLimiter in AudioEng.dlll) on the shared-mode render path after all the streams get mixed, even if there's just one playing currently. This is necessary because two loud signals being mixed together might clip your DAC and that sounds nasty, so it's understandable that it's there.
Why would you care though? I was building a audio metering system to monitor audio via loopback and the properties of the audio I played in were being modified by the limiter in these normal modes. Maybe audio purists might not enjoy it either.
Replies (3)
Replies (1)
Replies (1)
I've never had a setup where I would take my windows mixer output to 100%. I put the desired gain in the downstream amplification, not in the source. Maxing out your DSP chain because your speakers are insensitive is better addressed at the amplifier.
Replies (2)
I then ran the volume up and down with a knob on the preamp.
It worked exactly the same as it would if I were playing a compact disc in a regular standalone audio CD player.
Replies (3)
otoh it's all linux anyway :-~
Replies (1)
The physical volume control is a single-track potentiometer connected to GPIO that digitizes its value. Gain/attenuation is thus adjusted in DSP-land.
I don't have to care as much anymore -- I get all 16 original bits worth of dynamic range through that pipeline just fine, without truncation. (But even though I don't care, the software mixer in the PC is still set to 100% and this never gets adjusted at all.)
Replies (1)
Replies (3)
Replies (1)
24 bits is enough to record a grasshopper next to a jackhammer. 32 bits is enough to record that same grasshopper next to spacex's superheavy starship booster during liftoff.
The only reason to have more than 16 bits is to permit software processing (including volume control) without quality loss.
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...