Showing the changes to python/aubio (1 of 1 file). Show all
Unified · Split
| @@ -124,9 +124,10 @@ class onsetpick: · 123 unmodified lines | |||
| 124 | 124 | ||
| 125 | class pitchdetection: | 125 | class pitchdetection: |
| 126 | def __init__(self,mode=aubio_pitch_mcomb,bufsize=2048,hopsize=1024, | 126 | def __init__(self,mode=aubio_pitch_mcomb,bufsize=2048,hopsize=1024, |
| 127 | channels=1,samplerate=44100.,omode=aubio_pitchm_freq): | 127 | channels=1,samplerate=44100.,omode=aubio_pitchm_freq,yinthresh=0.1): |
| 128 | self.pitchp = new_aubio_pitchdetection(bufsize,hopsize,channels, | 128 | self.pitchp = new_aubio_pitchdetection(bufsize,hopsize,channels, |
| 129 | samplerate,mode,omode) | 129 | samplerate,mode,omode) |
| 130 | aubio_pitchdetection_set_yinthresh(self.pitchp,yinthresh) | ||
| 130 | #self.filt = filter(srate,"adsgn") | 131 | #self.filt = filter(srate,"adsgn") |
| 131 | def __del__(self): | 132 | def __del__(self): |
| 132 | del_aubio_pitchdetection(self.pitchp) | 133 | del_aubio_pitchdetection(self.pitchp) |