Stereo Feed-forward compressor with peak-based or RMS detection and optional lookahead and stereo linking.
More...
|
| Compressor (bool linkChannels) |
|
| Compressor (const Compressor &other) |
|
Compressor & | operator= (const Compressor &other) |
|
void | RMS (float window_ms=50.0f) |
| sets the ms window for the RMS detector and activates RMS detection mode More...
|
|
void | peak () |
| activates peak detection mode. Peak detection is default.
|
|
void | analog () |
| sets the envelope follower behavior to analog (slightly slower).
|
|
void | digital (bool lookahead=false) |
| sets the envelope follower behavior digital (more responsive, default behavior). Optional boolean value for activating the lookahead function (false by default). More...
|
|
void | stereoLink (bool active) |
| links the signal detection for stereo channels. Activated by default. More...
|
|
Patchable & | ch (size_t index) |
| Uses the selected channel as input/output for the patching operation. 0 is for the left channel (default input/output) and 1 is for the right channel. Index values outside of range are remapped to 0 or 1. More...
|
|
Patchable & | in_attack () |
| Sets "attack" as selected input and returns this module ready to be patched. This input is the attack time of the compressor in milliseconds. Init default value is 10 ms.
|
|
Patchable & | in_release () |
| Sets "release" as selected input and returns this module ready to be patched. This input is the release time of the compressor in milliseconds. Init default value is 50 ms.
|
|
Patchable & | in_threshold () |
| Sets "threshold" as selected input and returns this module ready to be patched. This is the threshold of the gain reduction. Default init value is -20dB.
|
|
Patchable & | in_ratio () |
| Sets "ratio" as selected input and returns this module ready to be patched. This is the threshold of the gain reduction. If ratio is greater than 40 this module acts as a limiter. Default init value is 4.0f, that means 4:1 compression.
|
|
Patchable & | in_knee () |
| Sets "knee" as selected input and returns this module ready to be patched. This is the knee of the compressor. Init default value is 0dB.
|
|
float | meter_GR () const |
| returns the gain reduction value (updated once each audio buffer). This method is thread-safe.
|
|
void | resetInputToDefault () |
| resets the selected input to the default.
|
|
void | resetOutputToDefault () |
| resets the selected output to the default.
|
|
Patchable & | in (const char *tag) |
| sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
|
|
Patchable & | out (const char *tag) |
| sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
|
|
void | disconnectIn () |
| disconnects all the outputs connected to the selected input, then resets the selected input to the default.
|
|
void | disconnectOut () |
| disconnects all the inputs connected to the selected output, then resets the selected output to the default.
|
|
void | disconnectAll () |
| disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default.
|
|
InputNode & | getSelectedInput () |
| returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator.
|
|
OutputNode & | getSelectedOutput () |
| returns the selected output, you can patch it to another Patchable or InputNode with the >> operator.
|
|
std::vector< std::string > | getInputsList () |
| returns a vector of the valid input tags
|
|
std::vector< std::string > | getOutputsList () |
| returns a vector of the valid input tags
|
|
Stereo Feed-forward compressor with peak-based or RMS detection and optional lookahead and stereo linking.
Feed-forward stereo compressor with peak or rms detection (defaults to peak), settable attack, release, threshold, ratio and knee. Optional lookahead. There is also a method for link the signal detection of the stereo channels, by default they are linked. If you set the ratio to a value greater than 40 the compressor will act as a limiter.