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?
This is never what I want. A composition has a dynamic range for a reason.
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.
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.
This is meant for movies or for listening to music at lower volumes, for which it wasn't mixed for.
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.
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.
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.
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.
Nice effort, but frankly, I hope this will not be usurped/consumed/included by pipewire, worse yet, on by default.
I'm doing audio engineering on linux, and (hidden) system-wide EQs or compressors are a true problem for that...
It adds latency, so you may not want to have it on by default.
I used to enable it to help with Zoom calls so when that one jackass using his 2015 "free in a box of cereal" headphones for a mic got on I didn't have to turn him up to the point that normal people gave me hearing damage. Now Zoom takes over the audio and does their own, worse, volume normalization so I'm getting permanent hearing loss. One day there will be glorious lawsuits for everyone!
In the meantime:
1) Go to the old control panel, not settings
2) Sound (the old-timey windows XP one)
3) Manage audio devices
4) Pick the device
5) Properties
6) Enhancement
7) Loudness Equalization
I imagine a day in the future where we won't really have a distinction between operating systems - we'll be running prompts, instead.
I'm not yet sure where the line is but please, let's not.
This feels like a problem where an equivalent result would've been possible by maybe taking the Windows implementation as a starting point, then further pondering together with the clanker what exactly makes it tick and why.
And then build something new out of those learnings.
Or at the very least don't make it as blatantly obvious that it is simply stolen.
So it's going to be pretty hard for them to go against OP in front of a judge
What exactly is being stolen here?
It's always surprising the reaction from people on so called 'Hacker News'
Share your thoughts please.
Because that road you probably do not want to go down if your good example is someone telling claude to "take this and clone it. make no mistakes" and then calls it a day.
That is not craftsmanship or interesting. It is "I've pressed a button".
So I agree that it doesn't belong on HN, but I think that's not what you wanted to say.
I've also tried to actually turn this into something worthy of being here, but that was then downvoted and attempted to shut down by some 7 month old account.
Idk dang maybe you want to do something about the vibekids?
The base idea is also not new, equalisation algorithms and research on psychoacoustic-based metrics have been a think for ages. Iirc there are even ITU standards on this exact thing. Reversing the Windows implementation usually was accompanied by some new insight on specific reverse techniques or perhaps some unique realisation of the author. There was no one spending hours on going through RE something some specific without at least gaining a ton of specialised knowledge along the way.
Now this part is almost trivial so sharing it with an AI README is just mostly noise. But I guess not many motivated people are left actually pushing forward, so without those articles HN would be left with nothing. The reader is left to decide whether this would be preferable to the current state of the front page.
But I digress, I think opening with calling it "piracy" is not quite what you were going for
Excuse me while I BWAHAHAHAHA in the flavor of Github/Copilot and their justifications for looting all of FLOSS for their clanker.
Its high time we returned the favor.