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 ); }