Changeset 71f98f1 for python/aubio
- Timestamp:
- May 23, 2005, 12:40:33 AM (20 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:
- 296c33a
- Parents:
- 2cdae81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/aubioclass.py
r2cdae81 r71f98f1 55 55 56 56 class onsetdetection: 57 """ class for aubio_onsetdetection """ 57 58 def __init__(self,type,buf,chan): 58 59 self.od = new_aubio_onsetdetection(type,buf,chan) … … 63 64 64 65 class peakpick: 66 """ class for aubio_peakpicker """ 65 67 def __init__(self,threshold=0.1): 66 68 self.pp = new_aubio_peakpicker(threshold) … … 71 73 72 74 class onsetpick: 75 """ superclass for aubio_pvoc + aubio_onsetdetection + aubio_peakpicker """ 73 76 def __init__(self,bufsize,hopsize,channels,myvec,threshold,mode='dual'): 74 77 self.myfft = cvec(bufsize,channels) … … 152 155 return mylist 153 156 154 155 157 def getonsets(filein,threshold=0.2,silence=-70.,bufsize=1024,hopsize=512,mode='dual'): 156 158 frameread = 0 … … 185 187 return mylist 186 188 187 188 189 class pitchpick: 189 190 def __init__(self,bufsize,hopsize,channels,myvec,srate):
Note: See TracChangeset
for help on using the changeset viewer.