bugfixes to make tx_voice work with base synth
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user