From 2957a3cfd636f2453bfce6bb864d34d639adfb46 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 1 Dec 2013 15:42:47 -0500 Subject: [PATCH] timeside/analyzer/aubio_temporal.py: fix onset rate periods computation --- timeside/analyzer/aubio_temporal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5