Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -70,6 +70,8 @@ class peakpick: · 69 unmodified lines | ||
| 70 | 70 | self.pp = new_aubio_peakpicker(threshold) |
| 71 | 71 | def do(self,fv): |
| 72 | 72 | return aubio_peakpick_pimrt(fv(),self.pp) |
| 73 | + def getval(self): | |
| 74 | + return aubio_peakpick_pimrt_getval(self.pp) | |
| 73 | 75 | def __del__(self): |
| 74 | 76 | del_aubio_peakpicker(self.pp) |
| 75 | 77 | |
| @@ -126,3 +128,13 @@ class filter: · 50 unmodified lines | ||
| 126 | 128 | pass |
| 127 | 129 | def __call__(self,myvec): |
| 128 | 130 | 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 | + | |