added db conversions and new menu into project panel

This commit is contained in:
itsmattkc
2019-07-21 19:04:32 -07:00
parent f8830beac7
commit 1d25fbd9e7
6 changed files with 50 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#include "decibel.h"
decibel::decibel()
{
}
+18
View File
@@ -0,0 +1,18 @@
#ifndef DECIBEL_H
#define DECIBEL_H
/**
* @brief Converts an amplitude into a value in decibels
*
* Converts a 0.0-1.0 amplitude into an infinity-0.0 decibel value
*/
double amplitude_to_db(double amplitude);
/**
* @brief Converts decibels into an amplitude value
*
* Converts an infinity-0.0 decibel value into a 0.0-1.0 amplitude
*/
double db_to_amplitude(double db);
#endif // DECIBEL_H