|
LMMS
|
#include <juce_Limiter.h>
Public Member Functions | |
| Limiter ()=default | |
| void | setThreshold (SampleType newThreshold) |
| void | setRelease (SampleType newRelease) |
| void | prepare (const ProcessSpec &spec) |
| void | reset () |
| template<typename ProcessContext> | |
| void | process (const ProcessContext &context) noexcept |
Private Member Functions | |
| void | update () |
Private Attributes | |
| Compressor< SampleType > | firstStageCompressor |
| Compressor< SampleType > | secondStageCompressor |
| SmoothedValue< SampleType, ValueSmoothingTypes::Linear > | outputVolume |
| double | sampleRate = 44100.0 |
| SampleType | thresholddB = -10.0 |
| SampleType | releaseTime = 100.0 |
A simple limiter with standard threshold and release time controls, featuring two compressors and a hard clipper at 0 dB.
@tags{DSP}
|
default |
Constructor.
| void Limiter::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
|
inlinenoexcept |
Processes the input and output samples supplied in the processing context.
| void Limiter::reset | ( | ) |
Resets the internal state variables of the processor.
| void Limiter::setRelease | ( | SampleType | newRelease | ) |
Sets the release time in milliseconds of the limiter.
| void Limiter::setThreshold | ( | SampleType | newThreshold | ) |
Sets the threshold in dB of the limiter.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |