src/pitch/pitchmcomb.c: use fvec_quadratic_peak_pos
authorPaul Brossier <piem@piem.org>
Mon, 8 Apr 2013 15:20:19 +0000 (10:20 -0500)
committerPaul Brossier <piem@piem.org>
Mon, 8 Apr 2013 15:20:19 +0000 (10:20 -0500)
src/pitch/pitchmcomb.c

index 0860c55d260ccb0b542d93bd14b1d1741c40c673..3425aa0b0676a88ffa12b9c2ba763624a9479352 100644 (file)
@@ -293,7 +293,7 @@ aubio_pitchmcomb_quadpick (aubio_spectralpeak_t * spectral_peaks, fvec_t * X)
     if (ispeak) {
       count += ispeak;
       spectral_peaks[count - 1].bin = j;
-      spectral_peaks[count - 1].ebin = fvec_quadint (X, j) - 1.;
+      spectral_peaks[count - 1].ebin = fvec_quadratic_peak_pos (X, j);
     }
   }
   return count;