From a9e27e4fbc46cb0399971f6d1290eb957e9e030a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 6 Oct 2009 17:04:45 +0200 Subject: [PATCH] python/aubio/task/onset.py: isonset > 0., not == 1 --- python/aubio/task/onset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2