From b5d9286fdc6e3f5c7af0110003948bf370768d77 Mon Sep 17 00:00:00 2001 From: Vesa Date: Sun, 15 Jun 2014 16:01:12 +0300 Subject: [PATCH] Monstro - additional small fix... --- plugins/monstro/Monstro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/monstro/Monstro.cpp b/plugins/monstro/Monstro.cpp index 96dff60bf..d3ebbf6b2 100644 --- a/plugins/monstro/Monstro.cpp +++ b/plugins/monstro/Monstro.cpp @@ -143,8 +143,7 @@ void MonstroSynth::renderOutput( fpp_t _frames, sampleFrame * _buf ) if( mod##_e1 != 0.0f ) car += m_env1_buf[f] * mod##_e1; \ if( mod##_e2 != 0.0f ) car += m_env2_buf[f] * mod##_e2; \ if( mod##_l1 != 0.0f ) car += m_lfo1_buf[f] * mod##_l1; \ - if( mod##_l2 != 0.0f ) car += m_lfo2_buf[f] * mod##_l2; \ - car = qBound( 0.0f, car, 1.0f ); + if( mod##_l2 != 0.0f ) car += m_lfo2_buf[f] * mod##_l2; #define modulatephs( car, mod ) \ if( mod##_e1 != 0.0f ) car += m_env1_buf[f] * mod##_e1; \ @@ -562,6 +561,7 @@ void MonstroSynth::renderOutput( fpp_t _frames, sampleFrame * _buf ) if( o3s_mod ) { modulateabs( sub, o3s ) + sub = qBound( 0.0f, sub, 1.0f ); } sample_t O3L = linearInterpolate( O3AL, O3BL, sub );