aubio.i: add del_aubio_onsetdetection, aubioclass.py: replace _free with del_aubio_on...
authorPaul Brossier <piem@piem.org>
Wed, 21 Nov 2007 10:26:57 +0000 (11:26 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 21 Nov 2007 10:26:57 +0000 (11:26 +0100)
python/aubio/aubioclass.py
swig/aubio.i

index b6e5be38787364ff243599f084bd2113d6071941..84ab9ae10ac6b3076aebb916456112cc64b07776 100644 (file)
@@ -73,7 +73,7 @@ class onsetdetection:
     def do(self,tc,tf):
         aubio_onsetdetection(self.od,tc(),tf())
     def __del__(self):
-        aubio_onsetdetection_free(self.od)
+        del_aubio_onsetdetection(self.od)
 
 class peakpick:
     """ class for aubio_peakpicker """
index f9cca14a7bd258a44e46bacfe5a466ede83e21e7..8bc806f28f5435391bc4276462ae85dab1efc254 100644 (file)
@@ -177,6 +177,7 @@ typedef enum {
 } 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 del_aubio_onsetdetection(aubio_onsetdetection_t *o);
 
 /* should these still be exposed ? */
 void aubio_onsetdetection_energy  (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);