Fix releasing notes not muted by off groups

This commit is contained in:
Elmo 2021-08-17 16:57:33 +03:00
parent 06cf476fb3
commit 3aae318e82

View file

@ -1666,7 +1666,7 @@ bool Voice::checkOffGroup(const Region* other, int delay, int noteNumber) noexce
if (region == nullptr || other == nullptr)
return false;
if (impl.released())
if (impl.released() && region->offMode == OffMode::normal)
return false;
if ((impl.triggerEvent_.type == TriggerEventType::NoteOn