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.

Constructors

this
this()
Undocumented in source.

Members

Functions

getNextSample
T getNextSample(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
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

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setParams
void setParams(float attackTime, float releaseTime, float threshold, float ratio, float knee)
Undocumented in source. Be warned that the author may not have intended to support it.
setSampleRate
void setSampleRate(float sampleRate)
Undocumented in source. Be warned that the author may not have intended to support it.

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
PeakDetector!float detector;

Tracks the input level to trigger compression.

linkedDetector
PeakDetector!float* linkedDetector;

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

x
float[] x;
y
float[] y;

Holds the points used for interpolation;

Meta