plugins/puredata/aubioonset~.c: update peakpicker
authorPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 03:50:27 +0000 (05:50 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 03:50:27 +0000 (05:50 +0200)
plugins/puredata/aubioonset~.c

index e989a921b6cec3080a4bb3bdcb4a1688b9472e43..2906ce30bcd53b0d1f937a4d73bf714bb66a3b3e 100644 (file)
@@ -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_peakpicker_do (x->onset,x->parms);
+                       isonset = aubio_peakpicker_do (x->parms, x->onset);
                        if (isonset) {
                                /* test for silence */
                                if (aubio_silence_detection(x->vec, x->threshold2)==1)