]> git.parisson.com Git - timeside.git/commitdiff
bugfix grapher channels
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 20 Jan 2014 11:39:39 +0000 (12:39 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 20 Jan 2014 11:39:39 +0000 (12:39 +0100)
timeside/grapher/waveform_simple.py

index 8856e93ddb0c237916c52876cfdd17d69b041d9a..6dd7916ba7195705241e396ea13d8d23d0868212 100644 (file)
@@ -52,7 +52,10 @@ class Waveform(Grapher):
     @interfacedoc
     def process(self, frames, eod=False):
         if len(frames) != 1:
-            buffer = frames[:,0]
+            if len(frames.shape) > 1:
+                buffer = frames[:,0]
+            else:
+                buffer = frames
             buffer.shape = (len(buffer),1)
             for samples, end in self.pixels_adapter.process(buffer, eod):
                 if self.pixel_cursor < self.image_width-1: