A simple limiter with standard threshold and release time controls, featuring two compressors and a hard clipper at 0 dB. More...
#include <juce_Limiter.h>

Public Member Functions | |
| Limiter ()=default | |
| Constructor. | |
| void | prepare (const ProcessSpec &spec) |
| Initialises the processor. | |
| template<typename ProcessContext > | |
| void | process (const ProcessContext &context) noexcept |
| Processes the input and output samples supplied in the processing context. | |
| void | reset () |
| Resets the internal state variables of the processor. | |
| void | setRelease (SampleType newRelease) |
| Sets the release time in milliseconds of the limiter. | |
| void | setThreshold (SampleType newThreshold) |
| Sets the threshold in dB of the limiter. | |
Private Member Functions | |
| void | update () |
Private Attributes | |
| Compressor< SampleType > | firstStageCompressor |
| SmoothedValue< SampleType, ValueSmoothingTypes::Linear > | outputVolume |
| SampleType | releaseTime = 100.0 |
| double | sampleRate = 44100.0 |
| Compressor< SampleType > | secondStageCompressor |
| SampleType | thresholddB = -10.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 juce::dsp::Limiter< SampleType >::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
|
inlinenoexcept |
Processes the input and output samples supplied in the processing context.
References juce::dsp::Limiter< SampleType >::firstStageCompressor, jassert, juce::dsp::Limiter< SampleType >::outputVolume, and juce::dsp::Limiter< SampleType >::secondStageCompressor.
| void juce::dsp::Limiter< SampleType >::reset | ( | ) |
Resets the internal state variables of the processor.
| void juce::dsp::Limiter< SampleType >::setRelease | ( | SampleType | newRelease | ) |
Sets the release time in milliseconds of the limiter.
| void juce::dsp::Limiter< SampleType >::setThreshold | ( | SampleType | newThreshold | ) |
Sets the threshold in dB of the limiter.
|
private |
|
private |
Referenced by juce::dsp::Limiter< SampleType >::process().
|
private |
Referenced by juce::dsp::Limiter< SampleType >::process().
|
private |
|
private |
|
private |
Referenced by juce::dsp::Limiter< SampleType >::process().
|
private |