Move the 0dB level 10dB up -- we are really much more sensitive than the
authorsgunderson@bigfoot.com <>
Tue, 5 Feb 2008 01:53:34 +0000 (02:53 +0100)
committersgunderson@bigfoot.com <>
Tue, 5 Feb 2008 01:53:34 +0000 (02:53 +0100)
previous level.

pitchdetector.cpp

index 6988864..3bf907a 100644 (file)
@@ -252,7 +252,7 @@ std::pair<double, double> 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);
 }