From: Paul Brossier Date: Thu, 22 Dec 2005 16:34:14 +0000 (+0000) Subject: adds peakpick_pimrt_getval and beattracking functions X-Git-Tag: 0.4.0-beta1~1317 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=27f2c08efb7176c7f9417c1be3d17a8d3fe3fd6f;p=aubio.git adds peakpick_pimrt_getval and beattracking functions adds peakpick_pimrt_getval and beattracking functions --- 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) +