beat should be fixed, add comments about
authorPaul Brossier <piem@altern.org>
Wed, 17 May 2006 09:19:56 +0000 (09:19 +0000)
committerPaul Brossier <piem@altern.org>
Wed, 17 May 2006 09:19:56 +0000 (09:19 +0000)
beat should be fixed, add comments about

python/aubio/task/beat.py
python/aubio/task/task.py

index a293883..1c77983 100644 (file)
@@ -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) ) ):
index 1854159..8979f3b 100644 (file)
@@ -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
-