]> git.parisson.com Git - timeside.git/commitdiff
again
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 23 Oct 2014 12:26:00 +0000 (14:26 +0200)
committerThomas Fillon <thomas@parisson.com>
Fri, 24 Oct 2014 12:21:37 +0000 (14:21 +0200)
timeside/analyzer/spectrogram_buffer.py

index ac28b6c1f1c218e160a6ba7b2edd600aa1c008cc..99d9c7e5f6c6fd083fcbc2b815aae8c24b606644 100644 (file)
@@ -103,7 +103,7 @@ class SpectrogramBuffer(Spectrogram):
     def post_process(self):
         spectrogram = self.new_result(data_mode='value', time_mode='framewise')
         spectrogram.parameters = {'fft_size': self.fft_size}
-        spectrogram.data_object.value = self.values['stft']
+        spectrogram.data_object.value = np.abs(self.values['stft'])
         nb_freq = spectrogram.data_object.value.shape[1]
         spectrogram.data_object.y_value = (np.arange(0, nb_freq) *
                                            self.samplerate() / self.fft_size)