Hi, I’ve noticed over the years that exp() is still faster than pow().
So in getMidiNoteInHertz I replace:
return frequencyOfA * std::pow (2.0, (noteNumber - 69) / 12.0)
return frequencyOfA * std::exp((noteNumber - 69)* 0.057762265046662153);
Which the constant is log(2^(1/12))
Useful if you’re changing pitch every sample and you need the speed.