History

python/aubio/aubioclass.py: update peakpicker class

Paul Brossier committed 17 years ago

Commit b07ff1e1 parent eb089fb1 file · +3 −3Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubio/aubioclass.py+3−3
@@ -43,7 +43,7 @@ class sndfile: · 42 unmodified lines
43 else:43 else:
44 self.file = new_aubio_sndfile_ro(filename)44 self.file = new_aubio_sndfile_ro(filename)
45 if self.file == None:45 if self.file == None:
46 raise(ValueError, "failed opening file %s" % filename)46 raise IOError, "failed opening file %s" % filename
47 def __del__(self):47 def __del__(self):
48 if self.file != None: del_aubio_sndfile(self.file)48 if self.file != None: del_aubio_sndfile(self.file)
49 def info(self):49 def info(self):
@@ -81,9 +81,9 @@ class peakpick: · 31 unmodified lines
81 def __init__(self,threshold=0.1):81 def __init__(self,threshold=0.1):
82 self.pp = new_aubio_peakpicker(threshold)82 self.pp = new_aubio_peakpicker(threshold)
83 def do(self,fv):83 def do(self,fv):
84 return aubio_peakpick_pimrt(fv(),self.pp)84 return aubio_peakpicker_do(self.pp, fv())
85 def getval(self):85 def getval(self):
86 return aubio_peakpick_pimrt_getval(self.pp)86 return aubio_peakpicker_get_adaptive_threshold(self.pp)
87 def __del__(self):87 def __del__(self):
88 del_aubio_peakpicker(self.pp)88 del_aubio_peakpicker(self.pp)
89 89

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t