initial commit

This commit is contained in:
Christopher Herb
2023-07-07 10:07:53 +02:00
commit ad8c3fbe74
18 changed files with 3554 additions and 0 deletions

11
util/audio_math.h Normal file
View File

@@ -0,0 +1,11 @@
#include <math.h>
namespace trnr::lib::util {
static inline double lin_2_db(double lin) {
return 20 * log(lin);
}
static inline double db_2_lin(double db) {
return pow(10, db/20);
}
}