More exp10 stuff

This commit is contained in:
Vesa
2014-11-17 18:55:09 +02:00
parent 01997fe546
commit 78042ed4c5
3 changed files with 4 additions and 4 deletions

View File

@@ -1439,14 +1439,14 @@ void MonstroInstrument::updateSamplerate()
void MonstroInstrument::updateSlope1()
{
const float slope = m_env1Slope.value();
m_slope1 = powf( 10.0f, slope * -1.0f );
m_slope1 = exp10f( slope * -1.0f );
}
void MonstroInstrument::updateSlope2()
{
const float slope = m_env2Slope.value();
m_slope2 = powf( 10.0f, slope * -1.0f );
m_slope2 = exp10f( slope * -1.0f );
}