From: sgunderson@bigfoot.com <> Date: Tue, 5 Feb 2008 01:53:34 +0000 (+0100) Subject: Move the 0dB level 10dB up -- we are really much more sensitive than the X-Git-Url: https://git.sesse.net/?p=pitch;a=commitdiff_plain;h=c19af552a63c48d16afb8181d526e36e06a3e453;hp=afe882f57eb4991f01b20c4ecba98b2cc07594a1 Move the 0dB level 10dB up -- we are really much more sensitive than the previous level. --- 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); }