Skip to main content

Compressor

About Compressor

A compressor effect is a widely used audio processing tool that helps control the dynamic range of a sound signal. It reduces the difference between the loudest and softest parts of the audio, resulting in a more consistent and balanced output. The most common parameters of a compressor effect include threshold, ratio, attack, release, and makeup gain. The threshold determines the level at which the compressor starts to work, while the ratio determines the amount of compression applied to the signal above the threshold. The attack parameter controls how quickly the compressor responds to the incoming signal, and the release parameter determines how long it takes for the compressor to stop compressing after the signal falls below the threshold. Lastly, the makeup gain compensates for the reduction in overall volume caused by compression, allowing the user to boost the output level if desired.

Switchboard Editor example

Code Example

{
"nodes": {
{ "id": "compressorNode", "type": "Superpowered.CompressorNode" }
},
"connections": {
{ "sourceNode": "inputNode", "destinationNode": "compressorNode" },
{ "sourceNode": "compressorNode", "destinationNode": "outputNode" }
}
}