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
7070 self.pp = new_aubio_peakpicker(threshold)
7171 def do(self,fv):
7272 return aubio_peakpick_pimrt(fv(),self.pp)
73+ def getval(self):
74+ return aubio_peakpick_pimrt_getval(self.pp)
7375 def __del__(self):
7476 del_aubio_peakpicker(self.pp)
7577
@@ -126,3 +128,13 @@ class filter: · 50 unmodified lines
126128 pass
127129 def __call__(self,myvec):
128130 aubio_filter_do(self.filter,myvec())
131+
132+class 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