From: Steinar H. Gunderson Date: Sun, 2 Apr 2006 14:04:48 +0000 (+0000) Subject: Reintroduce the overtone debug messages (commented out, though). X-Git-Url: https://git.sesse.net/?p=pitch;a=commitdiff_plain;h=aa161533b7b8e32cafefce9f71776c5602148110 Reintroduce the overtone debug messages (commented out, though). --- diff --git a/pitch.cpp b/pitch.cpp index 13efaf8..1c272f1 100644 --- a/pitch.cpp +++ b/pitch.cpp @@ -248,6 +248,8 @@ std::pair find_peak(double *in, unsigned num_samples) std::pair adjust_for_overtones(std::pair base, double *in, unsigned num_samples) { double mu = base.first, var = 1.0 / (base.second * base.second); + + //printf("Base at %.2f (amp=%5.2fdB)\n", base.first, base.second); for (unsigned i = 2; i < 10; ++i) { unsigned middle = unsigned(floor(freq_to_bin(base.first, num_samples) * i + 0.5));