This commit is contained in:
Vesa
2014-05-02 21:37:49 +03:00
parent a218a033b5
commit ca36fb141d

View File

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