• Hacker News
  • new|
  • comments|
  • show|
  • ask|
  • jobs|
  • phkahler 29 minutes

    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.

  • velocitixagency 1 hours

    [flagged]

  • ZoomZoomZoom 40 minutes

    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?

  • sick_of_slop 5 minutes

    [dead]

  • jareklupinski 6 minutes

    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?

  • ephaeton 2 hours

    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...

  • ravivarmat 2 hours

    [flagged]

  • nbevans 43 seconds

    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?

  • floornext 2 hours

    always heard it was just a two band rms compressor, is that actually what was in tere

  • lostmsu 1 hours

    That's not on by default in Windows, is it? Some obscure setting?

    layer8 38 minutes

    It’s an option in the output device Properties dialog.

    It adds latency, so you may not want to have it on by default.

    mapontosevenths 37 minutes

    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

  • jwrallie 1 hours

    I wonder if you can create a spec with on LLM then ask another to implement it thus doing clean room reverse engineering?

    utopiah 1 hours

    How can it be "clean room" if alternatives are in the training data of either of them?

    ChocolateGod 1 hours

    This is effectively what Photocraft is.

    realusername 8 minutes

    As this is an algorithm, I don't think it can be copyrighted anyways as you can't copyright logic?

    cmiles74 45 minutes

    I suspect using an LLM makes the reverse engineering no longer "clean room".

  • pocketman 1 hours

    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 52 minutes

    The readme actually explains the algorithm used: https://github.com/xoxorwr/pw-loudness-eq#the-limiter

    bryanlarsen 10 minutes

    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.

  • skeledrew 1 hours

    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 hours

    If this works like the Windows loudness equalization, then it does work within each app.

  • dormento 1 hours

    Help, I'm lawyerly-challenged and I'm struggling. I know this is legal, but is it MIT-license ok?

    noselasd 28 minutes

    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.

    atillaisik 1 hours

    I asked Claude and it says that we can use it :D

    CodeCompost 1 hours

    Takedown in 3, 2, 1...

  • aa-jv 2 hours

    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.

    Rzor 1 hours

    Which is probably giving a heart attack to Microsoft every now and then. AI-washing is a powerful threat to their empire.

    speed_spread 1 hours

    > we'll be running prompts

    I'm not yet sure where the line is but please, let's not.

    aa-jv 13 minutes

    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.

  • pjmlp 1 hours

    Sure, what about the legals of it, e.g. is the algorithm patented?

    hurfdurf 1 hours

    That's so 2025.

    code-blooded 1 hours

    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.

    pjmlp 31 minutes

    That line of defence will do wonders in court.

  • maybewhenthesun 1 hours

    What is the difference with just slapping on a compression filter?

    layer8 51 minutes

    The readme explains what it does: https://github.com/xoxorwr/pw-loudness-eq#the-limiter

    nialse 1 hours

    Looks like the power in the analyser is spectrum weighted which make the volume levels more perceptually similar.

    scott01 1 hours

    Frequency weighting is pretty standard for loudness measurement, e.g. ITU.BS 1770

  • Jasonsf737 1 hours

    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 1 hours

    I've accomplished effectively the same thing using EasyEffects (https://github.com/wwmm/easyeffects). You might want to look into that as well.

    Zinu 43 minutes

    Yeah, I’ve been using some presets, I think this one: https://github.com/Digitalone1/EasyEffects-Presets

  • hypfer 1 hours

    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.

    hackyhacky 1 hours

    > Cool that it is possible, but also just piracy/stealing.

    What exactly is being stolen here?

    nekusar 1 hours

    > Cool that it is possible, but also just piracy/stealing.

    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.

    jcelerier 1 hours

    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

    cannonpalms 35 minutes

    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.

    venzaspa 1 hours

    Is reverse engineering even equivalent to piracy? Is piracy even stealing? I know the second question has been endlessly debated...

    It's always surprising the reaction from people on so called 'Hacker News'

    hypfer 1 hours

    > 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?

    soygem 1 hours

    [dead]

    sedictious 1 hours

    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

  • getfacl 2 hours

    > quiet and loud parts play at a similar level

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

    DaveFlater 12 minutes

    > 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

    skeledrew 1 hours

    The range should be adjustable depending on consumer preference.

    LastTrain 55 minutes

    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.

    Garvi 49 minutes

    > 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.

    hackinthebochs 10 minutes

    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.

    elfly 47 minutes

    mr christopher nolan, I am a big fan of your movies but I wish you used this fucking algorithm in them

    iekeb 17 minutes

    God I can't believe the replies to this comment. People begging for the loudness war to be brought back.

    zelphirkalt 7 minutes

    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.

    Yokolos 1 hours

    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 1 hours

    "this is never what I want" is a data point, just like yours.

    Yokolos 1 hours

    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 33 minutes

    As someone who gets into negative headspace sometimes, maybe just notice that the original commenter didn't say any of that.

    alt227 31 minutes

    > No, it's just complaining.

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

    aa-jv 2 hours

    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.

    soulofmischief 1 hours

    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?

    kqp 1 hours

    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.

    aa-jv 9 minutes

    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!

    getfacl 52 minutes

    > 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 45 minutes

    A lot of people play games with their friends while communicating together in another application.

    getfacl 36 minutes

    Yes I also do that sometimes. I guess I've never run into such mismatched audio levels that it needed an adjustment.

    alt227 32 minutes

    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.

    joenot443 22 minutes

    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.

  • vrganj 1 hours

    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 1 hours

    Right, so everything should be open source by default, problem solved.

    vrganj 55 minutes

    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.

    ndriscoll 25 minutes

    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.

    vrganj 23 minutes

    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.

    ndriscoll 16 minutes

    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/

    vrganj 5 minutes

    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.

    ndriscoll 1 minutes

    A microharm is different from literally zero harm, and yes theft 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. 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.