ref: 1397c6e76048e17d814e174da71cfdedeffcaa6a
parent: b31f26206b5f006b15b51aaddf5209db60560269
author: Paul Brossier <piem@altern.org>
date: Mon Jun 13 19:07:36 EDT 2005
add Kullback Liebler onset detection function and its modified version
--- a/swig/aubio.i
+++ b/swig/aubio.i
@@ -138,7 +138,7 @@
extern void del_aubio_resampler(aubio_resampler_t *s);
/* onset detection */
-typedef enum { energy, specdiff, hfc, complexdomain, phase } aubio_onsetdetection_type;
+typedef enum { energy, specdiff, hfc, complexdomain, phase, kl, mkl } aubio_onsetdetection_type;
aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels);
void aubio_onsetdetection(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
void aubio_onsetdetection_free(aubio_onsetdetection_t *o);