Monstro: fix LFO att. on random smooth mode

This commit is contained in:
Vesa
2014-04-26 19:56:21 +03:00
parent e638bb8ae1
commit 37b9df3458

View File

@@ -693,6 +693,7 @@ void MonstroSynth::renderModulators( fpp_t _frames )
m_lfo1_s = Oscillator::noiseSample( 0.0f );
}
m_lfo1_buf[f] = cosinusInterpolate( m_lfo1_last, m_lfo1_s, p );
if( t < m_parent->m_lfo1_att ) m_lfo1_buf[f] *= ( static_cast<sample_t>( t ) / m_parent->m_lfo1_att );
}
m_lfo1_phase += static_cast<float>( _frames ) / lfo1_r;
break;
@@ -825,6 +826,7 @@ void MonstroSynth::renderModulators( fpp_t _frames )
m_lfo2_s = Oscillator::noiseSample( 0.0f );
}
m_lfo2_buf[f] = cosinusInterpolate( m_lfo2_last, m_lfo2_s, p );
if( t < m_parent->m_lfo2_att ) m_lfo2_buf[f] *= ( static_cast<sample_t>( t ) / m_parent->m_lfo2_att );
}
m_lfo2_phase += static_cast<float>( _frames ) / lfo2_r;
break;