From 4dd235fea122306e19988ca283d205fcb2e2fcea Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 16 Mar 2006 15:57:24 +0000 Subject: [PATCH] aubioclass: yinthres support aubioclass: yinthres support --- python/aubio/aubioclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.26.2