🩹 const_float_t => float

This commit is contained in:
Scott Lahteine 2023-04-17 18:10:07 -05:00
parent 4d8ab1c401
commit e6308f5d02

View file

@ -3198,9 +3198,9 @@ void Stepper::init() {
else if (zeta >= 1.0f) factor2 = 0.0f; else if (zeta >= 1.0f) factor2 = 0.0f;
else { else {
factor2 = 64.44056192 + -99.02008832 * zeta; factor2 = 64.44056192 + -99.02008832 * zeta;
const_float_t zeta2 = zeta * zeta; const float zeta2 = sq(zeta);
factor2 += -7.58095488 * zeta2; factor2 += -7.58095488 * zeta2;
const_float_t zeta3 = zeta2 * zeta; const float zeta3 = zeta2 * zeta;
factor2 += 43.073216 * zeta3; factor2 += 43.073216 * zeta3;
factor2 = floor(factor2); factor2 = floor(factor2);
} }