hckrnws
Windows Loudness Equalization, reverse-engineered and ported to PipeWire
by ThrowNotAway
by ThrowNotAway
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.
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 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.
For those with a math background but not electronic music experience:
You're doing arithmetic with ints. Suppose you have an 8-bit volume range between 0..255. You cut the volume in half by dividing by 2, rounding down. Now your range is 0..127. Then you want to double the volume again, so you multiply everything by 2 again. But now your range is 0..254 (not 255), and you only have the even numbers. That series of samples you took like [125, 126, 127, 128, 129]? Now it's [124, 126, 126, 128, 128]. You'll never get those original values back. You can't. They're lost.
So instead, you keep that full range up until you get to the speakers, and then you cut the volume down at that point. When you turn it back up, you have the full range of values again.
It's almost exactly the same for analog gear, too. In general, you always want to run your pre-amplifier stages as close to maximum as possible without actually maxing them out. (If you do, your guitars sound great and distorted, but almost everything else just sounds bad.) If you start with a CD-quality signal at nearly full strength up until the amps, the output will sound crystal clear. But if your input signals are turned way down, and you have to crank the amps to bring everything up to the desired volume, you'll end up amplifying all the hiss and other background noise, too.
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?
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.
This is never what I want. A composition has a dynamic range for a reason.
youtube seems to have added it to some videos, but humor has moved on it seems?
When was the last time you saw WLE? It disappeared for me a few years ago.
I haven't seen it in any of my Windows installs for some time. I keep looking for it.
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.
Apps should be well behaved and have sensible volume settings of their own, so we don't get into a war over volume control.
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.
It adds latency, so you may not want to have it on by default.
What's next? Stealing all the DSP algorithms that Dolby and THX et al put together and ride their entire business on?
I imagine a day in the future where we won't really have a distinction between operating systems - we'll be running prompts, instead.
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...
This feels like a problem where an equivalent result would've been possible by maybe taking the Windows implementation as a starting point, then further pondering together with the clanker what exactly makes it tick and why.
And then build something new out of those learnings.
Or at the very least don't make it as blatantly obvious that it is simply stolen.
So it's going to be pretty hard for them to go against OP in front of a judge
* https://winampplugins.co.uk/enhancer/enhancer.html
because I've never found anything else that makes everything sound so amazing
[dead]
[dead]
[dead]
[dead]
[dead]
[dead]
But we don't usually[1] listen to 32-bit floats. We have an output stage after we're done with the math that consists of a DAC, and this DAC historically (for the past 30 years or so) has resolution of just 16 or 24 bits of linear PCM.
[1]: There are some outboard DACs and pro audio interfaces that accept 32-bit floats and convert that to analog, but...
[deleted]
24 bits is enough to record a grasshopper next to a jackhammer. 32 bits is enough to record that same grasshopper next to spacex's superheavy starship booster during liftoff.
The only reason to have more than 16 bits is to permit software processing (including volume control) without quality loss.
otoh it's all linux anyway :-~
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.)
[dead]
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
My question was more of specific features of that implementation that make it more desirable than regular stuff in EasyEffects or Libavfilter or standard loudness normalization approaches (EBU R 128, ReplayGain, etc).
I perfectly understand when loudness normalization can be useful. My mpv input.conf has this heavy-handed line for catastrophically quiet stuff:
f2 af toggle lavfi="acompressor=threshold=0.75:ratio=1.8:makeup=2,loudnorm=i=-12:lra=8"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.
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.
It's such an overloaded term that it ceases to mean anything other than "an algorithm that corrects for the environment".
[deleted]
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[0] "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 the commonly-undesirable behavior of clipped samples.
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.
---
[0]: https://github.com/xoxorwr/pw-loudness-eq
[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
> A broadband automatic gain control. Despite the name, it doesn't equalize the spectrum.
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."
[dead]
Here are other sources that do something similar - https://www.thushanfernando.com/notes/popos-pipewire-loudnes... - https://forum.endeavouros.com/t/pipewire-filter-chains-norma... - https://forum.endeavouros.com/t/tutorial-olume-normalization...
... using EasyEffects. Although as part of https://rgrv.nl I do DSP work, why would I do this if it already exists!? As said, I have no use for this, ... I have a physical knob/fader to do this.
When I've wanted limiters I've always just turned down the global volume.
[dead]
[dead]
[deleted]
- Windows Loudness Equalization is pretty good and has existed for several decades
- Pipewire still has no such thing built-in (nor does any other Linux desktop audio system). The best you can achieve is user-made easyeffects presets and even then it's not as good (or it's just "different" which equals not as good to many)
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.
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.
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.
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.
This fixes that.
But of course - you don't have to use it!
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.
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
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.
This is meant for movies or for listening to music at lower volumes, for which it wasn't mixed for.
I don't really understand takes like this. You realize that not everything is meant for you or for every demographic, right? Things are allowed to be for some people and not for others.
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.
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.
It's really good, way better than regular TV speakers. I calibrate the audio for regular dialogues and let the loud parts get loud.
[deleted]
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.
For your second bit, while it's not quite the same, does your player not have a loudness leveling option?
During those years, I had to use a loudness normalizer whenever I used headphones.
My ears are still significantly more sensitive than the average person's. I have to wear earplugs whenever I'm close to live music, or in loud subways, etc.
But I don't need to use an audio normalizer anymore. I just wear headphones and watch videos normally.
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.
Or you could be watching a movie that has annoying jumps like dune?
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.
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.
"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.
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.
[dead]
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
* 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
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.
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!
[dead]
I'm not yet sure where the line is but please, let's not.
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 agree with you on this goal, but there has got to be a better way!
What exactly is being stolen here?
Share your thoughts please.
Because that road you probably do not want to go down if your good example is someone telling claude to "take this and clone it. make no mistakes" and then calls it a day.
That is not craftsmanship or interesting. It is "I've pressed a button".
So I agree that it doesn't belong on HN, but I think that's not what you wanted to say.
I've also tried to actually turn this into something worthy of being here, but that was then downvoted and attempted to shut down by some 7 month old account.
Idk dang maybe you want to do something about the vibekids?
The base idea is also not new, equalisation algorithms and research on psychoacoustic-based metrics have been a think for ages. Iirc there are even ITU standards on this exact thing. Reversing the Windows implementation usually was accompanied by some new insight on specific reverse techniques or perhaps some unique realisation of the author. There was no one spending hours on going through RE something some specific without at least gaining a ton of specialised knowledge along the way.
Now this part is almost trivial so sharing it with an AI README is just mostly noise. But I guess not many motivated people are left actually pushing forward, so without those articles HN would be left with nothing. The reader is left to decide whether this would be preferable to the current state of the front page.
But I digress, I think opening with calling it "piracy" is not quite what you were going for
[dead]
In practice I do think people often say TRS regardless of how many R are actually present. I know there's some de facto intercompatibility with incorrect ring numbers at least in consumer gear, because a mismatch will either short a signal to ground or leave it floating, but the size thing is still relevant.
And they're often interchangeable. A TS plug can connect to a TRS jack, and sometimes that's even desirable[1] for things like connecting a transformer-balanced output to a single-ended input. Or: TRS plugged into a TRRS hole can be used to detect the lack of a microphone.
And it gets weird than that: TRS to RCA[2] adapters, with T and R shorted together in the adapter itself, are a relatively universal way to turn a normalled TRS insert point on a mixer into an output for an RCA-equipped recorder without altering signal flow within that mixer. But this same adapter won't produce any signal at all when plugged into a balanced TRS output, whether transformer-equipped or not.
[1]: https://www.ranecommercial.com/legacy/pdf/ranenotes/Sound_Sy...
[2]: I call them RCAs. Some others refer to them as phono, cinch, pin, or tulip connectors.
Except: Not everybody enjoys that.
So... Compress it. Some media players and audio systems have that dynamic range compression functionality built-in, and it can often be added to systems that use things like Kodi or VLC. Compression can essentially run the volume control up and down on your behalf. (Turn that stuff back off again when the wife and kids aren't home. Or don't. It's your audio system; please use it however it is most pleasing.)
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.
Your problem is that you don't have the subtitles turned on. Turn those on and then they won't need the volume cranked to understand today's mumbling actors.
It's never been an OS designed for power users.
So what are you doing if not complaining about their post/take?
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.
Your complaint is entirely solvable with simple software. However removing dynamic range is a one way path, and if it's removed then it's impossible to get it back. So then people that do have decent speakers and want a good listening experience can't.
It's possible for Blu-ray to include a stereo mix, they can have multiple audio tracks, but realistically most people buying physical media have speakers or at least a soundbar.
I'm running a 2.0 and 2.1 setup myself; went deep with this while working on https://pixelbrite.site
Thanks for the reference to plasma tweeters, this is a rabbit-hole.
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/
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 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.
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?
[dead]
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.
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.
Any harm is always greater than no harm, mathematically, and the fact/value dichotomy is bogus. If a harm is occurring, it is occurring objectively, not because some arbitrary constructed axiology tells us there is one. And if you can't tell, then you can't really make the accusation you make in the first place.
But this is besides the point. Fundamentally, this isn't a question of harm. It's a question of justice and respecting rightful due. The demands of justice don't go away just because you cause no economic harm to someone. You might ask "what constitutes rightful due?", and here it suffices to say fair compensation for work and service (you're not just paying the Waltons, you're also paying the farmers and truck drivers and accountants, etc, etc who contributed to providing them with those tomatoes).
Now, I am not claiming that classical liberal property rights - which can tend toward property absolutism - aren't problematic. In a liberal conception, private property is conceived of as prior to the common good. The common good is then redefined as effectively a grudging cession of private property. This naturally pits private property against the common good. But this is a flawed and shall we say ahistorical understanding of property.
Private property is not part of natural law itself, but it is an ordinance of human reason. It exists to promote order, care, and peace - in short, for the sake of the common good. The private is a function of the common, you could say. When private property conflicts with the common good, it no longer functions as private property proper.
A classic litmus test is the privately-held food depot during a period of famine. Would a starving man taking the food he needs to survive from that depot be guilty of theft? The classical liberal would answer in the affirmative (whether he would consider it justifiable theft - a contradiction in terms, but I digress - depends on where he falls on the liberal spectrum). But I claim - in accord with a classical common good understanding - that it would not constitute theft. The hoarding of food here is opposed to the common good and so ownership is in some sense diffused, because in cases of urgent necessity, claims of private exclusion give way to basic human need. So while sellers may earn a fair return or compensation for labor, transport, and risk, taking unscrupulous advantage of distress (such as hoarding or gouging during a famine) violates moral fairness.
> That is what I mean when I say these conceptions are ideologically colored.
Perhaps parenthetical, but I cannot take Marxist deployments of the word "ideological" very seriously. To try to escape the paradox of ideology, Marxists must resort to tacitly bestowing epistemic privilege to some elect (the proletariat, though Marx was curiously bourgeois), and then conveniently enshrines Marxism into a "science" and, as we have also seen empirically, an unquestionable ideology. It fits right in with all the paradoxes of skepticism or cultural relativism.
> If you grow start growing enough tomatoes and giving them away, at some point it might eat into their tomato business.
Okay, but this isn't harm. The Waltons are not entitled to customers. All such commerce is gratuitous and no one has an obligation to buy anything from them in the first place. Therefore, in this respect, we are outside the bounds of justice. Justice enters the picture during the exchange.
> 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?
We must distinguish between goods consumed in use and goods where ownership and use can be separated. Ownership is secondary to use, and goods must ultimately serve the common good. Where IP-as-idea is concerned, concepts as such exist in the mind and can be grasped by many minds without diminishing another’s grasp, so in that sense, treating ideas as scarce private possessions is a category mistake.
On the other hand, while ideas reside in the mind, once expressed in tangible forms, those expressions can be said to enter social life where human law may regulate use and application for the sake of the common good. Here, if legal protection encourages creation, care, and orderly distribution for the common good, you could view positive IP laws as a reasonable human convention. Because ideas or works are not destroyed simply by being shared or licensed, IP-as-social construct can resemble non-consumable goods where rights of use can be granted or restricted separately from underlying title.
Now, when IP monopolies restrict access to vital knowledge, medicine, or culture, they conflict with the principle that common use and human flourishing trump exclusive private claims. And when copying carries near-zero cost or marginal loss, artificial restrictions or inflated prices can conflict with fair exchange and the common good.
Just as a quick example, the very first half-sentence already asserts a definiton of harm without establishing it objectively. You can't say any harm is worse than no harm before first establishing a conception of harm itself.
Or as another example:
> Private property is not part of natural law itself, but it is an ordinance of human reason.
Who gets to define reason?
> It exists to promote order, care, and peace
Whose order? Care towards whom? Peace from what?
All of these effectively are elaborate self-justification mechanisms to naturalize a socially contingent arrangement. The only objective reality is the material reality on the ground.
Let me know if you want me to demonstrate a few more instances, but I think I made my larger meta-point here already: https://news.ycombinator.com/item?id=50644040