Monstro: Explicitly initialize LFO values with random, so that smooth random reliably starts from a random value

This commit is contained in:
Vesa
2014-04-24 23:25:12 +03:00
parent 060063f5a8
commit b36f905547

View File

@@ -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;