From: Paul Brossier Date: Thu, 19 Dec 2013 22:49:15 +0000 (-0500) Subject: aubiopitch~.c: get samplerate from pd X-Git-Tag: 0.3~11 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=9519c88a0440d88f09983b73db8f216e884ff673;p=pd-aubio.git aubiopitch~.c: get samplerate from pd --- diff --git a/aubiopitch~.c b/aubiopitch~.c index 27bbb35..0b3ce9a 100644 --- a/aubiopitch~.c +++ b/aubiopitch~.c @@ -75,9 +75,8 @@ static void *aubiopitch_tilde_new (t_symbol * s) x->bufsize = 2048; x->hopsize = x->bufsize / 2; - //FIXME: get the real samplerate x->o = new_aubio_pitch(s->s_name, x->bufsize, - x->hopsize, 44100. ); + x->hopsize, (uint_t)sys_getsr() ); aubio_pitch_set_tolerance (x->o, 0.7); x->vec = (fvec_t *)new_fvec(x->hopsize); x->pitchvec = (fvec_t *)new_fvec(1);