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:
parent
cff4689c66
commit
15a154851e
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue