From 5de7ba03f95b5528a4cc71333fc4eb7df7fa917d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 28 Sep 2016 15:06:24 +0200 Subject: [PATCH] src/aubioonset~.c: always get threshold with aubio_onset_get_threshold --- src/aubioonset~.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0