]> git.sesse.net Git - pitch/blobdiff - pitchdetector.cpp
Fix missing #include of string.h.
[pitch] / 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);
 }