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 a293883cd913c80e78fa81d5464f04cb97d1e87e..1c77983478d110b5b28cbcee1b6bb550789d77d8 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 185415943a24645953af0a9aae7479c8e0b6b2aa..8979f3b0e1a63a9adad6429dda7b623b0208f3f0 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
-