|
LMMS
|
#include <juce_Compressor.h>
Public Member Functions | |
| Compressor () | |
| void | setThreshold (SampleType newThreshold) |
| void | setRatio (SampleType newRatio) |
| void | setAttack (SampleType newAttack) |
| void | setRelease (SampleType newRelease) |
| void | prepare (const ProcessSpec &spec) |
| void | reset () |
| template<typename ProcessContext> | |
| void | process (const ProcessContext &context) noexcept |
| SampleType | processSample (int channel, SampleType inputValue) |
Private Member Functions | |
| void | update () |
Private Attributes | |
| SampleType | threshold |
| SampleType | thresholdInverse |
| SampleType | ratioInverse |
| BallisticsFilter< SampleType > | envelopeFilter |
| double | sampleRate = 44100.0 |
| SampleType | thresholddB = 0.0 |
| SampleType | ratio = 1.0 |
| SampleType | attackTime = 1.0 |
| SampleType | releaseTime = 100.0 |
A simple compressor with standard threshold, ratio, attack time and release time controls.
@tags{DSP}
| Compressor::Compressor | ( | ) |
Constructor.
| void Compressor::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
|
inlinenoexcept |
Processes the input and output samples supplied in the processing context.
| SampleType Compressor::processSample | ( | int | channel, |
| SampleType | inputValue ) |
Performs the processing operation on a single sample at a time.
| void Compressor::reset | ( | ) |
Resets the internal state variables of the processor.
| void Compressor::setAttack | ( | SampleType | newAttack | ) |
Sets the attack time in milliseconds of the compressor.
| void Compressor::setRatio | ( | SampleType | newRatio | ) |
Sets the ratio of the compressor (must be higher or equal to 1).
| void Compressor::setRelease | ( | SampleType | newRelease | ) |
Sets the release time in milliseconds of the compressor.
| void Compressor::setThreshold | ( | SampleType | newThreshold | ) |
Sets the threshold in dB of the compressor.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |