ref: dc7f2cc1aa7189d5e4ccab4803282a162ead6afc
parent: f84cea78af219f4de0fc7baa9eec82073263237e
author: Paul Brossier <piem@piem.org>
date: Mon Apr 8 06:24:13 EDT 2013
src/pitch/pitchyinfft.c: use fvec_quadratic_peak_pos
--- a/src/pitch/pitchyinfft.c
+++ b/src/pitch/pitchyinfft.c
@@ -140,17 +140,17 @@
//return;
// 3 point quadratic interpolation
- //return fvec_quadint_min(yin,tau,1);
+ //return fvec_quadratic_peak_pos (yin,tau,1);
/* additional check for (unlikely) octave doubling in higher frequencies */
if (tau > 35) {
- output->data[0] = fvec_quadint (yin, tau);
+ output->data[0] = fvec_quadratic_peak_pos (yin, tau);
} else {
/* should compare the minimum value of each interpolated peaks */
halfperiod = FLOOR (tau / 2 + .5);
if (yin->data[halfperiod] < p->tol)
- output->data[0] = fvec_quadint (yin, halfperiod);
+ output->data[0] = fvec_quadratic_peak_pos (yin, halfperiod);
else
- output->data[0] = fvec_quadint (yin, tau);
+ output->data[0] = fvec_quadratic_peak_pos (yin, tau);
}
} else {
output->data[0] = 0.;