shithub: aubio

Download patch

ref: af4aeca9190f4ab38add617c547637c88d3e76b7
parent: 0bbdbfd57c05a73f4fd1e6f1250bcefcac06b271
author: Paul Brossier <piem@piem.org>
date: Wed Nov 4 20:22:39 EST 2009

src/onset/onset.c: add missing hop_size

--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -39,6 +39,7 @@
   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 @@
   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);