Skip to content

Commit

Permalink
LFO Phase Deactivation Freerun and Random (surge-synthesizer#2293)
Browse files Browse the repository at this point in the history
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 surge-synthesizer#2289
  • Loading branch information
baconpaul authored Jul 5, 2020
1 parent 4ff2e06 commit c4aab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/dsp/LfoModulationSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c4aab24

Please sign in to comment.