Changeset b4f5967 for python/aubio/aubioclass.py
- Timestamp:
- Oct 15, 2009, 5:09:34 PM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- cd77c15
- Parents:
- 27fa522
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/aubioclass.py
r27fa522 rb4f5967 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()) … … 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)
Note: See TracChangeset
for help on using the changeset viewer.