From 15a154851e83fb28cd2074b08777a69226ea6e0b Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 29 Jan 2015 12:36:48 +0000 Subject: [PATCH] Stopped the Synthesiser class allowing midi events to steal notes from other midi channels. --- modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp b/modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp index d9a4a64144..45f2d66630 100644 --- a/modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp +++ b/modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp @@ -292,7 +292,8 @@ void Synthesiser::noteOff (const int midiChannel, { SynthesiserVoice* const voice = voices.getUnchecked (i); - if (voice->getCurrentlyPlayingNote() == midiNoteNumber) + if (voice->getCurrentlyPlayingNote() == midiNoteNumber + && voice->isPlayingChannel (midiChannel)) { if (SynthesiserSound* const sound = voice->getCurrentlyPlayingSound()) {