shithub: aubio

Download patch

ref: 316092e6f7a3f97800f4bf88f92f8d26627ff742
parent: 277918bb130841b25ecf8f523864c20610ef7f68
author: Paul Brossier <piem@piem.org>
date: Wed Oct 7 19:23:30 EDT 2009

plugins/puredata/aubioonset~.c: update peakpicker prototype

--- a/plugins/puredata/aubioonset~.c
+++ b/plugins/puredata/aubioonset~.c
@@ -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 @@
 			/* 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)