beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.WebAudio.DynamicsCompressor

DynamicsCompressor
op id:aad4a714-8e77-4b85-8c69-cb7e564016a8
Compressor audio effect

summary (oneliner)

The DynamicsCompressorNode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio.

Resident Advisor: Compression Tutorial

doc

youtube id

collections

related ops

Inputs

audio in (Object)

The audio signal you want to compress


threshold (Number)

How loud the signal has to be before compression is applied.


knee (Number)

Sets how the compressor reacts to signals once the threshold is passed.


ratio (Number)

How much compression is applied. For example, if the compression ratio is set for 6:1, the input signal will have to cross the threshold by 6 dB for the output level to increase by 1dB.


attack (Number)

How quickly the compressor starts to work.


release (Number)

How soon after the signal dips below the threshold the compressor stops.


exe (Function)

Only needed to update the Reduction port, has no effect on the compression


Outputs

audio out (Object)

Compressed audio signal


reduction (Number)

How much the audio input is reduced


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using DynamicsCompressor

Public Patches using DynamicsCompressor