quantumVERB  1.0.0
A FOSS convolution reverb plugin
reverb::LowShelfFilter Class Reference

#include <Filter.h>

Inheritance diagram for reverb::LowShelfFilter:
Collaboration diagram for reverb::LowShelfFilter:

Public Member Functions

virtual void buildFilter () override
 Generates and sets the low-shelf 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...
 
- Public Member Functions inherited from reverb::Filter
 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 &params, 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...
 
- Public Member Functions inherited from reverb::Task
 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

- Public Types inherited from reverb::Filter
using Ptr = std::shared_ptr< Filter >
 
- Public Types inherited from reverb::Task
using Ptr = std::shared_ptr< Task >
 
- Static Public Member Functions inherited from reverb::Filter
static float todB (float m)
 
static float invdB (float dB)
 
- Public Attributes inherited from reverb::Task
double sampleRate
 
- Protected Member Functions inherited from reverb::Filter
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...
 
- Protected Member Functions inherited from reverb::Task
float getParam (const juce::AudioProcessorValueTreeState &params, const juce::String &blockId) const
 Internal method used to get (and check) a parameter's value.
 
- Protected Attributes inherited from reverb::Filter
float frequency
 
float Q
 
float gainFactor
 
- Protected Attributes inherited from reverb::Task
juce::AudioProcessor * processor
 
bool mustExec = true
 

Detailed Description

This LowShelfFilter class implements a low-shelf IIR filter The inherited exec() function is used to process samples.

Definition at line 80 of file Filter.h.

Member Function Documentation

◆ Filter()

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.

Parameters
[in]processorPointer to main processor
[in]freqBand frequency
[in]gainBand gain
[in]qQ factor

Definition at line 29 of file Filter.cpp.


The documentation for this class was generated from the following files: