ref: 33bf50067e4e1e21542db9f0c540087181c738b0
parent: 09b082dcc7142901aa0b6690ddfe8b4aef572e9a
author: Paul Brossier <piem@altern.org>
date: Tue Nov 30 17:37:55 EST 2004
fixed pitchyin
--- a/src/pitchyin.c
+++ b/src/pitchyin.c
@@ -88,9 +88,9 @@
/* 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;c<input->channels;c++)
{
for (tau=0;tau<yin->length;tau++)
--- a/src/pitchyin.h
+++ b/src/pitchyin.h
@@ -38,6 +38,8 @@
uint_t aubio_pitchyin_getpitch(fvec_t *yin);
+uint_t aubio_pitchyin_getpitchfast(fvec_t * input, fvec_t *yin);
+
#ifdef __cplusplus
}
#endif