Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -124,9 +124,10 @@ class onsetpick: · 123 unmodified lines | ||
| 124 | 124 | |
| 125 | 125 | class pitchdetection: |
| 126 | 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 | 128 | self.pitchp = new_aubio_pitchdetection(bufsize,hopsize,channels, |
| 129 | 129 | samplerate,mode,omode) |
| 130 | + aubio_pitchdetection_set_yinthresh(self.pitchp,yinthresh) | |
| 130 | 131 | #self.filt = filter(srate,"adsgn") |
| 131 | 132 | def __del__(self): |
| 132 | 133 | del_aubio_pitchdetection(self.pitchp) |