shithub: aubio

Download patch

ref: f84cea78af219f4de0fc7baa9eec82073263237e
parent: 69d642a0a5e6dd766c22bc7fac5ed35e3e3a4549
author: Paul Brossier <piem@piem.org>
date: Mon Apr 8 06:20:19 EDT 2013

src/pitch/pitchmcomb.c: use fvec_quadratic_peak_pos

--- a/src/pitch/pitchmcomb.c
+++ b/src/pitch/pitchmcomb.c
@@ -293,7 +293,7 @@
     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;