35 Equalizer(juce::AudioProcessor * processor,
int numFilters = 4);
36 virtual void updateParams(
const juce::AudioProcessorValueTreeState& params,
37 const juce::String& blockId)
override;
56 juce::OwnedArray<Filter> filterSet;
57 std::vector<
float> EQGains;
62 const char * what()
const throw ()
64 return "Equalizer: Filter ID is invalid";
70 const char * what()
const throw ()
72 return "Equalizer: The calibration algorithm did not converge";
float getParam(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const
Internal method used to get (and check) a parameter's value.
void calibrateFilters()
Calibrates the individual filter gains so that the total gains are equal to the user defined values...
float getdBAmplitude(float freq)
Returns the Equalizer amplitude response in dB at a given frequency.
int getNumFilters()
Returns the number of filters in the equalizer.
virtual void updateSampleRate(double sr) override
Update sample rate for task block.
virtual bool needsToRun() const override
Tells caller whether block must be run for current block.
virtual AudioBlock exec(AudioBlock ir) override
Processes the AudioBuffer input with the EQ filters.
virtual void updateParams(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) override
Read processor parameters and update block parameters as necessary.