bugfixes to make tx_voice work with base synth

This commit is contained in:
Christopher Herb
2023-07-07 16:57:30 +02:00
parent 1bc737ad66
commit 810be3b0b7
5 changed files with 26 additions and 8 deletions

View File

@@ -8,4 +8,8 @@ namespace trnr::lib::util {
static inline double db_2_lin(double db) {
return pow(10, db/20);
}
static inline float midi_to_frequency(int midi_note) {
return 440.0 * powf(2.0, ((float)midi_note - 69.0) / 12.0);
}
}