From 9519c88a0440d88f09983b73db8f216e884ff673 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 19 Dec 2013 17:49:15 -0500 Subject: [PATCH] aubiopitch~.c: get samplerate from pd --- aubiopitch~.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.11.0