Add another pitch detection algorithm (from Performous) and wrapped everything in c++/cli classes
This commit is contained in:
1 parent
64b4f15281
commit
94c7f68688
18 files changed
+1349
-126
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#include "compatibility.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if(_MSC_VER < 1800) // < VS2013
|
||||
namespace std
|
||||
{
|
||||
float round(float d)
|
||||
{
|
||||
return static_cast<float>(floor(d + 0.5));
|
||||
}
|
||||
|
||||
double round(double d)
|
||||
{
|
||||
return floor(d + 0.5);
|
||||
}
|
||||
|
||||
long double round(long double d)
|
||||
{
|
||||
return floor(d + 0.5);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
double remainder(double num, double denom){
|
||||
return num - std::round(num/denom) * denom;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user