From d2996f50cfc359cb2b15afdd1674aa56d90e0e78 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 18 Jul 2013 11:02:06 +0100 Subject: [PATCH] Made Synthesiser::handleMidiEvent overridable. --- modules/juce_audio_basics/synthesisers/juce_Synthesiser.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.