ref: a9e27e4fbc46cb0399971f6d1290eb957e9e030a
parent: b07ff1eed805c44bd84c62706e625239bdaae779
author: Paul Brossier <piem@piem.org>
date: Tue Oct 6 13:04:45 EDT 2009
python/aubio/task/onset.py: isonset > 0., not == 1
--- a/python/aubio/task/onset.py
+++ b/python/aubio/task/onset.py
@@ -34,7 +34,7 @@
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