ref: 4dd235fea122306e19988ca283d205fcb2e2fcea
parent: 4afa096d693350d8d442344c233e4621542fdbc6
author: Paul Brossier <[email protected]>
date: Thu Mar 16 10:57:24 EST 2006
aubioclass: yinthres support aubioclass: yinthres support
--- a/python/aubio/aubioclass.py
+++ b/python/aubio/aubioclass.py
@@ -124,9 +124,10 @@
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)