Changeset b07ff1e
- Timestamp:
- Oct 6, 2009, 5:04:18 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:
- a9e27e4
- Parents:
- eb089fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/aubioclass.py
reb089fb rb07ff1e 44 44 self.file = new_aubio_sndfile_ro(filename) 45 45 if self.file == None: 46 raise (ValueError, "failed opening file %s" % filename)46 raise IOError, "failed opening file %s" % filename 47 47 def __del__(self): 48 48 if self.file != None: del_aubio_sndfile(self.file) … … 82 82 self.pp = new_aubio_peakpicker(threshold) 83 83 def do(self,fv): 84 return aubio_peakpick _pimrt(fv(),self.pp)84 return aubio_peakpicker_do(self.pp, fv()) 85 85 def getval(self): 86 return aubio_peakpick _pimrt_getval(self.pp)86 return aubio_peakpicker_get_adaptive_threshold(self.pp) 87 87 def __del__(self): 88 88 del_aubio_peakpicker(self.pp)
Note: See TracChangeset
for help on using the changeset viewer.