add quadratic interpolation to yin
authorPaul Brossier <piem@altern.org>
Thu, 20 Apr 2006 12:48:25 +0000 (12:48 +0000)
committerPaul Brossier <piem@altern.org>
Thu, 20 Apr 2006 12:48:25 +0000 (12:48 +0000)
add quadratic interpolation to yin

src/pitchyin.c

index 02e507be41ab20ee2a67e72cf87dfdf28a117011..eb6dec77a62bd6939de5279431ad652ceb7eeccd 100644 (file)
@@ -109,6 +109,7 @@ smpl_t aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t * yin, smpl_t tol){
                        return vec_quadint_min(yin,period,1);
                }
         }
-       return 0;
+       return vec_quadint_min(yin,vec_min_elem(yin),1);
+       //return 0;
 }