projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b07ff1e
)
python/aubio/task/onset.py: isonset > 0., not == 1
author
Paul Brossier
<piem@piem.org>
Tue, 6 Oct 2009 15:04:45 +0000
(17:04 +0200)
committer
Paul Brossier
<piem@piem.org>
Tue, 6 Oct 2009 15:04:45 +0000
(17:04 +0200)
python/aubio/task/onset.py
patch
|
blob
|
history
diff --git
a/python/aubio/task/onset.py
b/python/aubio/task/onset.py
index 9e8382e268be794f07232b127d88fed434f15a9d..0d816031a923121bd492735c5a118eb443dc3fae 100644
(file)
--- a/
python/aubio/task/onset.py
+++ b/
python/aubio/task/onset.py
@@
-34,7
+34,7
@@
class taskonset(task):
if val > 0: self.ovalist.append(val)
else: self.ovalist.append(0)
self.ovalist.pop(0)
- if (isonset
== 1
):
+ if (isonset
> 0.
):
if self.params.localmin:
# find local minima before peak
i=len(self.ovalist)-1