From c4aab24ad9e720bd9e89262f91c7502babcb5887 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 5 Jul 2020 18:46:23 -0400 Subject: [PATCH] LFO Phase Deactivation Freerun and Random (#2293) In Freerun and Random mode only reset phase at attack not in every cycle, meaning the randomness stays and we don't end up using the phase slider Closes #2289 --- src/common/dsp/LfoModulationSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dsp/LfoModulationSource.cpp b/src/common/dsp/LfoModulationSource.cpp index 0ace1e7b321..d552b0025a9 100644 --- a/src/common/dsp/LfoModulationSource.cpp +++ b/src/common/dsp/LfoModulationSource.cpp @@ -269,7 +269,7 @@ void LfoModulationSource::release() void LfoModulationSource::process_block() { - if( (! phaseInitialized) || lfo->rate.deactivated ) + if( (! phaseInitialized) || ( lfo->trigmode.val.i == lm_keytrigger && lfo->rate.deactivated ) ) { initPhaseFromStartPhase(); }