From 33bf50067e4e1e21542db9f0c540087181c738b0 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 30 Nov 2004 22:37:55 +0000 Subject: [PATCH] fixed pitchyin --- src/pitchyin.c | 6 +++--- src/pitchyin.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pitchyin.c b/src/pitchyin.c index 61f425d3..bbfeb2b2 100644 --- a/src/pitchyin.c +++ b/src/pitchyin.c @@ -88,9 +88,9 @@ uint_t aubio_pitchyin_getpitch(fvec_t * yin) { /* all the above in one */ -void aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t * yin){ - uint_t c,j,tau; - smpl_t tmp, tmp2; +uint_t aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t * yin){ + uint_t c,j,tau = 0; + smpl_t tmp = 0, tmp2; for (c=0;cchannels;c++) { for (tau=0;taulength;tau++) diff --git a/src/pitchyin.h b/src/pitchyin.h index 0bfc3649..2d2af505 100644 --- a/src/pitchyin.h +++ b/src/pitchyin.h @@ -38,6 +38,8 @@ void aubio_pitchyin_getcum(fvec_t * yin); uint_t aubio_pitchyin_getpitch(fvec_t *yin); +uint_t aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t *yin); + #ifdef __cplusplus } #endif -- 2.11.0