@Alfred write a JUCE component that contains a phaser.
@bmacmixer // This is an example of a JUCE component that contains a phaser: class Phaser : public juce::AudioProcessor { public: Phaser(); ~Phaser(); void prepareToPlay (double sampleRate, int samplesPerBlock) override; void process (AudioSampleBuffer& buffer, MidiBuffer& midiMessages) override; void releaseResources() override; void reset() override; void setFrequency (float freq); void setDepth (float depth); void setRate (float rate); private: juce::dsp::Phaser phaser;
@bmacmixer MidiBuffer& midiMessages is included to allow for the passing of a MIDI message from the overridden method to the class that is calling the overridden method. This allows the class to handle or process MIDI messages in the desired way.