added support for pitch wheel modulation

This commit is contained in:
Christopher Herb
2023-07-10 17:04:16 +02:00
parent 2372d93c6f
commit bc213362f0
6 changed files with 69 additions and 42 deletions

View File

@@ -9,7 +9,7 @@ namespace trnr {
return pow(10, db/20);
}
static inline float midi_to_frequency(int midi_note) {
static inline float midi_to_frequency(float midi_note) {
return 440.0 * powf(2.0, ((float)midi_note - 69.0) / 12.0);
}
}