Interesting for audio nerds: Windows actually has an audio limiter. If you playback audio via loopback shared WASAPI, DirectSound or MME it actually gets compressed very slightly as it nears the peaks. The same does not happen via WASAPI exlcusive or ASIO.
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.
> 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.
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.
I always kept the software mixer at 100% (ie, unity) because when I've already paid for all 16 bits, it is my intent to keep each and every one of them available for use.
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.
There's only one reason someone like you (or me, with a low end professional recording studio setup) would set the digital volume below 100%, and that's if the sound card is running at a higher bit depth than the audio being played back, for instance listening to CD audio when the sound card is at 24 bits, or watching a 24-bit audio dvd/blu-ray with the sound card running at 32 bits
Yes, this is bullshit for people like us. When I had 4 10" KRKs for a sound system, the last thing I could have wanted is this, marketing drones having decisions on what I get to hear.
My current "sound card" accepts 24-bit PCM audio (over USB or Dante or whatever), processes it in hardware as 32-bit floats, and emits 24-bit PCM audio (which is ultimately converted to analog for driving power amplifiers directly).
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.)
It's kind of in the name. When an application wants to be mixed with sounds played by other applications, it opens the audio API in shared mode. When it wants exclusive access to the audio hardware (maybe some kind of professional audio scenario), it opens in exclusive mode.
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?
I'm a CS guy who somehow landed at a DSP job, no physics or engineering background at all.
What is equalization? The "most specific" description I can come up with is "estimating a channel and correcting for it", where "channel" specifically means, attenuation, phase, and multipath corrections, and it assumes an LTI effect (meaning things like carrier frequency offset are not included, despite it being an effect you should correct for). If that description is accurate, why is that a good characterization of a class of noise?
An equalizer is a multi-filter device that demultiplexes your sound into several channels (usually by frequency), filters each one independently, and then merges the result back.
It has that name because it's supposed to be used for reversing the non-linearities on your sound system, so it amplifies all parts (usually frequencies) by the same amount. But the device by itself doesn't make anything equal, and many people like to use it to distort the sound, what makes the name very confusing.
The answer you're not looking for is that people get all bent out of shape about their terms, especially when those terms are commonly abbreviated in typical parlance.
A more-practical answer is that when people refer to equalization, they often refer to frequency-domain equalization. Traditionally accomplished with a graphic equalizer (which is "graphic" because a person can see the curve being applied on the faders[1]), or a parametric equalizer (which has than one control per band).
The ostensible intent of frequency equalization is to make a system (and its flaws) equal across the frequency range (from 20Hz 20KHz or from DC to daylight or whatever). The term "frequency equalization" almost always gets shortened to "equalization."
But dialects differ. Sometimes, people say "equalization" and mean something in the realm of dynamic range equalization, instead. They use the term to mean an impartation of dynamic sameness, or equality.
Perhaps this means dynamic compression, or limiting, or both. You know, to smooth out the dynamic peaks and dips in a singular track (to convert something like the 1812 Overture from a raucous affair into something that can be background music). Or, in the case of the Windows software mixer, to avoid commonly-undesirable behavior with clipped samples by targeting sample values in excess of 0dBFS.
Or perhaps they mean peak equalization, where every track in a library is dynamically-adjusted to peak at the same reference value (of maybe 0dBFS or -3dBFS or something) and is otherwise unadjusted.
Perhaps they mean something relating to perceptive loudness over time, instead, like equalizing LUFS[2] values between a selection of tracks so each one retains its own internal dynamics even while a softer track may be increased in amplitude and an overall-louder track may be reduced in amplitude and it is possible that none of them ever reach 0dBFS.
But it's more common, at least in my part of the world, to refer to amplitude-domain stuff as compression, limiting, and/or normalization, and it's also more common to call all of the frequency-domain stuff equalization (even if it's just used as a tone control that is adjusted to taste in a way that has nothing at all to do with equality).
All of these dialects can be functional, and they do convey meaningful information. But audio people have trouble communicating with eachother anyway because for all of their audio prowess, they're often just complete shit at listening.
It's a societal issue that relates to an individual's choice of jargon. And this condition is, to be very clear, quite normal and expected.
Up next: We'll talk about the differences between Jack, a jack plug, a quarter-inch plug, a headphone plug, a TRS plug, and a phone plug.[3]
After that, we'll get into normalled, half-normal, and non-normal patch bays -- and how these have nothing at all to do with amplitude normalization.
---
[1]: except they could be knobs instead, but that's still a "graphical" EQ
[3]: They're all the same thing, except for Jack, who is not amused by the sound of his name being tarnished in this completely nonsensical intercontinental abyss of nomenclatural duress
Consider it prompting as a service: you don't have to spend your own tokens to take a look at what Windows does.
I, being a bit of a DSP guy, thought it was interesting to see what is being shipped at scale. The code is more of a bonus in case I want to give it a try and tweak it.
The Windows loudness equalization does not sound very good. For the last several years I've been using https://loudmax.blogspot.com/ instead, via PipeWire filter-chain on Linux and Equalizer APO on Windows. Sounds way better than every other plugin I tried.
Right, as expected. Not sure why someone else had to give a snarky remark instead.
It is a single plugin, which is convenient, but this was possible before using ladspa plugins, like easyeffects; https://github.com/Digitalone1/EasyEffects-Presets which even states "It's similar to the Loudness Equalization option in Microsoft Windows."
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.
It's not the algorithm, it's the tuning of that algorithm. I guess that Microsoft tested this across a bunch of different computer speakers and users. Likely resulting in something that is optimal for nobody but reasonably good for a broad range.
Also, different, even if better, is different and most people will notice. Even if they wouldn't have significantly preferred A or B, they're used to A and so if you offer B then they're mad, why is this different?
When I've used it in the past it has most often been to make voice calls with very quiet participants easier to follow. So basically putting everyone at the same loudness and obliterating dynamics, so that I can hear everyone and also not have my ears blown out.
When I've wanted limiters I've always just turned down the global volume.
I listen to most of my music (instrumental) these days with loudness equalizing on. Used to be a big audiophile, now when I play music it's just background. High dynamic range works against having a pleasant sound for background music as either the loud parts are too loud or the quiet parts imperceptible. Compressing the dynamic range increases enjoyment.
Exactly. If you have a dedicated space with silence and excellent acoustics, high dynamic range can equate to quality. But as soon as you add noise and dampening, that changes.
If you listen to music in the car, super high dynamic range means either blowing your ears out or missing half of the music below the noise floor.
Sometimes I'll listen to a piece on a sound system of some kind and just wish I could go back to when I heard it played by a live orchestra and it shook my soul. That missing range matters sometimes.
Just give me a simple slider in the volume control. If KDE Plasma can give me sliders popping out for all the Output Devices I'm not currently using (and will never use), I can have a slider for loudness equalisation.
When it comes to enjoying media with non-audiophiles, you are right. But it still makes me a little sad.
I worked hard on my home theater system, amp and speaker selection, tuning every audio and video setting so that everything's dead on, and I have all that wonderful dynamic range. When I play a piece of music for myself, it's glorious! Then, my wife, kid, and I sit down to watch a movie, and all night it's "I can't hear the dialog! Turn it up!" and "Now the explosions are too loud! Turn it down!" and then "Is there any sound? Turn it up! I thought this was a good stereo!" over and over, and I just sit there like a dummy, adjusting the volume control for two hours.
It's probably worth seeing if you can setup presets. Your current settings and then a 'theater mode' where there's some light compression, the center channel is boosted and the subwoofer(s) are limited.
And then for some films, you'll need to turn down the sub a bit more, cause I dunno, some mixes are rediculous... shake my house for a rocket launch, sure; shake my house cause a compact car is rumbling down the street is a bit much.
Unless you're listening to a speaker setup that's capable of the dynamic range need for an orchestra, you need some level of high pass, limiting and compression. I can imagine why they optimised for the tinny pc and laptop speakers people were connecting to their computers.
> a speaker setup that's capable of the dynamic range need for an orchestra
This speaker setup does not actually exist.
There are instrument geometries that produce output that simply cannot be reproduced artificially via whatever normalized loudspeaker geometry.
The piano and cymbals being strong examples. The initial transient of a cymbal crash is beyond hopeless to deal with. Plasma tweeters are probably as close as you can get on this one.
The piano's soundboard is an absolutely massive acoustic radiator. You can emulate the piano accurately if the pianist is playing something gentle and in the middle registers. If the pianist is playing Rachmaninoff, I think it might actually be worse than the cymbals in some ways.
People get rid of dynamic range for more immediately compelling reasons. Here's my favorite filter. I never had much luck with perceptual loudness normalization, and brick wall limiters are too sensitive to transient pops.
https://github.com/DaveFlater/DRD
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.
For a couple of years, my hearing was extremely sensitive (for being an ignorant musician that didn’t wear hearing protection), and watching Youtube videos was really annoying, since some idiots put jumpscares with loud noises in their videos.
During those years, I had to use a loudness normalizer whenever I used headphones.
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.
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.
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.
It is more of a mixed case issue. You may be listening to music, then watching a youtube video, then playing a movie in vlc, then opening a audio message on whatsapp web.
Or you could be watching a movie that has annoying jumps like dune?
I’ve got a 5.1 setup (not a very expensive one) and I can say that the inaudible part of Tennet are basically irrelevant. The dynamic range part is a big part of the feeling of movies, even when purposefully manipulated and not realistic. But having a specific speaker for dialogs and important sound is great because your brain can tune itself to it.
I've originally said in the comment that a soundbar goes a long way. I have a 3.1.2 soundbar, the one that has two front speakers aimed to the ceiling so it simulates surround sound without rear speakers.
It's really good, way better than regular TV speakers. I calibrate the audio for regular dialogues and let the loud parts get loud.
Brought back? I think it is still going on. Watch any modern series and you have that issue of tiny bit of dramatic moment, and they will blast your ears off with loudness, forcing you to decrease volume, while leaving you scrambling to increase volume when 2 people have a conversation, so that you can actually hear the words.
I used to have a music player, that let me regulate the volume of each track separately, in 10% steps. Wish that could be brought back to some modern music players. I don't mean just in some metadata, but a property of a playlist, that I change live in my player.
What you're describing is dynamic range, where loud things are loud and quiet is quiet. The loudness wars is the opposite, where dynamic range is crushed to increase the perceived loudness. You can always correct this with a "night mode" usually found in your TV or sound bar but you can never get back the lost dynamic range.
For your second bit, while it's not quite the same, does your player not have a loudness leveling option?
I am not watching on a TV. I don't own a TV. I don't have a sound bar, I believe. Not really sure what that exactly is.
I am often using Audacious or VLC. Nor sure if they have a loudness leveling thing. If so, I have never noticed it in the primary UI buttons and such. Might be hidden somewhere.
I guess my complaint is, that movies shouldn't simply assume to be run on some fancy pants audio system to get leveled back to normal volume for various parts of the audio (talk/conversation VS gunshots/explosions, etc.) I shouldn't have to hectically reach for volume down shortcuts, when the scene suddenly gets some action, so that I don't wake up my neighbors.
This happens a lot when you're listening to an audio stream that isn't mixed for your speaker setup. If you're listening on a laptop, you've got 2.0 stereo setup. If whatever audio player you're using is playing the 5.1 audio stream, it's going to have to do some software downmixing to 2.0 and that isn't going to perform as well as a specifically mixed 2.0 stereo track that usually is available on the disc/stream the media was distributed on originally.
A lot of musical doesnt actually these days, including remastered versions of older music, since we all now listen through YouTube and Spotify on phones and laptop speakers.
I also rarely take time for listening but I do keep my Flacs and specific remasters around. But for TV I hate dynamic range, we always have it on low anyway with subtitles on because we actually do not like the cinema experience at all.
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.
> This is exactly what I want, because the audio mixing on movies is such that on stereo speakers, the spoken dialogue is whisper quiet
You probably want a proper stereo mix or a dialogue boost option. Movies are mixed such that the dialogue comes through the center speaker which you don't have, so you need that problem fixed.
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.
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
I always preferred the tune-able algorithm implemented in Media Player Classic/MPC-HC for movies on Windows. Same with the ease of adjusting the audio switcher for downmixing and a lot of other features. The Windows built-in one is pretty good though for general use. On my Lenovo it is disabled in favor of some Dolby version which is significantly inferior.
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.
Perhaps the concept of intellectual property should be completely abandoned or at least significantly revamped. When I buy a chair, I am free to disassemble it, document the individual parts, and make and sell clones. Why should software be different?
Algorithms cannot be copyrighted, only specific programs that implement an algorithm.
Traditionally, algorithms could not be patented, but the practice of the US patent law has invented loopholes for patenting algorithms and eventually many algorithms have been patented, and USA has also blackmailed other countries to change their patent laws, though in many countries such lax interpretations of the patent laws are still not accepted.
Algorithms and formulae do not deserve to be patented, because with very rare exceptions it is very easy to rediscover them completely independently and there exists no justification for punishing the independent discoverers just because someone else happened to also discover the same algorithm, but one day earlier or one year earlier, because by chance they encountered earlier a problem for which that algorithm is needed.
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.
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.
What better way than to make it painfully obvious that all of this stuff is right there, able to be used by anyone, and it's only a nonsensical belief that one "shouldn't" that stops you?
"Serious" projects like Redhat might not take it, but it's easy enough to have overlays of owner software that just does whatever someone wants, and for a distribution to emerge that enables this stuff by default for people who don't care about imaginary property.
It's the threat of having the mighty wrath of capital descend on you with its armies of lawyers that could ruin your existence. Ask Yuzu for an example.
All sorts of stuff is just out there ready to be used, but we don't because the consequences of doing so would not be enjoyable. Hell, the grocery store has food that you can just start eating right then and there! It's not the physical ability that stops you, its the socioeconomic system.
There is a wild difference in kind between theft and just making your computer do what you want. You don't not steal because of the consequences; you don't steal because it harms others. Making your computer's sound work how you'd like doesn't harm others. If you really want a tortured analogy to taking food, it's more like freeganism. Except even that isn't really a good analogy because really all you're doing is copying someone's idea for how to use your property.
Claiming software is the new means of production is also silly. It's like saying ideas are the new means of production, and essentially agrees with the idea that ideas are property in the first place (and that we should therefore analyze them in property-like terms). Just reject that notion. Speak in plain terms without analogy: it is fine to use other people's ideas. That is how humanity has come to dominate the Earth.
For practical purposes, "capital" has no ability to police the distribution of a 600 kB repo.
Code is more than just ideas, it is productive capacity.
And yeah, I guess Yuzu lives on as a fork, after the original authors got squashed in a multi-million dollar settlement. I'm sure they take a lot of comfort in that from the poorhouse.
And finally, would it really hurt the Walton family? Would they even notice? Our very idea of harm is informed by social and ideological conditioning.
A microharm is different from literally zero harm, and yes theft takes from the victim, and leads to things like store closures and so-called "food deserts" as it actually incurs a cost to provide these things. Copying ideas does not. Whether or not I use this sound plugin, I'm not using Windows. I am not their target market and never will be. There is literally zero possible impact on Microsoft. It's more like saying growing your own tomatoes in your backyard affects the Waltons. No it does not.
A cursory look suggests that Nintendo settled with their LLC, and didn't go after the individual developers. They likely just took the donations (or sales? Was yuzu the one selling early access to builds) to the project.
>A microharm is different from literally zero harm
That is a value-laden assertion, not an uncontroversial fact.
I would posit that it has exactly zero effect on their wellbeing or material conditions.
That is what I mean when I say these conceptions are ideologically colored.
> It's more like saying growing your own tomatoes in your backyard affects the Waltons. No it does not.
If you grow start growing enough tomatoes and giving them away, at some point it might eat into their tomato business. They might not like that. They might even have a conception of reality so informed by them always getting their way that they might perceive it as being harmed.
Why are you treating physical property like a law of nature while calling intellectual property as "imaginary" (a view I agree with btw)? Aren't they both just social constructs we built up and can knock down again?
Which mechanism lets you see one as such and not the other?
There truly is a qualitative difference between moral scenarios that involve tangible property (e.g. theft) and those that don't (e.g. copying): whether I copy or not has literally zero effect on the other party. None. Saying theft has exactly zero effect on their wellbeing is simply wrong. It maybe has 0.0000001 units of effect, which is close to zero, and your values may be that it's "close enough," but it is still not zero. Not interacting with someone actually has precisely zero effect on them. Whether I just use the existing sound system or this plugin affects no one. Whether I grow my tomatoes or buy from Costco has no effect on Walmart. Microsoft is not part of the scenario. Walmart is not part of the scenario.
Growing your own tomatoes does not affect them except in their imagination. You are not interacting with them at all. You are not their tomato buying thrall. It's the "I consent. I consent. I don't" meme. Microsoft is the incel. You and Linux are Chad and Stacey.
Property rights presume people can control specific objects, and make sense given resources are finite. If there are only 1 billion tomatoes in the world right now, we must decide who gets them. If there's a tomato in front of us, only one of us can have it, or we can each only get a fraction. Rights to ideas presume people can control people's general behavior. Ideas are not finite: when you learn my idea, you also have the full idea, and I still have the full idea. The nature of you gaining it is that now it exists twice. It becomes more abundant. You cannot take it from me. They are not the same. Conflating them can only harm you whatever cause you believe in, as it will expand the latter rather than contract the former. People intuitively understand that private property is necessary. Even Marx.
Agreed, enough talk about the Waltons in specific, the point is that in their socioeconomic system, they have private ownership of their large enterprise.
The piece of paper denoting private ownership is just as arbitrary and socially constructed as the one giving Microsoft the right to Windows.
Let me give you an example of what I mean when I talk about socially and ideologically constructed realities.
> Property rights presume people can control specific objects
Yes, sure.
> and make sense given resources are finite
This is where we cross into ideology. Yes, there is a need to assign resources. No, that doesn't automatically mean private property rights are the optimal solution, that is precisely where we unconsciously smuggle in our ideological priors.
For example, from my own priors, I would disagree because in my opinion the most precious resource is our biosphere and in my view informed by that concern, runaway shareholder capitalism is threatening it, through irresponsible resource use, especially when it comes to AI.
Now, you may disagree with that statement, and based on your own priors you very well might.
But my point still stands. What follows is that your whole perception of harm only works if you follow your ideology and treat one of those papers as more sacred than the other.
I choose to reject either paper. I am concerned about the material reality on the ground and the incentive loops driving it.
> Even Marx.
Marx distinguished between personal (e.g. the tomato on your kitchen counter) and private property (e.g. the mega-farm growing them). I also find that distinction useful.
All this to say: rights are inherently socially assigned. We should think about what we want to prioritize, not assume an answer without even realizing we are.
AI has sucked in knowledge of the entire humanity, so I'm pretty sure this is fine, especially if you claim you did the "clean room reimplementation" using two AI agents.
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 as long as the MIT licensed code retains its license and copyright. You can't remove the MIT license.
Do the research and make your own algorithm. Just stealing someone else's work and giving it away is exactly the kind of behavior that people attacked Microsoft for.
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.
If you use that hack, please do not ship it. That will cause all sorts of problems for people that have their Bluetooth headphones connected to both their computer and phone at the same time.
No worries it's not shipping anywhere. It's 110% vibe coded because I didn't care about quality, just wanted the thing to work. Also turns out doing heavily interactive programming sessions with Claude is slowed down a LOT by having the spoken voice. I can skim the text and carefully read (and reread) the important parts a lot faster than listening, and the voice is too disruptive to reading to do both. It was a fun experiment though.
I will say that it was interesting to have Claude diagnose the issue. On a Linux desktop it could tap into many points in the audio chain to figure out where the volume ramp was occurring.
It's buried in the basement of windows inside a locked filing cabinet, in a disused lavatory, with a sign on the door saying "beware of leopard."
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!
It's honestly amazing that none of the popular video conferencing apps have
* user's own volume meter - you might not even know your sound is fucked up
* everybody's else VU meter -arguably less important but useful for the meeting host
* per talker normalization by default - it's just sensible
* loopback test - old skype had loopback number that returned your signal with delay so you could test your setup - nothing like this here
Best we get is some badly made laggy meter when connecting in MS teams
What blows my mind is that Discord does this really well. Why can't serious grown-up software that I'm forced to use for 8+ hours everyday?
These aren't tiny mom and pop companies. Zoom has a $25B market cap and they're actively damaging millions of peoples hearing every day due to simply not giving a crap.
If it's not patented it would be a trade secret, which as far as I understand is fair game unless you want to make your invention accessible to humans in the future by patenting it?
I'd argue we have already decided to go down that path when we deemed AI learning and "creatively reproducing" copyrighted material legal to do.
The full consequences are to be seen, but most software companies are no longer viable the way they are. You can just "creatively reproduce" all the intellectual property.
Even AI labs future is questionable since their models can be distilled and sold on the cheap.
It's definitely super interesting and exciting times we're living in!
This is very likely already happening; LLMs have removed the ability to invent or own things. The downstream consequences for human endeavors are really bad.
The interesting part of this, is the reverse engineering .. features of one operating system are now easily transmutable to another operating system, within the limits of the operator and the models' access to the system. This example is just about a simple EQ function - but we have seen in recent times, full ports of previously-though impossible programs from one OS to the other.
I imagine a day in the future where we won't really have a distinction between operating systems - we'll be running prompts, instead.
That cats not going back in the bag. We have crossed the rubicon, in my opinion.
By way of cute anecdote - I'm already at the point that I no longer see the Linux portions of my DGX Spark cluster much - instead I see the immense prompting power it provides, and if there is something I want to do that can't be sourced from the Linux repo, the models/agents/harness rig I'm running will just 'port' it for me.
This is now very, very productive in many ways. I'm very sorry to report that I no longer need to seek applications for the task - I simply prompt them into existence, now. I can do this because I have decades of systems software development experience, and am not afraid of newly minted CMakeLists.txt files, nossir ..
That capability will be consumer-grade within the year, I bet.
Yes, its scary. No, its nothing to be worried about.
Cool that it is possible, but also just piracy/stealing.
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.
That extends to claims resulting from otherwise innocent usage of AI tools, not deliberately reverse engineering proprietary software and publishing it under a different license.
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?
I agree with your thesis overall and that this whole trend is a bit orthogonal to the "hacker spirit" (at least as far as pushing boundaries is concerned), but I'm also not sure if piracy is the right framing.
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
Interesting for audio nerds: Windows actually has an audio limiter. If you playback audio via loopback shared WASAPI, DirectSound or MME it actually gets compressed very slightly as it nears the peaks. The same does not happen via WASAPI exlcusive or ASIO.
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.
> 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.
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.
I always kept the software mixer at 100% (ie, unity) because when I've already paid for all 16 bits, it is my intent to keep each and every one of them available for use.
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.
There's only one reason someone like you (or me, with a low end professional recording studio setup) would set the digital volume below 100%, and that's if the sound card is running at a higher bit depth than the audio being played back, for instance listening to CD audio when the sound card is at 24 bits, or watching a 24-bit audio dvd/blu-ray with the sound card running at 32 bits
Yes, this is bullshit for people like us. When I had 4 10" KRKs for a sound system, the last thing I could have wanted is this, marketing drones having decisions on what I get to hear.
otoh it's all linux anyway :-~
My current "sound card" accepts 24-bit PCM audio (over USB or Dante or whatever), processes it in hardware as 32-bit floats, and emits 24-bit PCM audio (which is ultimately converted to analog for driving power amplifiers directly).
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.)
I am not an audio person, what's the difference between loopback shared and wasapi exclusive?
It's kind of in the name. When an application wants to be mixed with sounds played by other applications, it opens the audio API in shared mode. When it wants exclusive access to the audio hardware (maybe some kind of professional audio scenario), it opens in exclusive mode.
Emphasis on "kind of" in the name
[flagged]
No personal attacks, please.
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?
You're right that it's a compressor or normalizer, but the name of the setting in Windows is "Loudness Equalization".
It's off by default, you need to toggle it on by output device.
I think its most desirable when:
a) Your laptop speakers kinda suck
b) You're listening to a podcast or random video in a noisy environment
c) a+b
I'm a CS guy who somehow landed at a DSP job, no physics or engineering background at all.
What is equalization? The "most specific" description I can come up with is "estimating a channel and correcting for it", where "channel" specifically means, attenuation, phase, and multipath corrections, and it assumes an LTI effect (meaning things like carrier frequency offset are not included, despite it being an effect you should correct for). If that description is accurate, why is that a good characterization of a class of noise?
> What is equalization?
An equalizer is a multi-filter device that demultiplexes your sound into several channels (usually by frequency), filters each one independently, and then merges the result back.
It has that name because it's supposed to be used for reversing the non-linearities on your sound system, so it amplifies all parts (usually frequencies) by the same amount. But the device by itself doesn't make anything equal, and many people like to use it to distort the sound, what makes the name very confusing.
https://www.youtube.com/watch?v=CLAt95PrwL4 (Posy - EQ)
I'm an audio guy who has been learning about DSP.
The answer you're not looking for is that people get all bent out of shape about their terms, especially when those terms are commonly abbreviated in typical parlance.
A more-practical answer is that when people refer to equalization, they often refer to frequency-domain equalization. Traditionally accomplished with a graphic equalizer (which is "graphic" because a person can see the curve being applied on the faders[1]), or a parametric equalizer (which has than one control per band).
The ostensible intent of frequency equalization is to make a system (and its flaws) equal across the frequency range (from 20Hz 20KHz or from DC to daylight or whatever). The term "frequency equalization" almost always gets shortened to "equalization."
But dialects differ. Sometimes, people say "equalization" and mean something in the realm of dynamic range equalization, instead. They use the term to mean an impartation of dynamic sameness, or equality.
Perhaps this means dynamic compression, or limiting, or both. You know, to smooth out the dynamic peaks and dips in a singular track (to convert something like the 1812 Overture from a raucous affair into something that can be background music). Or, in the case of the Windows software mixer, to avoid commonly-undesirable behavior with clipped samples by targeting sample values in excess of 0dBFS.
Or perhaps they mean peak equalization, where every track in a library is dynamically-adjusted to peak at the same reference value (of maybe 0dBFS or -3dBFS or something) and is otherwise unadjusted.
Perhaps they mean something relating to perceptive loudness over time, instead, like equalizing LUFS[2] values between a selection of tracks so each one retains its own internal dynamics even while a softer track may be increased in amplitude and an overall-louder track may be reduced in amplitude and it is possible that none of them ever reach 0dBFS.
But it's more common, at least in my part of the world, to refer to amplitude-domain stuff as compression, limiting, and/or normalization, and it's also more common to call all of the frequency-domain stuff equalization (even if it's just used as a tone control that is adjusted to taste in a way that has nothing at all to do with equality).
All of these dialects can be functional, and they do convey meaningful information. But audio people have trouble communicating with eachother anyway because for all of their audio prowess, they're often just complete shit at listening.
It's a societal issue that relates to an individual's choice of jargon. And this condition is, to be very clear, quite normal and expected.
Up next: We'll talk about the differences between Jack, a jack plug, a quarter-inch plug, a headphone plug, a TRS plug, and a phone plug.[3]
After that, we'll get into normalled, half-normal, and non-normal patch bays -- and how these have nothing at all to do with amplitude normalization.
---
[1]: except they could be knobs instead, but that's still a "graphical" EQ
[2]: https://en.wikipedia.org/wiki/LUFS
[3]: They're all the same thing, except for Jack, who is not amused by the sound of his name being tarnished in this completely nonsensical intercontinental abyss of nomenclatural duress
Consider it prompting as a service: you don't have to spend your own tokens to take a look at what Windows does.
I, being a bit of a DSP guy, thought it was interesting to see what is being shipped at scale. The code is more of a bonus in case I want to give it a try and tweak it.
Honestly tells you all you need to know about how this project came to life.
> A broadband automatic gain control. Despite the name, it doesn't equalize the spectrum.
The Windows loudness equalization does not sound very good. For the last several years I've been using https://loudmax.blogspot.com/ instead, via PipeWire filter-chain on Linux and Equalizer APO on Windows. Sounds way better than every other plugin I tried.
I don't get why this needed to do reverse engineered from a windows dll. This is not magic, ...
Note: seems many share the same opinion. This is quite simple to implement and wonder why this approach was taken; it can get unethical soon.
I was skimming the code and the loudness equalization algorithm part was super short. Most of this repo is scaffolding.
Right, as expected. Not sure why someone else had to give a snarky remark instead.
It is a single plugin, which is convenient, but this was possible before using ladspa plugins, like easyeffects; https://github.com/Digitalone1/EasyEffects-Presets which even states "It's similar to the Loudness Equalization option in Microsoft Windows."
I have tried a bunch of those EasyEffects pressets and none are even close to what windows does
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.
It's not the algorithm, it's the tuning of that algorithm. I guess that Microsoft tested this across a bunch of different computer speakers and users. Likely resulting in something that is optimal for nobody but reasonably good for a broad range.
Also, different, even if better, is different and most people will notice. Even if they wouldn't have significantly preferred A or B, they're used to A and so if you offer B then they're mad, why is this different?
The readme actually explains the algorithm used: https://github.com/xoxorwr/pw-loudness-eq#the-limiter
When I've used it in the past it has most often been to make voice calls with very quiet participants easier to follow. So basically putting everyone at the same loudness and obliterating dynamics, so that I can hear everyone and also not have my ears blown out.
When I've wanted limiters I've always just turned down the global volume.
> quiet and loud parts play at a similar level
This is never what I want. A composition has a dynamic range for a reason.
I listen to most of my music (instrumental) these days with loudness equalizing on. Used to be a big audiophile, now when I play music it's just background. High dynamic range works against having a pleasant sound for background music as either the loud parts are too loud or the quiet parts imperceptible. Compressing the dynamic range increases enjoyment.
Exactly. If you have a dedicated space with silence and excellent acoustics, high dynamic range can equate to quality. But as soon as you add noise and dampening, that changes.
If you listen to music in the car, super high dynamic range means either blowing your ears out or missing half of the music below the noise floor.
Sometimes I'll listen to a piece on a sound system of some kind and just wish I could go back to when I heard it played by a live orchestra and it shook my soul. That missing range matters sometimes.
Oh, a well used dynamic range is something great.
But the GP's point stays, you just can't have it if you have noise. Trying to keep it just makes the entire experience horrible.
Just give me a simple slider in the volume control. If KDE Plasma can give me sliders popping out for all the Output Devices I'm not currently using (and will never use), I can have a slider for loudness equalisation.
When it comes to enjoying media with non-audiophiles, you are right. But it still makes me a little sad.
I worked hard on my home theater system, amp and speaker selection, tuning every audio and video setting so that everything's dead on, and I have all that wonderful dynamic range. When I play a piece of music for myself, it's glorious! Then, my wife, kid, and I sit down to watch a movie, and all night it's "I can't hear the dialog! Turn it up!" and "Now the explosions are too loud! Turn it down!" and then "Is there any sound? Turn it up! I thought this was a good stereo!" over and over, and I just sit there like a dummy, adjusting the volume control for two hours.
It's probably worth seeing if you can setup presets. Your current settings and then a 'theater mode' where there's some light compression, the center channel is boosted and the subwoofer(s) are limited.
And then for some films, you'll need to turn down the sub a bit more, cause I dunno, some mixes are rediculous... shake my house for a rocket launch, sure; shake my house cause a compact car is rumbling down the street is a bit much.
Unless you're listening to a speaker setup that's capable of the dynamic range need for an orchestra, you need some level of high pass, limiting and compression. I can imagine why they optimised for the tinny pc and laptop speakers people were connecting to their computers.
> a speaker setup that's capable of the dynamic range need for an orchestra
This speaker setup does not actually exist.
There are instrument geometries that produce output that simply cannot be reproduced artificially via whatever normalized loudspeaker geometry.
The piano and cymbals being strong examples. The initial transient of a cymbal crash is beyond hopeless to deal with. Plasma tweeters are probably as close as you can get on this one.
Fascinating. The cymbals I can intuitively understand, but why the piano?
The piano's soundboard is an absolutely massive acoustic radiator. You can emulate the piano accurately if the pianist is playing something gentle and in the middle registers. If the pianist is playing Rachmaninoff, I think it might actually be worse than the cymbals in some ways.
> A composition has a dynamic range for a reason.
People get rid of dynamic range for more immediately compelling reasons. Here's my favorite filter. I never had much luck with perceptual loudness normalization, and brick wall limiters are too sensitive to transient pops. https://github.com/DaveFlater/DRD
The range should be adjustable depending on consumer preference.
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.
For a couple of years, my hearing was extremely sensitive (for being an ignorant musician that didn’t wear hearing protection), and watching Youtube videos was really annoying, since some idiots put jumpscares with loud noises in their videos.
During those years, I had to use a loudness normalizer whenever I used headphones.
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.
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.
If you have system alerts at 80% and movie sounds at 40% and chat alerts at 15%, you're going to not hear things if you turn master volume to 30%.
This fixes that.
But of course - you don't have to use it!
> 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.
A lot of people play games with their friends while communicating together in another application.
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.
It sounds as if neither this product, nor the setting in Windows are a good choice for you.
It's never been an OS designed for power users.
Both are brilliant solutions that work great for me.
Yes I also do that sometimes. I guess I've never run into such mismatched audio levels that it needed an adjustment.
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?
It is more of a mixed case issue. You may be listening to music, then watching a youtube video, then playing a movie in vlc, then opening a audio message on whatsapp web.
Or you could be watching a movie that has annoying jumps like dune?
mr christopher nolan, I am a big fan of your movies but I wish you used this fucking algorithm in them
Nolan makes no movies for puny setups. I always watch his movies with subtitles on because dialogues -- in Tennet for instance -- are inaudible.
I’ve got a 5.1 setup (not a very expensive one) and I can say that the inaudible part of Tennet are basically irrelevant. The dynamic range part is a big part of the feeling of movies, even when purposefully manipulated and not realistic. But having a specific speaker for dialogs and important sound is great because your brain can tune itself to it.
I've originally said in the comment that a soundbar goes a long way. I have a 3.1.2 soundbar, the one that has two front speakers aimed to the ceiling so it simulates surround sound without rear speakers.
It's really good, way better than regular TV speakers. I calibrate the audio for regular dialogues and let the loud parts get loud.
God I can't believe the replies to this comment. People begging for the loudness war to be brought back.
Brought back? I think it is still going on. Watch any modern series and you have that issue of tiny bit of dramatic moment, and they will blast your ears off with loudness, forcing you to decrease volume, while leaving you scrambling to increase volume when 2 people have a conversation, so that you can actually hear the words.
I used to have a music player, that let me regulate the volume of each track separately, in 10% steps. Wish that could be brought back to some modern music players. I don't mean just in some metadata, but a property of a playlist, that I change live in my player.
What you're describing is dynamic range, where loud things are loud and quiet is quiet. The loudness wars is the opposite, where dynamic range is crushed to increase the perceived loudness. You can always correct this with a "night mode" usually found in your TV or sound bar but you can never get back the lost dynamic range.
For your second bit, while it's not quite the same, does your player not have a loudness leveling option?
I am not watching on a TV. I don't own a TV. I don't have a sound bar, I believe. Not really sure what that exactly is.
I am often using Audacious or VLC. Nor sure if they have a loudness leveling thing. If so, I have never noticed it in the primary UI buttons and such. Might be hidden somewhere.
I guess my complaint is, that movies shouldn't simply assume to be run on some fancy pants audio system to get leveled back to normal volume for various parts of the audio (talk/conversation VS gunshots/explosions, etc.) I shouldn't have to hectically reach for volume down shortcuts, when the scene suddenly gets some action, so that I don't wake up my neighbors.
This happens a lot when you're listening to an audio stream that isn't mixed for your speaker setup. If you're listening on a laptop, you've got 2.0 stereo setup. If whatever audio player you're using is playing the 5.1 audio stream, it's going to have to do some software downmixing to 2.0 and that isn't going to perform as well as a specifically mixed 2.0 stereo track that usually is available on the disc/stream the media was distributed on originally.
If you want a good hearing experience: switch to German dubs, their audio mix is made to make speaking voices better recognizable
For produced content, sure, but if you're listening to podcasts, livestreams, or just voice chats live normalization can be quite useful
> 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.
A lot of musical doesnt actually these days, including remastered versions of older music, since we all now listen through YouTube and Spotify on phones and laptop speakers.
I also rarely take time for listening but I do keep my Flacs and specific remasters around. But for TV I hate dynamic range, we always have it on low anyway with subtitles on because we actually do not like the cinema experience at all.
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.
> This is exactly what I want, because the audio mixing on movies is such that on stereo speakers, the spoken dialogue is whisper quiet
You probably want a proper stereo mix or a dialogue boost option. Movies are mixed such that the dialogue comes through the center speaker which you don't have, so you need that problem fixed.
"this is never what I want" is a data point, just like yours.
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.
As someone who gets into negative headspace sometimes, maybe just notice that the original commenter didn't say any of that.
> No, it's just complaining.
So what are you doing if not complaining about their post/take?
I guess echo cancellation comes next ?
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
I've accomplished effectively the same thing using EasyEffects (https://github.com/wwmm/easyeffects). You might want to look into that as well.
Been using Calf Studio Gear (https://calf-studio-gear.org/) since subjectively forever, it also offers a very nice compressor.
Yeah, I’ve been using some presets, I think this one: https://github.com/Digitalone1/EasyEffects-Presets
I always preferred the tune-able algorithm implemented in Media Player Classic/MPC-HC for movies on Windows. Same with the ease of adjusting the audio switcher for downmixing and a lot of other features. The Windows built-in one is pretty good though for general use. On my Lenovo it is disabled in favor of some Dolby version which is significantly inferior.
Windows Loudness Equalization was the only way i could actually enjoy early 2010's youtube memes
youtube seems to have added it to some videos, but humor has moved on it seems?
Finally. My laptop speaker volume balance was a nightmare, one app always drowning out the others. The per-app exclusion is the killer feature here.
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.
If this works like the Windows loudness equalization, then it does work within each app.
What is the difference with just slapping on a compression filter?
The readme explains what it does: https://github.com/xoxorwr/pw-loudness-eq#the-limiter
Looks like the power in the analyser is spectrum weighted which make the volume levels more perceptually similar.
Frequency weighting is pretty standard for loudness measurement, e.g. ITU.BS 1770
I wonder if you can create a spec with on LLM then ask another to implement it thus doing clean room reverse engineering?
Perhaps the concept of intellectual property should be completely abandoned or at least significantly revamped. When I buy a chair, I am free to disassemble it, document the individual parts, and make and sell clones. Why should software be different?
How can it be "clean room" if alternatives are in the training data of either of them?
This is effectively what Photocraft is.
As this is an algorithm, I don't think it can be copyrighted anyways as you can't copyright logic?
You can if you outline how the logic is applied to an apparatus. Example "Breathing status LED indicator" https://patents.google.com/patent/US6658577B2/en
That is a patent, not a copyright.
Algorithms cannot be copyrighted, only specific programs that implement an algorithm.
Traditionally, algorithms could not be patented, but the practice of the US patent law has invented loopholes for patenting algorithms and eventually many algorithms have been patented, and USA has also blackmailed other countries to change their patent laws, though in many countries such lax interpretations of the patent laws are still not accepted.
Algorithms and formulae do not deserve to be patented, because with very rare exceptions it is very easy to rediscover them completely independently and there exists no justification for punishing the independent discoverers just because someone else happened to also discover the same algorithm, but one day earlier or one year earlier, because by chance they encountered earlier a problem for which that algorithm is needed.
I suspect using an LLM makes the reverse engineering no longer "clean room".
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.
Right, so everything should be open source by default, problem solved.
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.
What better way than to make it painfully obvious that all of this stuff is right there, able to be used by anyone, and it's only a nonsensical belief that one "shouldn't" that stops you?
"Serious" projects like Redhat might not take it, but it's easy enough to have overlays of owner software that just does whatever someone wants, and for a distribution to emerge that enables this stuff by default for people who don't care about imaginary property.
It's not a feeling of one "shouldn't".
It's the threat of having the mighty wrath of capital descend on you with its armies of lawyers that could ruin your existence. Ask Yuzu for an example.
All sorts of stuff is just out there ready to be used, but we don't because the consequences of doing so would not be enjoyable. Hell, the grocery store has food that you can just start eating right then and there! It's not the physical ability that stops you, its the socioeconomic system.
There is a wild difference in kind between theft and just making your computer do what you want. You don't not steal because of the consequences; you don't steal because it harms others. Making your computer's sound work how you'd like doesn't harm others. If you really want a tortured analogy to taking food, it's more like freeganism. Except even that isn't really a good analogy because really all you're doing is copying someone's idea for how to use your property.
Claiming software is the new means of production is also silly. It's like saying ideas are the new means of production, and essentially agrees with the idea that ideas are property in the first place (and that we should therefore analyze them in property-like terms). Just reject that notion. Speak in plain terms without analogy: it is fine to use other people's ideas. That is how humanity has come to dominate the Earth.
For practical purposes, "capital" has no ability to police the distribution of a 600 kB repo.
Yuzu lives on as Eden: https://git.eden-emu.dev/eden-emu/eden/
Code is more than just ideas, it is productive capacity.
And yeah, I guess Yuzu lives on as a fork, after the original authors got squashed in a multi-million dollar settlement. I'm sure they take a lot of comfort in that from the poorhouse.
And finally, would it really hurt the Walton family? Would they even notice? Our very idea of harm is informed by social and ideological conditioning.
A microharm is different from literally zero harm, and yes theft takes from the victim, and leads to things like store closures and so-called "food deserts" as it actually incurs a cost to provide these things. Copying ideas does not. Whether or not I use this sound plugin, I'm not using Windows. I am not their target market and never will be. There is literally zero possible impact on Microsoft. It's more like saying growing your own tomatoes in your backyard affects the Waltons. No it does not.
A cursory look suggests that Nintendo settled with their LLC, and didn't go after the individual developers. They likely just took the donations (or sales? Was yuzu the one selling early access to builds) to the project.
>A microharm is different from literally zero harm
That is a value-laden assertion, not an uncontroversial fact.
I would posit that it has exactly zero effect on their wellbeing or material conditions.
That is what I mean when I say these conceptions are ideologically colored.
> It's more like saying growing your own tomatoes in your backyard affects the Waltons. No it does not.
If you grow start growing enough tomatoes and giving them away, at some point it might eat into their tomato business. They might not like that. They might even have a conception of reality so informed by them always getting their way that they might perceive it as being harmed.
Why are you treating physical property like a law of nature while calling intellectual property as "imaginary" (a view I agree with btw)? Aren't they both just social constructs we built up and can knock down again?
Which mechanism lets you see one as such and not the other?
There truly is a qualitative difference between moral scenarios that involve tangible property (e.g. theft) and those that don't (e.g. copying): whether I copy or not has literally zero effect on the other party. None. Saying theft has exactly zero effect on their wellbeing is simply wrong. It maybe has 0.0000001 units of effect, which is close to zero, and your values may be that it's "close enough," but it is still not zero. Not interacting with someone actually has precisely zero effect on them. Whether I just use the existing sound system or this plugin affects no one. Whether I grow my tomatoes or buy from Costco has no effect on Walmart. Microsoft is not part of the scenario. Walmart is not part of the scenario.
Growing your own tomatoes does not affect them except in their imagination. You are not interacting with them at all. You are not their tomato buying thrall. It's the "I consent. I consent. I don't" meme. Microsoft is the incel. You and Linux are Chad and Stacey.
Property rights presume people can control specific objects, and make sense given resources are finite. If there are only 1 billion tomatoes in the world right now, we must decide who gets them. If there's a tomato in front of us, only one of us can have it, or we can each only get a fraction. Rights to ideas presume people can control people's general behavior. Ideas are not finite: when you learn my idea, you also have the full idea, and I still have the full idea. The nature of you gaining it is that now it exists twice. It becomes more abundant. You cannot take it from me. They are not the same. Conflating them can only harm you whatever cause you believe in, as it will expand the latter rather than contract the former. People intuitively understand that private property is necessary. Even Marx.
Agreed, enough talk about the Waltons in specific, the point is that in their socioeconomic system, they have private ownership of their large enterprise.
The piece of paper denoting private ownership is just as arbitrary and socially constructed as the one giving Microsoft the right to Windows.
Let me give you an example of what I mean when I talk about socially and ideologically constructed realities.
> Property rights presume people can control specific objects
Yes, sure.
> and make sense given resources are finite
This is where we cross into ideology. Yes, there is a need to assign resources. No, that doesn't automatically mean private property rights are the optimal solution, that is precisely where we unconsciously smuggle in our ideological priors.
For example, from my own priors, I would disagree because in my opinion the most precious resource is our biosphere and in my view informed by that concern, runaway shareholder capitalism is threatening it, through irresponsible resource use, especially when it comes to AI.
Now, you may disagree with that statement, and based on your own priors you very well might.
But my point still stands. What follows is that your whole perception of harm only works if you follow your ideology and treat one of those papers as more sacred than the other.
I choose to reject either paper. I am concerned about the material reality on the ground and the incentive loops driving it.
> Even Marx.
Marx distinguished between personal (e.g. the tomato on your kitchen counter) and private property (e.g. the mega-farm growing them). I also find that distinction useful.
All this to say: rights are inherently socially assigned. We should think about what we want to prioritize, not assume an answer without even realizing we are.
Sure, what about the legals of it, e.g. is the algorithm patented?
AI has sucked in knowledge of the entire humanity, so I'm pretty sure this is fine, especially if you claim you did the "clean room reimplementation" using two AI agents.
That line of defence will do wonders in court.
That's so 2025.
Help, I'm lawyerly-challenged and I'm struggling. I know this is legal, but is it MIT-license ok?
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 as long as the MIT licensed code retains its license and copyright. You can't remove the MIT license.
I asked Claude and it says that we can use it :D
Takedown in 3, 2, 1...
Do the research and make your own algorithm. Just stealing someone else's work and giving it away is exactly the kind of behavior that people attacked Microsoft for.
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.
If you use that hack, please do not ship it. That will cause all sorts of problems for people that have their Bluetooth headphones connected to both their computer and phone at the same time.
>> If you use that hack, please do not ship it.
No worries it's not shipping anywhere. It's 110% vibe coded because I didn't care about quality, just wanted the thing to work. Also turns out doing heavily interactive programming sessions with Claude is slowed down a LOT by having the spoken voice. I can skim the text and carefully read (and reread) the important parts a lot faster than listening, and the voice is too disruptive to reading to do both. It was a fun experiment though.
I will say that it was interesting to have Claude diagnose the issue. On a Linux desktop it could tap into many points in the audio chain to figure out where the volume ramp was occurring.
app can be. the media played by the app won't
That's not on by default in Windows, is it? Some obscure setting?
It’s an option in the output device Properties dialog.
It adds latency, so you may not want to have it on by default.
It's buried in the basement of windows inside a locked filing cabinet, in a disused lavatory, with a sign on the door saying "beware of leopard."
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
It's honestly amazing that none of the popular video conferencing apps have
* user's own volume meter - you might not even know your sound is fucked up * everybody's else VU meter -arguably less important but useful for the meeting host * per talker normalization by default - it's just sensible * loopback test - old skype had loopback number that returned your signal with delay so you could test your setup - nothing like this here
Best we get is some badly made laggy meter when connecting in MS teams
What blows my mind is that Discord does this really well. Why can't serious grown-up software that I'm forced to use for 8+ hours everyday?
These aren't tiny mom and pop companies. Zoom has a $25B market cap and they're actively damaging millions of peoples hearing every day due to simply not giving a crap.
Wait, are Windows users getting dynamic range compression on everything? Good lord.
Isn't this just theft and inevitably going to cause a lawsuit?
What's next? Stealing all the DSP algorithms that Dolby and THX et al put together and ride their entire business on?
If it's not patented it would be a trade secret, which as far as I understand is fair game unless you want to make your invention accessible to humans in the future by patenting it?
I'd argue we have already decided to go down that path when we deemed AI learning and "creatively reproducing" copyrighted material legal to do.
The full consequences are to be seen, but most software companies are no longer viable the way they are. You can just "creatively reproduce" all the intellectual property.
Even AI labs future is questionable since their models can be distilled and sold on the cheap.
It's definitely super interesting and exciting times we're living in!
This is very likely already happening; LLMs have removed the ability to invent or own things. The downstream consequences for human endeavors are really bad.
The interesting part of this, is the reverse engineering .. features of one operating system are now easily transmutable to another operating system, within the limits of the operator and the models' access to the system. This example is just about a simple EQ function - but we have seen in recent times, full ports of previously-though impossible programs from one OS to the other.
I imagine a day in the future where we won't really have a distinction between operating systems - we'll be running prompts, instead.
> we'll be running prompts
I'm not yet sure where the line is but please, let's not.
That cats not going back in the bag. We have crossed the rubicon, in my opinion.
By way of cute anecdote - I'm already at the point that I no longer see the Linux portions of my DGX Spark cluster much - instead I see the immense prompting power it provides, and if there is something I want to do that can't be sourced from the Linux repo, the models/agents/harness rig I'm running will just 'port' it for me.
This is now very, very productive in many ways. I'm very sorry to report that I no longer need to seek applications for the task - I simply prompt them into existence, now. I can do this because I have decades of systems software development experience, and am not afraid of newly minted CMakeLists.txt files, nossir ..
That capability will be consumer-grade within the year, I bet.
Yes, its scary. No, its nothing to be worried about.
> 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 agree with you on this goal, but there has got to be a better way!
Which is probably giving a heart attack to Microsoft every now and then. AI-washing is a powerful threat to their empire.
If we enable this: can we _not_ have the output limiter always active please?
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...
now reverse-engineer the Winamp "Enhancer" DSP plugin
* https://winampplugins.co.uk/enhancer/enhancer.html
because I've never found anything else that makes everything sound so amazing
Cool that it is possible, but also just piracy/stealing.
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.
Microsoft themselves have a legal program where they claim they'll support people using AI if anyone else comes forward and say that they own copyright on the AI-user's generated code: https://blogs.microsoft.com/on-the-issues/2023/09/07/copilot...
So it's going to be pretty hard for them to go against OP in front of a judge
That extends to claims resulting from otherwise innocent usage of AI tools, not deliberately reverse engineering proprietary software and publishing it under a different license.
> Cool that it is possible, but also just piracy/stealing.
What exactly is being stolen here?
[flagged]
> 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?
I agree with your thesis overall and that this whole trend is a bit orthogonal to the "hacker spirit" (at least as far as pushing boundaries is concerned), but I'm also not sure if piracy is the right framing.
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
always heard it was just a two band rms compressor, is that actually what was in tere
I bet the author doesn't know, they just clicked the button on the magic plagiarism machine.
Of course it should be GPL'ed then ;)