50 juce::dsp::ProcessContextReplacing<
float> context(audio);
68 juce::dsp::ProcessSpec spec;
69 spec.sampleRate = processor->getSampleRate();
77 spec.maximumBlockSize = 2048;
78 spec.numChannels = (juce::uint32)ir.getNumChannels();
84 copyAndLoadImpulseResponseFromBlock(ir, spec.sampleRate,
85 ir.getNumChannels() == 2,
float getParam(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const
Internal method used to get (and check) a parameter's value.
void loadIR(AudioBlock ir)
Defines the main characteristics of the convolution process and loads the IR into the juce::dsp::Conv...
virtual AudioBlock exec(AudioBlock audio) override
Main function of the Convolution class. Executes the convolution of the audio buffer with the IR...
Convolution(juce::AudioProcessor *processor)
Constructor. Creates a Convolution object.
virtual void updateParams(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &="") override
No parameters to update, do nothing.