From 5bbc247ade4f6fc705269e3b0a8a8cae13eeef12 Mon Sep 17 00:00:00 2001 From: Roland Stigge Date: Mon, 18 Feb 2019 22:26:31 +0100 Subject: Bugfix --- tuner.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tuner.cpp') diff --git a/tuner.cpp b/tuner.cpp index 9e1f4b5..8276e90 100644 --- a/tuner.cpp +++ b/tuner.cpp @@ -6,6 +6,7 @@ #include #include +#include using namespace RIT; @@ -49,8 +50,10 @@ RIT::Pitch RIT::Tuner::operator() (const std::vector> &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); } -- cgit v1.2.3