From: Paul Brossier Date: Sun, 1 Dec 2013 20:42:47 +0000 (-0500) Subject: timeside/analyzer/aubio_temporal.py: fix onset rate periods computation X-Git-Tag: 0.5.2~20 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2957a3cfd636f2453bfce6bb864d34d639adfb46;p=timeside.git timeside/analyzer/aubio_temporal.py: fix onset rate periods computation --- diff --git a/timeside/analyzer/aubio_temporal.py b/timeside/analyzer/aubio_temporal.py index 60b4c0b..59e7c4a 100644 --- a/timeside/analyzer/aubio_temporal.py +++ b/timeside/analyzer/aubio_temporal.py @@ -106,7 +106,7 @@ class AubioTemporal(Analyzer): onsetrate.id_metadata.name = " " + "Onset Rate" onsetrate.id_metadata.unit = "bpm" if len(self.onsets) > 1: - periods = 60. / numpy.diff(self.onsets) + periods = numpy.diff(self.onsets) periods = numpy.append(periods, periods[-1]) onsetrate.data_object.time = self.onsets onsetrate.data_object.duration = periods