|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A simple noise gate with standard threshold, ratio, attack time and release time controls. More...
#include "juce_NoiseGate.h"
Public Member Functions | |
| NoiseGate () | |
| Constructor. | |
| void | setThreshold (SampleType newThreshold) |
| Sets the threshold in dB of the noise-gate. | |
| void | setRatio (SampleType newRatio) |
| Sets the ratio of the noise-gate (must be higher or equal to 1). | |
| void | setAttack (SampleType newAttack) |
| Sets the attack time in milliseconds of the noise-gate. | |
| void | setRelease (SampleType newRelease) |
| Sets the release time in milliseconds of the noise-gate. | |
| void | prepare (const ProcessSpec &spec) |
| Initialises the processor. | |
| void | reset () |
| Resets the internal state variables of the processor. | |
| template<typename ProcessContext > | |
| void | process (const ProcessContext &context) noexcept |
| Processes the input and output samples supplied in the processing context. | |
| SampleType | processSample (int channel, SampleType inputValue) |
| Performs the processing operation on a single sample at a time. | |
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}
Definition at line 36 of file juce_NoiseGate.h.
| juce::dsp::NoiseGate< SampleType >::NoiseGate | ( | ) |
Constructor.
Definition at line 31 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
Definition at line 72 of file juce_NoiseGate.cpp.
|
noexcept |
Processes the input and output samples supplied in the processing context.
Definition at line 66 of file juce_NoiseGate.h.
| SampleType juce::dsp::NoiseGate< SampleType >::processSample | ( | int | channel, |
| SampleType | inputValue | ||
| ) |
Performs the processing operation on a single sample at a time.
Definition at line 95 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::reset | ( | ) |
Resets the internal state variables of the processor.
Definition at line 87 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::setAttack | ( | SampleType | newAttack | ) |
Sets the attack time in milliseconds of the noise-gate.
Definition at line 57 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::setRatio | ( | SampleType | newRatio | ) |
Sets the ratio of the noise-gate (must be higher or equal to 1).
Definition at line 48 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::setRelease | ( | SampleType | newRelease | ) |
Sets the release time in milliseconds of the noise-gate.
Definition at line 64 of file juce_NoiseGate.cpp.
| void juce::dsp::NoiseGate< SampleType >::setThreshold | ( | SampleType | newThreshold | ) |
Sets the threshold in dB of the noise-gate.
Definition at line 41 of file juce_NoiseGate.cpp.