A simple noise gate with standard threshold, ratio, attack time and release time controls. More...
#include <juce_NoiseGate.h>
Public Member Functions | |
NoiseGate () | |
Constructor. More... | |
void | prepare (const ProcessSpec &spec) |
Initialises the processor. More... | |
template<typename ProcessContext > | |
void | process (const ProcessContext &context) noexcept |
Processes the input and output samples supplied in the processing context. More... | |
SampleType | processSample (int channel, SampleType inputValue) |
Performs the processing operation on a single sample at a time. More... | |
void | reset () |
Resets the internal state variables of the processor. More... | |
void | setAttack (SampleType newAttack) |
Sets the attack time in milliseconds of the noise-gate. More... | |
void | setRatio (SampleType newRatio) |
Sets the ratio of the noise-gate (must be higher or equal to 1). More... | |
void | setRelease (SampleType newRelease) |
Sets the release time in milliseconds of the noise-gate. More... | |
void | setThreshold (SampleType newThreshold) |
Sets the threshold in dB of the noise-gate. More... | |
Private Member Functions | |
void | update () |
Private Attributes | |
SampleType | attackTime = 1.0 |
SampleType | currentRatio |
BallisticsFilter< SampleType > | envelopeFilter |
SampleType | ratio = 10.0 |
SampleType | releaseTime = 100.0 |
BallisticsFilter< SampleType > | RMSFilter |
double | sampleRate = 44100.0 |
SampleType | threshold |
SampleType | thresholddB = -100 |
SampleType | thresholdInverse |
A simple noise gate with standard threshold, ratio, attack time and release time controls.
Can be used as an expander if the ratio is low.
@tags{DSP}
juce::dsp::NoiseGate< SampleType >::NoiseGate | ( | ) |
Constructor.
void juce::dsp::NoiseGate< SampleType >::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
|
inlinenoexcept |
Processes the input and output samples supplied in the processing context.
References jassert, and juce::dsp::NoiseGate< SampleType >::processSample().
SampleType juce::dsp::NoiseGate< SampleType >::processSample | ( | int | channel, |
SampleType | inputValue | ||
) |
Performs the processing operation on a single sample at a time.
Referenced by juce::dsp::NoiseGate< SampleType >::process().
void juce::dsp::NoiseGate< SampleType >::reset | ( | ) |
Resets the internal state variables of the processor.
void juce::dsp::NoiseGate< SampleType >::setAttack | ( | SampleType | newAttack | ) |
Sets the attack time in milliseconds of the noise-gate.
void juce::dsp::NoiseGate< SampleType >::setRatio | ( | SampleType | newRatio | ) |
Sets the ratio of the noise-gate (must be higher or equal to 1).
void juce::dsp::NoiseGate< SampleType >::setRelease | ( | SampleType | newRelease | ) |
Sets the release time in milliseconds of the noise-gate.
void juce::dsp::NoiseGate< SampleType >::setThreshold | ( | SampleType | newThreshold | ) |
Sets the threshold in dB of the noise-gate.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |