Hacker News new | ask | show | jobs
by kowdermeister 3207 days ago
Stopped reading at: "Something like the DynamicsCompressorNode is practically a joke: basic features from a real compressor are basically missing, and the behavior that is there is underspecified such that I can’t even trust it to sound correct between browsers. "

Then if you look into it:

    dictionary DynamicsCompressorOptions : AudioNodeOptions {
             float attack = 0.003;
             float knee = 30;
             float ratio = 12;
             float release = 0.25;
             float threshold = -24;
Which are indeed the basics that you need and totally enough for most use cases.

Check out a vintage compressor that has a dozen implementation as VST plugins:

http://media.uaudio.com/assetlibrary/t/e/teletronix_la2a_car...

4 comments

> Which are indeed the basics that you need and totally enough for most use cases.

However, I can take your "simple" compressor and swap it out of my audio chain for a more complex one if I need to.

I can't do that for the Web Audio API. That's really what everybody is complaining about.

The problem is that if your use case only covers 95% and I use 10 pieces, I am practically guaranteed to have a mismatch for multiple pieces--and I can't escape.

If you have 95% coverage, and you have 10 separate random pieces, you actually have a 40% chance of failure.
I can't tell if your being pedantic because you agree with the parent, or because you missed their point entirely
Where's the sidechain input?
You can access the reduction property and connect it a gain node of anouther source.

https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCom...

That's using the output of the compressor to drive another node. A sidechain compressor has two inputs.
I know what sidechain compression is, yes, you need to code a little bit more :)
Just the BASICS. Like before we knew anything about Audio
Regardless of the other valid reply to this question, the implication that sidechain is a fundamentally basic thing for a compressor is questionable. Sidechains are extremely useful for many cases, but there's clearly tons of applications of compressors that don't use sidechains. It's not like a sidechainless compressor is unusable.
The LA2A is as basic as they come. And it's more used for its character and coloring than for its flexibility.
Still, the cross-browser thing seems quite bad.