History

python/aubio/task/onset.py: isonset > 0., not == 1

Paul Brossier committed 17 years ago

Commit a9e27e41 parent b07ff1e1 file · +1 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubio/task/onset.py+1−1
@@ -34,7 +34,7 @@ class taskonset(task): · 33 unmodified lines
34 if val > 0: self.ovalist.append(val)34 if val > 0: self.ovalist.append(val)
35 else: self.ovalist.append(0)35 else: self.ovalist.append(0)
36 self.ovalist.pop(0)36 self.ovalist.pop(0)
37 if (isonset == 1):37 if (isonset > 0.):
38 if self.params.localmin:38 if self.params.localmin:
39 # find local minima before peak 39 # find local minima before peak
40 i=len(self.ovalist)-140 i=len(self.ovalist)-1

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