Rewrite a division as multiplication
This commit is contained in:
parent
f80decf4c0
commit
4065d406f7
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ namespace Random {
|
|||
*/
|
||||
inline float midiNoteFrequency(const int noteNumber)
|
||||
{
|
||||
return 440.0f * std::pow(2.0f, (noteNumber - 69) / 12.0f);
|
||||
return 440.0f * std::pow(2.0f, (noteNumber - 69) * (1.0f / 12.0f));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue