plugins/puredata/aubioonset~.c: update peakpicker prototype
authorPaul Brossier <piem@piem.org>
Wed, 7 Oct 2009 21:23:30 +0000 (23:23 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 7 Oct 2009 21:23:30 +0000 (23:23 +0200)
plugins/puredata/aubioonset~.c

index 371cea2265cc135a9d1c3af042baed34f6c7b174..e989a921b6cec3080a4bb3bdcb4a1688b9472e43 100644 (file)
@@ -10,7 +10,7 @@
 #include <m_pd.h>
 #include <aubio.h>
 
-char aubioonset_version[] = "aubioonset~ version 0.1";
+char aubioonset_version[] = "aubioonset~ version 0.2";
 
 static t_class *aubioonset_tilde_class;
 
@@ -47,7 +47,7 @@ static t_int *aubioonset_tilde_perform(t_int *w)
                        /* block loop */
                        aubio_pvoc_do (x->pv,x->vec, x->fftgrain);
                        aubio_onsetdetection_do (x->o,x->fftgrain, x->onset);
-                       isonset = aubio_peakpick_pimrt(x->onset,x->parms);
+                       isonset = aubio_peakpicker_do (x->onset,x->parms);
                        if (isonset) {
                                /* test for silence */
                                if (aubio_silence_detection(x->vec, x->threshold2)==1)