1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Stopped the Synthesiser class allowing midi events to steal notes from other midi channels.

This commit is contained in:
jules 2015-01-29 12:36:48 +00:00
parent cff4689c66
commit 15a154851e

View file

@ -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())
{