From 84893a57f9f508941b50a1d381239c5a72f1f48f Mon Sep 17 00:00:00 2001 From: paulfd Date: Tue, 17 Sep 2019 17:57:19 +0200 Subject: [PATCH] Revert part of the sustain changes, as it made really no sense :) --- sfizz/Voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfizz/Voice.cpp b/sfizz/Voice.cpp index ee05e07e..f04f8ae1 100644 --- a/sfizz/Voice.cpp +++ b/sfizz/Voice.cpp @@ -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); } }