diff options
Diffstat (limited to 'tuner.cpp')
-rw-r--r-- | tuner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |