python/aubio/task/onset.py: isonset > 0., not == 1
authorPaul Brossier <piem@piem.org>
Tue, 6 Oct 2009 15:04:45 +0000 (17:04 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 6 Oct 2009 15:04:45 +0000 (17:04 +0200)
python/aubio/task/onset.py

index 9e8382e268be794f07232b127d88fed434f15a9d..0d816031a923121bd492735c5a118eb443dc3fae 100644 (file)
@@ -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