Showing the changes to python (1 of 16 files). Show all
Unified · Split
| @@ -69,8 +69,8 @@ class pvoc: · 68 unmodified lines | ||
| 69 | 69 | |
| 70 | 70 | class onsetdetection: |
| 71 | 71 | """ class for aubio_onsetdetection """ |
| 72 | − def __init__(self,type,buf,chan): | |
| 73 | − self.od = new_aubio_onsetdetection(type,buf,chan) | |
| 72 | + def __init__(self,mode,buf,chan): | |
| 73 | + self.od = new_aubio_onsetdetection(mode,buf,chan) | |
| 74 | 74 | def do(self,tc,tf): |
| 75 | 75 | aubio_onsetdetection_do(self.od,tc(),tf()) |
| 76 | 76 | def __del__(self): |
| @@ -93,8 +93,8 @@ class onsetpick: · 16 unmodified lines | ||
| 93 | 93 | self.myfft = cvec(bufsize,channels) |
| 94 | 94 | self.pv = pvoc(bufsize,hopsize,channels) |
| 95 | 95 | if mode in ['dual'] : |
| 96 | − self.myod = onsetdetection(aubio_onset_hfc,bufsize,channels) | |
| 97 | − self.myod2 = onsetdetection(aubio_onset_mkl,bufsize,channels) | |
| 96 | + self.myod = onsetdetection("hfc",bufsize,channels) | |
| 97 | + self.myod2 = onsetdetection("mkl",bufsize,channels) | |
| 98 | 98 | self.myonset = fvec(1,channels) |
| 99 | 99 | self.myonset2 = fvec(1,channels) |
| 100 | 100 | else: |