summaryrefslogtreecommitdiffhomepage
path: root/tuner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuner.cpp')
-rw-r--r--tuner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tuner.cpp b/tuner.cpp
index 9e1f4b5..8276e90 100644
--- a/tuner.cpp
+++ b/tuner.cpp
@@ -6,6 +6,7 @@
#include <algorithm>
#include <cmath>
+#include <iostream>
using namespace RIT;
@@ -49,8 +50,10 @@ RIT::Pitch RIT::Tuner::operator() (const std::vector<std::complex<double>> &v)
int index = maxElement - std::begin(autoCorrelation);
+ //std::cout << "DEBUG" << std::endl;
if (autoCorrelation[index] > autoCorrelation[index - 1] && autoCorrelation[index] > autoCorrelation[index + 1]) {
double f = double(mImpl->m_f_sample) / index;
+ //std::cout << "DEBUG f = " << f << std::endl;
return getPitch(f);
}