fix fine tuningi for yin
authorPaul Brossier <piem@altern.org>
Tue, 21 Mar 2006 22:27:13 +0000 (22:27 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 21 Mar 2006 22:27:13 +0000 (22:27 +0000)
fix fine tuningi for yin

src/pitchyin.c

index 76505f2980eb1d64853e2294ae68365f05a9d44c..02e507be41ab20ee2a67e72cf87dfdf28a117011 100644 (file)
@@ -106,7 +106,7 @@ smpl_t aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t * yin, smpl_t tol){
                period = tau-3;
                if(tau > 4 && (yin->data[c][period] < tol) && 
                                 (yin->data[c][period] < yin->data[c][period+1])) {
-                       return vec_quadint_min(yin,period,1)-1;
+                       return vec_quadint_min(yin,period,1);
                }
         }
        return 0;