From b36f90554784949570ca21c19b6249353db3399c Mon Sep 17 00:00:00 2001 From: Vesa Date: Thu, 24 Apr 2014 23:25:12 +0300 Subject: [PATCH] Monstro: Explicitly initialize LFO values with random, so that smooth random reliably starts from a random value --- plugins/monstro/Monstro.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/monstro/Monstro.cpp b/plugins/monstro/Monstro.cpp index f9260e03a..d9c80a3c3 100644 --- a/plugins/monstro/Monstro.cpp +++ b/plugins/monstro/Monstro.cpp @@ -89,6 +89,9 @@ MonstroSynth::MonstroSynth( MonstroInstrument * _i, NotePlayHandle * _nph, m_lfo1_phase = 0.0f; m_lfo2_phase = 0.0f; + + m_lfo1_s = Oscillator::noiseSample( 0.0f ); + m_lfo2_s = Oscillator::noiseSample( 0.0f ); m_osc1l_last = 0.0f; m_osc1r_last = 0.0f;