From: Paul Brossier Date: Wed, 21 Sep 2016 13:55:46 +0000 (+0200) Subject: src/aubioshift~.c: set initial transposition X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=546d24e0269e52880afd223f1cc07189ad8a9729;p=pd-aubio.git src/aubioshift~.c: set initial transposition --- diff --git a/src/aubioshift~.c b/src/aubioshift~.c index 59030d4..29bd67b 100644 --- a/src/aubioshift~.c +++ b/src/aubioshift~.c @@ -77,8 +77,8 @@ static void *aubioshift_tilde_new (t_floatarg f, t_symbol *s) x->input = (fvec_t *)new_fvec(x->hopsize); x->output = (fvec_t *)new_fvec(x->hopsize); - x->pitchshift = (aubio_pitchshift_t *)new_aubio_pitchshift(s->s_name, 1., - x->hopsize, (uint_t)sys_getsr()); + x->pitchshift = (aubio_pitchshift_t *)new_aubio_pitchshift(s->s_name, + x->transpose, x->hopsize, (uint_t)sys_getsr()); if (x->pitchshift == NULL) return NULL; aubio_pitchshift_set_transpose(x->pitchshift, x->transpose);