task beat() output seconds
authorPaul Brossier <piem@altern.org>
Fri, 2 Jun 2006 17:11:24 +0000 (17:11 +0000)
committerPaul Brossier <piem@altern.org>
Fri, 2 Jun 2006 17:11:24 +0000 (17:11 +0000)
task beat() output seconds

python/aubio/task/beat.py

index 1c77983478d110b5b28cbcee1b6bb550789d77d8..cfd329aef0fd76229a89e04b41fe8fa34723b442 100644 (file)
@@ -39,7 +39,7 @@ class taskbeat(taskonset):
                                now = self.frameread-0
                                period = (60 * self.params.samplerate) / ((now - self.old) * self.params.hopsize)
                                self.old = now
-                               return now*self.params.step,period
+                               return now*self.btstep*self.params.step,period
        
        def eval(self,results,tol=0.20,tolcontext=0.25):
                obeats = self.gettruth()