Add another pitch detection algorithm (from Performous) and wrapped everything in c++/cli classes

This commit is contained in:
Flamefire committed 2014-03-25 18:10:41 +01:00
1 parent 64b4f15281
commit 94c7f68688
18 files changed
+1349 -126

No files matched your search

+30
View File
@@ -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