Compressor Op
This op is deprecated!
It will not receive any updatesCompression reduces the volume of loud sounds
Summary (oneliner)
Thin Tone.js wrapper around the Web Audio DynamicsCompressorNode. Compression reduces the volume of loud sounds or amplifies quiet sounds by narrowing or "compressing" an audio signal's dynamic range. Read more on Wikipedia. Another great tutorial on compressors: homestudiocenter.com
- Ops.Extension.Deprecated.Tonejs.Compressor
- Extension Op - Visible to all users
- MIT
- Tone.js (Webaudio Library)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
No op example found on this server
INPUT PORTS
The audio signal to compress
The threshold value – at which decibel level the compression should start. If we set the threshold to -12db
, the compressor will not affect everything quieter than that, as soon as the sound hits -12dB
the compressor will kick in and reduce the volume. Often you want to chain a Gain
-op after the Compressor
-op to make it a little bit louder (makeup for the compression).
Attack time is how quickly the compressor engages and reduces the volume of the audio once the audio signal is louder than the threshold. If our attack is set to 20ms
, and the audio rises above our threshold of -12db
, it will take 20 milliseconds for the compressor to fully kick in.
This is how long it takes the compressor to dis-engage.
How hard the compressor kicks in, a low number (called hard knee) will kick in very hard, this is typically used for drums. A high number on the other hand (called soft knee) does not kick in fully (the transition from uncompressed to compressed is softer).
The ratio determines how much the volume is reduced by.
OUTPUT PORTS
The compressed audio signal