From ca36fb141d4d62c32c3299e0769cccf4beb77d6c Mon Sep 17 00:00:00 2001 From: Vesa Date: Fri, 2 May 2014 21:37:49 +0300 Subject: [PATCH] oops.. --- 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 ee8bfb6c6..632ed7a45 100644 --- a/plugins/monstro/Monstro.cpp +++ b/plugins/monstro/Monstro.cpp @@ -977,14 +977,14 @@ void MonstroSynth::renderModulators( fpp_t _frames ) inline sample_t MonstroSynth::calcSlope1( sample_t s ) { if( m_parent->m_slope1 == 1.0f ) return s; - if( s == -1.0 || s == 0.0 || s == 1.0 ) return s; + if( s == 0.0f || s == 1.0f ) return s; return fastPow( s, m_parent->m_slope1 ); } inline sample_t MonstroSynth::calcSlope2( sample_t s ) { if( m_parent->m_slope2 == 1.0f ) return s; - if( s == -1.0 || s == 0.0 || s == 1.0 ) return s; + if( s == 0.0f || s == 1.0f ) return s; return fastPow( s, m_parent->m_slope2 ); }