History

adds peakpick_pimrt_getval and beattracking functions adds peakpick_pimrt_getval and beattracking functions

Paul Brossier committed 20 years ago

Commit 27f2c081 parent de92b1c1 file · +12 −0Browse files

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

Unified · Split

python/aubio/aubioclass.py+12−0
@@ -70,6 +70,8 @@ class peakpick: · 69 unmodified lines
70 self.pp = new_aubio_peakpicker(threshold)70 self.pp = new_aubio_peakpicker(threshold)
71 def do(self,fv):71 def do(self,fv):
72 return aubio_peakpick_pimrt(fv(),self.pp)72 return aubio_peakpick_pimrt(fv(),self.pp)
73 def getval(self):
74 return aubio_peakpick_pimrt_getval(self.pp)
73 def __del__(self):75 def __del__(self):
74 del_aubio_peakpicker(self.pp)76 del_aubio_peakpicker(self.pp)
75 77
@@ -126,3 +128,13 @@ class filter: · 50 unmodified lines
126 pass128 pass
127 def __call__(self,myvec):129 def __call__(self,myvec):
128 aubio_filter_do(self.filter,myvec())130 aubio_filter_do(self.filter,myvec())
131
132class beattracking:
133 """ class for aubio_beattracking """
134 def __init__(self,winlen,channels):
135 self.p = new_aubio_beattracking(winlen,channels)
136 def do(self,dfframe,out):
137 return aubio_beattracking_do(self.p,dfframe(),out())
138 def __del__(self):
139 del_aubio_beattracking(self.p)
140

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