Revert part of the sustain changes, as it made really no sense :)

This commit is contained in:
paulfd 2019-09-17 17:57:19 +02:00
parent 90f61b24fb
commit 84893a57f9

View file

@ -153,7 +153,7 @@ void sfz::Voice::registerNoteOff(int delay, int channel, int noteNumber, uint8_t
if (region->loopMode == SfzLoopMode::one_shot)
return;
if (region->checkSustain && ccState[config::sustainCC] < config::halfCCThreshold)
if (!region->checkSustain || ccState[config::sustainCC] < config::halfCCThreshold)
release(delay);
}
}