From c73268a2551636b16dbae7652697361fed4e6e9f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 9 Aug 2005 00:21:08 +0000 Subject: [PATCH] fix isonset declaration --- src/peakpick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/peakpick.c b/src/peakpick.c index 91d4b387..e060c412 100644 --- a/src/peakpick.c +++ b/src/peakpick.c @@ -121,7 +121,7 @@ uint_t aubio_peakpick_pimrt_wt(fvec_t * onset, pickparams_t * p, smpl_t* peakva fvec_t * scratch = (fvec_t *)p->scratch; smpl_t mean = 0., median = 0.; uint_t length = p->win_post + p->win_pre + 1; - uint_t i = 0, j; + uint_t i = 0, j, isonset = 0; /* store onset in onset_keep */ /* shift all elements but last, then write last */ @@ -155,7 +155,7 @@ uint_t aubio_peakpick_pimrt_wt(fvec_t * onset, pickparams_t * p, smpl_t* peakva onset_peek->data[i][2] = onset_proc->data[i][p->win_post] - median - mean * p->threshold; - uint_t isonset = (p->pickerfn)(onset_peek,1); + isonset = (p->pickerfn)(onset_peek,1); //if ( isonset && peakval != NULL ) if ( peakval != NULL ) -- 2.26.2