Top
Best
New

Posted by ThrowNotAway 2 hours ago

Windows Loudness Equalization, reverse-engineered and ported to PipeWire(github.com)
113 points | 61 comments
pocketman 32 minutes ago|
No need to steal this, I would guess that a “limiter” is what is wanted here, and there are plenty of algorithms available. It won’t take away from the dynamics of the audio either, it will merely cap the loudest parts so that one isn’t exceedingly loud while the next is normal.
layer8 25 minutes ago|
The readme actually explains the algorithm used: https://github.com/xoxorwr/pw-loudness-eq#the-limiter
phkahler 2 minutes ago||
I hate this kind of thing. Recently had Claude make an avatar with voice IO and the voice would always start each response quiet and then ramp up, causing me to not hear the first word. So Claude proposed having the app produce a small inaudible low frequency the entire time it was running to circumvent the automatic gain control that was somewhere in my setup.

Apps should be well behaved and have sensible volume settings of their own, so we don't get into a war over volume control.

getfacl 1 hour ago||
> quiet and loud parts play at a similar level

This is never what I want. A composition has a dynamic range for a reason.

LastTrain 28 minutes ago||
Your hearing system compresses audio when it is loud so the perception of what you are hearing is different when the volume is low, which is what loudness is compensating for.
skeledrew 1 hour ago|||
The range should be adjustable depending on consumer preference.
aa-jv 1 hour ago|||
This is what you want, when that composition is based on multiple, discrete, individual applications generating audio, though.

Sure, if you're listening to a mastered recording - turn this off and/or simply don't use it.

But if I've got multiple applications going on, I don't want my system beep to completely overpower the audio those applications are generating, independent of each other - I want all the sounds in my system, whether effects or audio streams, to 'sit in the pocket'. Its great that this has made its way to those of us using Linux for high performance audio applications.

kqp 1 hour ago|||
But I do multiple things at once. I don’t want notifications to be undisturbing if I’m listening to background music and booming if I’m watching a movie, I want them to be an appropriate volume for notifications. Sometimes, mostly based on environment, I do want everything quieter or louder, but then I adjust the system volume, not the volume of random apps.
getfacl 24 minutes ago||||
> But if I've got multiple applications going on

I guess this is not something I do. I can't think of any situation where I would want to be listening to audio from multiple application at once.

I mostly listen to music and I put a lot of effort into getting bit perfect playback. I use visual alerts rather than sound effects where ever possible. If I'm on a call or gaming them I'm not listening to something else at the same time.

noahmasur 18 minutes ago||
A lot of people play games with their friends while communicating together in another application.
alt227 5 minutes ago|||
This is easily adjusted by individual volume sliders on friends in discord etc. No need to have an algorithm ruin musical dynamics to achieve this.
getfacl 9 minutes ago|||
Yes I also do that sometimes. I guess I've never run into such mismatched audio levels that it needed an adjustment.
soulofmischief 1 hour ago|||
Didn't Microsoft move away from this feature and make it much harder to activate though, since they realized this isn't usually what you want?
Garvi 22 minutes ago|||
> A composition has a dynamic range for a reason.

This is meant for movies or for listening to music at lower volumes, for which it wasn't mixed for.

elfly 19 minutes ago|||
mr christopher nolan, I am a big fan of your movies but I wish you used this fucking algorithm in them
Yokolos 1 hour ago||
Then this isn't for you, is it? This is exactly what I want, because the audio mixing on movies is such that on stereo speakers, the spoken dialogue is whisper quiet and anything beyond that blows out my ears if I turn up the volume to be able to understand the dialogue.

I don't really understand takes like this. You realize that not everything is meant for you or for every demographic, right? Things are allowed to be for some people and not for others.

papandada 48 minutes ago||
"this is never what I want" is a data point, just like yours.
Yokolos 39 minutes ago||
No, it's just complaining. Which is weird, because this is something somebody did in their free time because they wanted it and because they felt some other people might want this particular functionality, and they're providing it for free to others. Which from my point of view is commendable, even if it didn't appeal to me personally.

But that's par for the course for Hacker News, I guess. We can't ever just not be negative about everything. Everything sucks. Everything is wrong because it's not for me, because everything should be catered to me in particular and anything that doesn't is wrong.

papandada 6 minutes ago|||
As someone who gets into negative headspace sometimes, maybe just notice that the original commenter didn't say any of that.
alt227 4 minutes ago|||
> No, it's just complaining.

So what are you doing if not complaining about their post/take?

ZoomZoomZoom 13 minutes ago||
Please, don't confuse the things even more than required and don't use "Equalization" unless you manipulate gain in a frequency-dependent manner.

This is loudness normalization.

Also, from what I can see from the description, the described algorithm would be susceptible to increasing gain of focused impulses, such as whistle or other pure tones. This is why it requires additional limiting at the end.

Do people consider Windows loudness treatment desired, so it requires a reimplementation?

skeledrew 1 hour ago||
Been wanting something like this for a while now and never got around to looking. Although this probably still isn't quite there as I want something that works within app. Ain't nothing like watching something and having to turn the volume way up because of seriously low whispering, then having to turn it way down again because of a sudden loud scene.
Yokolos 1 hour ago|
If this works like the Windows loudness equalization, then it does work within each app.
maybewhenthesun 1 hour ago||
What is the difference with just slapping on a compression filter?
layer8 24 minutes ago||
The readme explains what it does: https://github.com/xoxorwr/pw-loudness-eq#the-limiter
nialse 55 minutes ago||
Looks like the power in the analyser is spectrum weighted which make the volume levels more perceptually similar.
scott01 50 minutes ago||
Frequency weighting is pretty standard for loudness measurement, e.g. ITU.BS 1770
jwrallie 1 hour ago||
I wonder if you can create a spec with on LLM then ask another to implement it thus doing clean room reverse engineering?
utopiah 37 minutes ago||
How can it be "clean room" if alternatives are in the training data of either of them?
ChocolateGod 1 hour ago|||
This is effectively what Photocraft is.
cmiles74 17 minutes ago||
I suspect using an LLM makes the reverse engineering no longer "clean room".
Jasonsf737 1 hour ago||
honestly this is the only windows thing i missed after moving to linux. watching stuff at night and constantly riding the volume knob gets old fast. does it actually sound the same as the windows one? like did you a/b them
Yokolos 35 minutes ago|
I've accomplished effectively the same thing using EasyEffects (https://github.com/wwmm/easyeffects). You might want to look into that as well.
Zinu 16 minutes ago||
Yeah, I’ve been using some presets, I think this one: https://github.com/Digitalone1/EasyEffects-Presets
vrganj 41 minutes ago||
It feels like while this is cool as a nerd that wants good things, I worry about the effect this sort of thing will have for Linux and the Open Source community in the long term.

Obviously, no serious project is going to upstream code that is a Claude RA of proprietary code.

But the harm is deeper than that: Now that this code is out there, it kind of poisons the well for somebody else to build something similar in a less sketchy way. Now all Loudness Equalization code will be looked at through a lens of suspicion, they will be seen as potential legal exposure.

As a nerd that likes building things myself and that likes contributing to Open Source projects, that feels like a shame.

utopiah 38 minutes ago|
Right, so everything should be open source by default, problem solved.
vrganj 28 minutes ago||
Sure. But to get there, we need to end incentives to have copyright and these licensing agreements in the first place. We'd need to effectively end tech capitalism, for one.

Listen, I'm on board with that. I'm probably one of the few open Marxists on this forum, check my other comments. I also believe that because code is the key means of production of our time, in many ways rms was a successor to Marx.

But until we can convince a critical mass of people of that view and enact systemic change, those factors are still real and need to be taken into account.

dormento 1 hour ago|
Help, I'm lawyerly-challenged and I'm struggling. I know this is legal, but is it MIT-license ok?
noselasd 1 minute ago||
Ok for what ? That's the important thing.

Generally though, MIT allows you to use the code however you like.

But you have to include the original copyright. You can't hold the authors liable for anything or use their trademark/branding. You can combine the code pretty much anything. You can't remove the MIT license.

atillaisik 1 hour ago||
I asked Claude and it says that we can use it :D
CodeCompost 1 hour ago||
Takedown in 3, 2, 1...
More comments...