History

beat should be fixed, add comments about beat should be fixed, add comments about

Paul Brossier committed 20 years ago

Commit ba11e531 parent 9b138a82 files · +3 −1Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/aubio/task/beat.py +3 −0
  2. python/aubio/task/task.py +0 −1
python/aubio/task/beat.py+3−0
@@ -17,6 +17,7 @@ class taskbeat(taskonset): · 16 unmodified lines
1717
1818 def __call__(self):
1919 taskonset.__call__(self)
20+ #results = taskonset.__call__(self)
2021 # write to current file
2122 if self.pos2 == self.btstep - 1 :
2223 self.bt.do(self.dfframe,self.btoutput)
@@ -27,6 +28,8 @@ class taskbeat(taskonset): · 4 unmodified lines
2728 self.pos2 = -1;
2829 self.pos2 += 1
2930 val = self.opick.pp.getval()
31+ #if not results: val = 0
32+ #else: val = results[1]
3033 self.dfframe.set(val,self.btwinlen - self.btstep + self.pos2,0)
3134 i=0
3235 for i in range(1,int( self.btoutput.get(0,0) ) ):
python/aubio/task/task.py+0−1
@@ -52,4 +52,3 @@ class task(taskparams): · 51 unmodified lines
5252 #print "CPU time is now %f seconds," % time.clock(),
5353 #print "task execution took %f seconds" % (time.time() - self.tic)
5454 return time.time() - self.tic
55−

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t