]> git.sesse.net Git - pitch/commitdiff
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 69888642310beab15ed3ac47a198bbd73943b703..3bf907a66be76ecb59e535f5919f1f4c240754ca 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);
 }