![]() |
quantumVERB
1.0.0
A FOSS convolution reverb plugin
|
#include <Filter.h>
Public Member Functions | |
virtual void | buildFilter () override |
Generates and sets the peak IIR filter coefficients according to the current filter parameters. | |
Filter (juce::AudioProcessor *processor, float freq=1000.0f, float q=0.71f, float gain=1.5f) | |
Constructs a Filter object with optional frequency/gain/Q parameters. More... | |
![]() | |
Filter (juce::AudioProcessor *processor, float freq=1000.0f, float q=0.71f, float gain=1.5f) | |
Constructs a Filter object with optional frequency/gain/Q parameters. More... | |
virtual void | updateParams (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) override |
Updates parameters from processor parameter tree. More... | |
virtual AudioBlock | exec (AudioBlock ir) override |
Filters the audio in AudioSampleBuffer. More... | |
float | getAmplitude (float freq) |
Returns the filter absolute amplitude response at a given frequency. More... | |
float | getdBAmplitude (float freq) |
Returns the filter amplitude response in dB at a given frequency. More... | |
![]() | |
Task (juce::AudioProcessor *processor) | |
virtual bool | needsToRun () const |
Tells caller whether block must be run for current block. More... | |
virtual void | updateSampleRate (double sr) |
Update sample rate for task block. More... | |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< Filter > |
![]() | |
using | Ptr = std::shared_ptr< Task > |
![]() | |
static float | todB (float m) |
static float | invdB (float dB) |
![]() | |
double | sampleRate |
![]() | |
void | setFrequency (float) |
Sets the filter frequency and updates the IIR filter coefficients (Meant to be used by Equalizer class) More... | |
void | setQ (float) |
Sets the filter Q factor and updates the IIR filter coefficients (Meant to be used by Equalizer class) More... | |
void | setGain (float) |
Sets the filter band gain and updates the IIR filter coefficients (Meant to be used by Equalizer class) More... | |
![]() | |
float | getParam (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const |
Internal method used to get (and check) a parameter's value. | |
![]() | |
float | frequency |
float | Q |
float | gainFactor |
![]() | |
juce::AudioProcessor * | processor |
bool | mustExec = true |
This PeakFilter class implements a peaking IIR filter The inherited exec() function is used to process samples.
reverb::Filter::Filter |
Constructs a Filter object with optional frequency/gain/Q parameters.
The Filter object is constructed from the processor pointer and from the optional frequency/gain/Q parameters. The frequency is the cut-off frequency of the derived LowShelfFilter/HighShelfFilter and the center frequency of the PeakFilter class.
[in] | processor | Pointer to main processor |
[in] | freq | Band frequency |
[in] | gain | Band gain |
[in] | q | Q factor |
Definition at line 29 of file Filter.cpp.