From 37b9df3458b7c399a85861f4fef8ebb5bbfeef2c Mon Sep 17 00:00:00 2001 From: Vesa Date: Sat, 26 Apr 2014 19:56:21 +0300 Subject: [PATCH] Monstro: fix LFO att. on random smooth mode --- plugins/monstro/Monstro.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/monstro/Monstro.cpp b/plugins/monstro/Monstro.cpp index d9c80a3c3..60891e362 100644 --- a/plugins/monstro/Monstro.cpp +++ b/plugins/monstro/Monstro.cpp @@ -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( t ) / m_parent->m_lfo1_att ); } m_lfo1_phase += static_cast( _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( t ) / m_parent->m_lfo2_att ); } m_lfo2_phase += static_cast( _frames ) / lfo2_r; break;