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
3434 if val > 0: self.ovalist.append(val)
3535 else: self.ovalist.append(0)
3636 self.ovalist.pop(0)
37− if (isonset == 1):
37+ if (isonset > 0.):
3838 if self.params.localmin:
3939 # find local minima before peak
4040 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