added missing pragma

This commit is contained in:
Christopher Herb
2023-07-11 18:18:13 +02:00
parent 8d6992f17c
commit fb0f03d97b

View File

@@ -1,3 +1,5 @@
#pragma once
#include <math.h>
namespace trnr {
@@ -10,6 +12,6 @@ namespace trnr {
}
static inline float midi_to_frequency(float midi_note) {
return 440.0 * powf(2.0, ((float)midi_note - 69.0) / 12.0);
return 440.0 * powf(2.0, ((float)midi_note - 69.0) / 12.0);
}
}