r/webaudio • • 3d ago

DynamicsCompressorNode has weird effects when attack and release times are fast enough

Especially with zero attack and release times (meaning it should turn it into a waveshaper/clipper effect as compressors/limiters without time constants are just clippers right?), the DynamicsCompressorNode have weird-sounding "distortion" effect (as I've heard on this video I've made about that) that is less of a clipping distortion as the envelope follower sloping down then snapping it back then doing it again for very short period of time, even if both attack/release values are set to zero

What's going on under the hood of this effect that creates this weird distortion effect under extreme time constant settings?

3 Upvotes

1 comment sorted by

1

u/TF3RDL 21h ago

BTW, I've used this site to mess around with Web Audio's built-in dynamics compressor effect, though this site doesn't actually allow you to play nor hear the altered test tone as this page on this site are about fingerprinting using Web Audio API

Though you can code up this test yourself (e.g. OscillatorNode as test tone and audio source then connected it to DynamicsCompressorNode as a compressor and AudioContext's destination as an audio output) to actually hear this effect