From c19af552a63c48d16afb8181d526e36e06a3e453 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Tue, 5 Feb 2008 02:53:34 +0100 Subject: [PATCH 1/1] Move the 0dB level 10dB up -- we are really much more sensitive than the previous level. --- pitchdetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitchdetector.cpp b/pitchdetector.cpp index 6988864..3bf907a 100644 --- a/pitchdetector.cpp +++ b/pitchdetector.cpp @@ -252,7 +252,7 @@ std::pair PitchDetector::interpolate_peak(double ym1, double y0, double c = y0; double xmax = (ym1 - y1) / (2.0 * (y1 + ym1 - 2.0 * y0)); - double ymax = 20.0 * (a * xmax * xmax + b * xmax + c) - 80.0; + double ymax = 20.0 * (a * xmax * xmax + b * xmax + c) - 70.0; return std::make_pair(xmax, ymax); } -- 2.39.2