From: Paul Brossier Date: Thu, 5 Nov 2009 00:22:39 +0000 (+0100) Subject: src/onset/onset.c: add missing hop_size X-Git-Tag: 0.4.0-beta1~568 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=af4aeca9190f4ab38add617c547637c88d3e76b7;p=aubio.git src/onset/onset.c: add missing hop_size --- diff --git a/src/onset/onset.c b/src/onset/onset.c index 37453ae4..e9c0a4cc 100644 --- a/src/onset/onset.c +++ b/src/onset/onset.c @@ -39,6 +39,7 @@ struct _aubio_onset_t { uint_t minioi; /**< minimum inter onset interval */ fvec_t * wasonset; /**< number of frames since last onset */ uint_t samplerate; /**< sampling rate of the input signal */ + uint_t hop_size; /**< number of samples between two runs */ }; /* execute onset detection function on iput buffer */ @@ -105,6 +106,7 @@ aubio_onset_t * new_aubio_onset (char_t * onset_mode, o->silence = -70; o->wasonset = new_fvec(1, channels); o->samplerate = samplerate; + o->hop_size = hop_size; o->pv = new_aubio_pvoc(buf_size, hop_size, channels); o->pp = new_aubio_peakpicker(channels); aubio_peakpicker_set_threshold (o->pp, o->threshold);