commit 190432c2651ef46ff6287ec5bf5cc5644f657295
parent 98e1782339aae0e21f650d70a5eb98048dc46cc0
Author: Matt Demanett <matt@demanett.net>
Date: Mon, 1 Jan 2018 16:30:30 -0500
Envelopes: loop if trigger is high (and not in loop mode anyway; only in trigger, not gate, mode for DADSRHs).
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/DADSRHCore.cpp b/src/DADSRHCore.cpp
@@ -186,7 +186,7 @@ void DADSRHCore::step() {
if (_envelope <= 0.001) {
complete = true;
_envelope = 0.0;
- if (_modeParam.value < 0.5 && _loopParam.value <= 0.5) {
+ if (_modeParam.value < 0.5 && (_loopParam.value <= 0.5 || _trigger.isHigh())) {
_stage = DELAY_STAGE;
_holdProgress = _stageProgress = 0.0;
}
diff --git a/src/ShaperCore.cpp b/src/ShaperCore.cpp
@@ -45,7 +45,7 @@ void ShaperCore::step() {
case OFF_STAGE: {
if (stepStage(_offParam, _offInput, slow)) {
complete = true;
- if (_loopParam.value <= 0.0) {
+ if (_loopParam.value <= 0.0 || _trigger.isHigh()) {
_stage = ATTACK_STAGE;
_stageProgress = 0.0;
}