From: Thomas Fillon Date: Thu, 18 Dec 2014 16:31:18 +0000 (+0100) Subject: Fix #64 X-Git-Tag: 0.6.2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6a19b2e70d80e792ef7af3862a026ce2a8a0011b;p=timeside.git Fix #64 --- diff --git a/timeside/analyzer/externals/aubio_pitch.py b/timeside/analyzer/externals/aubio_pitch.py index 6e9cdc6..dc3735e 100644 --- a/timeside/analyzer/externals/aubio_pitch.py +++ b/timeside/analyzer/externals/aubio_pitch.py @@ -51,12 +51,6 @@ class AubioPitch(Analyzer): @interfacedoc def setup(self, channels=None, samplerate=None, blocksize=None, totalframes=None): - super(AubioPitch, self).setup(channels, - samplerate, - blocksize, - totalframes) - - # Frame parameters setup if self._blocksize_s: self.input_blocksize = nextpow2(self._blocksize_s * samplerate) @@ -68,6 +62,13 @@ class AubioPitch(Analyzer): else: self.input_stepsize = self.input_blocksize / 2 + # Now that frames size metadata are properly set, we can do the set-up + super(AubioPitch, self).setup(channels, + samplerate, + blocksize, + totalframes) + + # Aubio Pitch set-up self.aubio_pitch = pitch( "default", self.input_blocksize, self.input_stepsize,