Changed the off-group logic
and some cosmetics
This commit is contained in:
parent
126e4674db
commit
146253c3b7
1 changed files with 2 additions and 2 deletions
|
|
@ -491,10 +491,10 @@ bool sfz::Voice::checkOffGroup(int delay, uint32_t group) noexcept
|
|||
if (region == nullptr)
|
||||
return false;
|
||||
|
||||
if (delay == this->triggerDelay)
|
||||
if (delay <= this->triggerDelay)
|
||||
return false;
|
||||
|
||||
if (triggerType == TriggerType::NoteOn && region->offBy && *region->offBy == group) {
|
||||
if (triggerType == TriggerType::NoteOn && region->offBy == group) {
|
||||
release(delay, region->offMode == SfzOffMode::fast);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue