24 Mixer(juce::AudioProcessor * processor);
28 using Ptr = std::shared_ptr<
Mixer>;
31 virtual void updateParams(
const juce::AudioProcessorValueTreeState& params,
32 const juce::String& blockId)
override;
41 juce::AudioSampleBuffer dryAudioCopy;
45 float wetRatio = 0.0f;
Mixer(juce::AudioProcessor *processor)
Constructor. Creates a Mixer object.
float getParam(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const
Internal method used to get (and check) a parameter's value.
void loadDry(AudioBlock audio)
loads the dry signal into the dryAudio variable
virtual AudioBlock exec(AudioBlock wetAudio) override
Mix the wet and dry sound according to a proportionality parameter.
virtual void updateParams(const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) override
Updates parameters from processor parameter tree.