From: Paul Brossier Date: Tue, 6 Oct 2009 15:04:45 +0000 (+0200) Subject: python/aubio/task/onset.py: isonset > 0., not == 1 X-Git-Tag: bzr2git~205 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9e27e4fbc46cb0399971f6d1290eb957e9e030a;p=aubio.git python/aubio/task/onset.py: isonset > 0., not == 1 --- diff --git a/python/aubio/task/onset.py b/python/aubio/task/onset.py index 9e8382e2..0d816031 100644 --- 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