Skip to content

Commit

Permalink
Stopped the Synthesiser class allowing midi events to steal notes fro…
Browse files Browse the repository at this point in the history
…m other midi channels.
  • Loading branch information
jules committed Jan 29, 2015
1 parent cff4689 commit 15a1548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit 15a1548

Please sign in to comment.