Browse Source

Fix master channel check in MPEInstrument

tags/2021-05-28
Tom Maisey ed 6 years ago
parent
commit
d5816ad186
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp

+ 5
- 1
modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp View File

@@ -607,7 +607,11 @@ bool MPEInstrument::isMasterChannel (int midiChannel) const noexcept
if (legacyMode.isEnabled)
return false;
return (midiChannel == 1 || midiChannel == 16);
const auto lowerZone = zoneLayout.getLowerZone();
const auto upperZone = zoneLayout.getUpperZone();
return (lowerZone.isActive() && midiChannel == lowerZone.getMasterChannel())
|| (upperZone.isActive() && midiChannel == upperZone.getMasterChannel());
}
bool MPEInstrument::isUsingChannel (int midiChannel) const noexcept


Loading…
Cancel
Save