From: Paul Brossier Date: Wed, 28 Sep 2016 13:06:24 +0000 (+0200) Subject: src/aubioonset~.c: always get threshold with aubio_onset_get_threshold X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5de7ba03f95b5528a4cc71333fc4eb7df7fa917d;p=pd-aubio.git src/aubioonset~.c: always get threshold with aubio_onset_get_threshold --- diff --git a/src/aubioonset~.c b/src/aubioonset~.c index 8137ddc..1ea75e1 100644 --- a/src/aubioonset~.c +++ b/src/aubioonset~.c @@ -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);