]> git.parisson.com Git - timeside.git/commitdiff
cleanup
authoryomguy <yomguy@parisson.com>
Sat, 16 Oct 2010 11:27:08 +0000 (11:27 +0000)
committeryomguy <yomguy@parisson.com>
Sat, 16 Oct 2010 11:27:08 +0000 (11:27 +0000)
timeside/grapher/waveform_awdio.py
timeside/tools/waveform_batch_awdio.py

index df0e24398c8f0ce62089d3e1550787b40b42a655..b1b1b952cd3626d08f33b083d87703a7fdeaa9fc 100644 (file)
@@ -35,7 +35,6 @@ class WaveformAwdio(Processor):
         self.height = height
         self.bg_color = bg_color
         self.color_scheme = color_scheme
-        self.graph = None
 
     @staticmethod
     @interfacedoc
@@ -55,11 +54,9 @@ class WaveformAwdio(Processor):
     @interfacedoc
     def setup(self, channels=None, samplerate=None, nframes=None):
         super(WaveformAwdio, self).setup(channels, samplerate, nframes)
-        if self.graph:
-            self.graph = None
         self.graph = WaveformImageSimple(self.width, self.height, self.nframes(), self.samplerate(), self.FFT_SIZE, 
                                     bg_color=self.bg_color, color_scheme=self.color_scheme)
-
+        
     @interfacedoc
     def process(self, frames, eod=False):
         self.graph.process(frames, eod)
index 7f031e3fa86bc48b820469d14a5d68d81c7df8a1..5a5087454b0cee52b98dda8de769c8853335b483 100644 (file)
@@ -114,7 +114,6 @@ class PipeWaveform:
         (decoder | waveform).run()
         return waveform
 
-
 if __name__ == '__main__':
     if len(sys.argv) <= 2:
         print """