From: Paul Brossier Date: Thu, 16 Mar 2006 15:57:24 +0000 (+0000) Subject: aubioclass: yinthres support X-Git-Tag: bzr2git~728 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4dd235fea122306e19988ca283d205fcb2e2fcea;p=aubio.git aubioclass: yinthres support aubioclass: yinthres support --- diff --git a/python/aubio/aubioclass.py b/python/aubio/aubioclass.py index 20c161c0..6ce3b65b 100644 --- a/python/aubio/aubioclass.py +++ b/python/aubio/aubioclass.py @@ -124,9 +124,10 @@ class onsetpick: class pitchdetection: def __init__(self,mode=aubio_pitch_mcomb,bufsize=2048,hopsize=1024, - channels=1,samplerate=44100.,omode=aubio_pitchm_freq): + channels=1,samplerate=44100.,omode=aubio_pitchm_freq,yinthresh=0.1): self.pitchp = new_aubio_pitchdetection(bufsize,hopsize,channels, samplerate,mode,omode) + aubio_pitchdetection_set_yinthresh(self.pitchp,yinthresh) #self.filt = filter(srate,"adsgn") def __del__(self): del_aubio_pitchdetection(self.pitchp)