From ba11e530136b1a17fed742cd423408fa587ea212 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 17 May 2006 09:19:56 +0000 Subject: [PATCH] beat should be fixed, add comments about beat should be fixed, add comments about --- python/aubio/task/beat.py | 3 +++ python/aubio/task/task.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/aubio/task/beat.py b/python/aubio/task/beat.py index a293883c..1c779834 100644 --- a/python/aubio/task/beat.py +++ b/python/aubio/task/beat.py @@ -17,6 +17,7 @@ class taskbeat(taskonset): def __call__(self): taskonset.__call__(self) + #results = taskonset.__call__(self) # write to current file if self.pos2 == self.btstep - 1 : self.bt.do(self.dfframe,self.btoutput) @@ -27,6 +28,8 @@ class taskbeat(taskonset): self.pos2 = -1; self.pos2 += 1 val = self.opick.pp.getval() + #if not results: val = 0 + #else: val = results[1] self.dfframe.set(val,self.btwinlen - self.btstep + self.pos2,0) i=0 for i in range(1,int( self.btoutput.get(0,0) ) ): diff --git a/python/aubio/task/task.py b/python/aubio/task/task.py index 18541594..8979f3b0 100644 --- a/python/aubio/task/task.py +++ b/python/aubio/task/task.py @@ -52,4 +52,3 @@ class task(taskparams): #print "CPU time is now %f seconds," % time.clock(), #print "task execution took %f seconds" % (time.time() - self.tic) return time.time() - self.tic - -- 2.26.2