ref: ba11e530136b1a17fed742cd423408fa587ea212
parent: 9b138a860a8a2939b8bd6aed7d5c460be0a4c8bd
author: Paul Brossier <piem@altern.org>
date: Wed May 17 05:19:56 EDT 2006
beat should be fixed, add comments about beat should be fixed, add comments about
--- a/python/aubio/task/beat.py
+++ b/python/aubio/task/beat.py
@@ -17,6 +17,7 @@
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 @@
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) ) ):
--- a/python/aubio/task/task.py
+++ b/python/aubio/task/task.py
@@ -52,4 +52,3 @@
#print "CPU time is now %f seconds," % time.clock(),
#print "task execution took %f seconds" % (time.time() - self.tic)
return time.time() - self.tic
-