DynamicsProcessor

Base class for dynamics processors such as compressor, limiter, expander, and gate. This class is useless on it's own. It should be inherited from and have getNextSample overriden.

Members

Functions

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

Variables

_attTime
float _attTime;

Time in milliseconds before compression begins after threshold has been crossed

_inputGain
float _inputGain;

Amount of input gain in decibels

_kneeWidth
float _kneeWidth;

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

_outputGain
float _outputGain;

Amount of output gain in decibels

_ratio
float _ratio;

Ratio of compression, higher ratio = more compression

_relTime
float _relTime;

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

_threshold
float _threshold;

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

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

x
float[] x;

Holds the points used for interpolation;

y
float[] y;

Holds the points used for interpolation;

Inherited Members

From AudioEffect

getNextSample
float getNextSample(const float input)

Process a sample that is passed to the processor, and return the next sample.

reset
void reset()

Should be used to free any delay elements or do any setup before play begins.

setSampleRate
void setSampleRate(float sampleRate)

Meta