From 27f2c08efb7176c7f9417c1be3d17a8d3fe3fd6f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 22 Dec 2005 16:34:14 +0000 Subject: [PATCH] adds peakpick_pimrt_getval and beattracking functions adds peakpick_pimrt_getval and beattracking functions --- python/aubio/aubioclass.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/aubio/aubioclass.py b/python/aubio/aubioclass.py index b28fe492..7a6d7447 100644 --- a/python/aubio/aubioclass.py +++ b/python/aubio/aubioclass.py @@ -70,6 +70,8 @@ class peakpick: self.pp = new_aubio_peakpicker(threshold) def do(self,fv): return aubio_peakpick_pimrt(fv(),self.pp) + def getval(self): + return aubio_peakpick_pimrt_getval(self.pp) def __del__(self): del_aubio_peakpicker(self.pp) @@ -126,3 +128,13 @@ class filter: pass def __call__(self,myvec): aubio_filter_do(self.filter,myvec()) + +class beattracking: + """ class for aubio_beattracking """ + def __init__(self,winlen,channels): + self.p = new_aubio_beattracking(winlen,channels) + def do(self,dfframe,out): + return aubio_beattracking_do(self.p,dfframe(),out()) + def __del__(self): + del_aubio_beattracking(self.p) + -- 2.26.2