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

Fix sustain state not updating on global channel

This commit is contained in:
Aga Janowicz 2020-03-26 16:57:20 +00:00 committed by ed
parent 6a18c9e153
commit 8f069624d7

View file

@ -578,11 +578,9 @@ void MPEInstrument::handleSustainOrSostenuto (int midiChannel, bool isDown, bool
if (! isSostenuto)
{
if (legacyMode.isEnabled)
{
isMemberChannelSustained[midiChannel - 1] = isDown;
}
else
isMemberChannelSustained[midiChannel - 1] = isDown;
if (! legacyMode.isEnabled)
{
if (zone.isLowerZone())
for (auto i = zone.getFirstMemberChannel(); i <= zone.getLastMemberChannel(); ++i)