diff --git a/modules/juce_audio_basics/synthesisers/juce_Synthesiser.h b/modules/juce_audio_basics/synthesisers/juce_Synthesiser.h index 5f0d450f71..5044ef1600 100644 --- a/modules/juce_audio_basics/synthesisers/juce_Synthesiser.h +++ b/modules/juce_audio_basics/synthesisers/juce_Synthesiser.h @@ -471,6 +471,9 @@ protected: int midiNoteNumber, float velocity); + /** Can be overridden to do custom handling of incoming midi events. */ + virtual void handleMidiEvent (const MidiMessage&); + private: //============================================================================== double sampleRate; @@ -478,8 +481,7 @@ private: bool shouldStealNotes; BigInteger sustainPedalsDown; - void handleMidiEvent (const MidiMessage& m); - void stopVoice (SynthesiserVoice* voice, bool allowTailOff); + void stopVoice (SynthesiserVoice*, bool allowTailOff); #if JUCE_CATCH_DEPRECATED_CODE_MISUSE // Note the new parameters for this method.