From f155c4de9979981aa0618e93a5434dc6c1aba373 Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 28 Sep 2012 23:31:56 +0200 Subject: [PATCH] adapt aubio analyzers to the new api --- timeside/analyzer/aubio_bpm.py | 4 ++-- timeside/analyzer/aubio_onsetrate.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/timeside/analyzer/aubio_bpm.py b/timeside/analyzer/aubio_bpm.py index ad5c817..5eee47e 100644 --- a/timeside/analyzer/aubio_bpm.py +++ b/timeside/analyzer/aubio_bpm.py @@ -28,8 +28,8 @@ class AubioBPM(Processor): implements(IValueAnalyzer) @interfacedoc - def setup(self, channels=None, samplerate=None, nframes=None): - super(AubioBPM, self).setup(channels, samplerate, nframes) + def setup(self, channels=None, samplerate=None, blocksize=None, totalframes=None): + super(AubioBPM, self).setup(channels, samplerate, blocksize, totalframes) self.win_s = 512 self.hop_s = self.win_s / 2 self.t = tempo("default", self.win_s, self.hop_s, 1) diff --git a/timeside/analyzer/aubio_onsetrate.py b/timeside/analyzer/aubio_onsetrate.py index 35df60a..802bb78 100644 --- a/timeside/analyzer/aubio_onsetrate.py +++ b/timeside/analyzer/aubio_onsetrate.py @@ -28,8 +28,8 @@ class AubioBPM(Processor): implements(IValueAnalyzer) @interfacedoc - def setup(self, channels=None, samplerate=None, nframes=None): - super(AubioBPM, self).setup(channels, samplerate, nframes) + def setup(self, channels=None, samplerate=None, blocksize=None, totalframes=None): + super(AubioBPM, self).setup(channels, samplerate, blocksize, totalframes) self.win_s = 512 self.hop_s = self.win_s / 2 self.t = onset("default", self.win_s, self.hop_s, 1) -- 2.39.5