src/aubiopitch~.c: refix aubiopitch_tilde_del
[pd-aubio.git] / src / aubioonset~.c
index 8137ddc..357b4b6 100644 (file)
@@ -65,11 +65,8 @@ aubioonset_tilde_dsp (t_aubioonset_tilde * x, t_signal ** sp)
 static void
 aubioonset_tilde_debug (t_aubioonset_tilde * x)
 {
-  post (aubioonset_version);
-  post ("aubioonset~ method:\t%s", x->method);
-  post ("aubioonset~ threshold:\t%f", x->threshold);
-  post ("aubioonset~ bufsize:\t%d", x->bufsize);
-  post ("aubioonset~ hopsize:\t%d", x->hopsize);
+  post ("%s method: %s threshold: %.3f bufsize: %d hopsize: %d",
+      aubioonset_version, x->method, x->threshold, x->bufsize, x->hopsize);
 }
 
 static void *
@@ -118,6 +115,7 @@ aubioonset_tilde_new (t_symbol *s, int argc, t_atom *argv)
   if (x->threshold != -1) {
     aubio_onset_set_threshold(x->o, x->threshold);
   }
+  x->threshold = aubio_onset_get_threshold(x->o);
 
   x->in = (fvec_t *) new_fvec (x->hopsize);
   x->out = (fvec_t *) new_fvec (1);