src/aubioonset~.c: always get threshold with aubio_onset_get_threshold
[pd-aubio.git] / src / aubioonset~.c
index 8137ddc..1ea75e1 100644 (file)
@@ -118,6 +118,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);