Compressor

Basic compressor

class Compressor : DynamicsProcessor {}

Inherited Members

From DynamicsProcessor

detector
EnvelopeDetector detector;

Tracks the input level to trigger compression.

linkedDetector
EnvelopeDetector* linkedDetector;

Will point to the detector of a processor that is stereo linked

linkStereo
void linkStereo(DynamicsProcessor stereoProcessor)

Allows this processors envelope to be linked to another processor. This way the two will act as a single unit. Both processors must call this on each other to function properly

_inputGain
float _inputGain;

Amount of input gain in decibels

_threshold
float _threshold;

Level in decibels that the input signal must cross before compression begins

_attTime
float _attTime;

Time in milliseconds before compression begins after threshold has been crossed

_relTime
float _relTime;

Time in milliseconds before the compression releases after the input signal has fallen below the threshold

_ratio
float _ratio;

Ratio of compression, higher ratio = more compression

_outputGain
float _outputGain;

Amount of output gain in decibels

_kneeWidth
float _kneeWidth;

width of the curve that interpolates between input and output. Unit in decibels

x
float[] x;

Holds the points used for interpolation;

y
float[] y;

Holds the points used for interpolation;

Meta