Quote:
What does gas mode (Boyle's law) do?
Well, my idea (based on input from Bojcha) was to make a compressor that behaves like a 'gas compressor'.
So, if you push it stronger together, release will be faster.
One effect of this is that loud sounds will not be reduced as much because the release 'fights back' more. Also, in a traditional compressor, for each sample you have EITHER release OR attack, and in Gas Mode release always works. I actually also want attack to work always, but so far I've been unable to figure out how to do that.
Release makes sense: Deeper down = push back up stronger. (Currently that's true when measured in dB's but in amplification value it's a straight line. Not sure if that's good or not, making the amplification go up twice as fast when it's down twice as deep causes other bad things that I don't want.)
Attack is more difficult: Say we have a tone that's 6 dB too loud. Then attack should push down to at most 6 dB reduction (which it won't reach due to the new release). Point is, say that we're 6 dB too soft. Then it should actually still have some (very weak) push compared to no audio at all. The problem here is that if I just convert a sample value into some amount of pushing, a range of large values could push it into negative values. So something is wrong with this idea. Or alternatively, I should make it such that we push with the same strength that release would use when we reach the target position. Problem with that is that in that case, I cannot set attack separately anymore - if it differs from release it won't work. So, I'm kinda a bit confused here. (That's also why I didn't mention it yet in the list of changes).