Changeset b07ff1e


Ignore:
Timestamp:
Oct 6, 2009, 5:04:18 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
a9e27e4
Parents:
eb089fb
Message:

python/aubio/aubioclass.py: update peakpicker class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    reb089fb rb07ff1e  
    4444            self.file = new_aubio_sndfile_ro(filename)
    4545        if self.file == None:
    46             raise(ValueError, "failed opening file %s" % filename)
     46            raise IOError, "failed opening file %s" % filename
    4747    def __del__(self):
    4848        if self.file != None: del_aubio_sndfile(self.file)
     
    8282        self.pp = new_aubio_peakpicker(threshold)
    8383    def do(self,fv):
    84         return aubio_peakpick_pimrt(fv(),self.pp)
     84        return aubio_peakpicker_do(self.pp, fv())
    8585    def getval(self):
    86         return aubio_peakpick_pimrt_getval(self.pp)
     86        return aubio_peakpicker_get_adaptive_threshold(self.pp)
    8787    def __del__(self):
    8888        del_aubio_peakpicker(self.pp)
Note: See TracChangeset for help on using the changeset viewer.