More exp10 stuff
This commit is contained in:
@@ -209,7 +209,7 @@ static inline float dbvToAmp( float dbv )
|
||||
{
|
||||
return isinff( dbv )
|
||||
? 0.0f
|
||||
: powf( 10.0f, dbv * 0.05f );
|
||||
: exp10f( dbv * 0.05f );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -734,7 +734,7 @@ void knob::enterValue()
|
||||
}
|
||||
else
|
||||
{
|
||||
new_val = pow( 10.0, ( new_val / 20.0 ) ) * 100.0;
|
||||
new_val = dbvToAmp( new_val ) * 100.0;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user