diff --git a/oxtimeline/audio.py b/oxtimeline/audio.py index 4f61438..1c57425 100644 --- a/oxtimeline/audio.py +++ b/oxtimeline/audio.py @@ -89,8 +89,9 @@ class Audio(gst.Pipeline): height = int((p * self.tile_height) / 256) * 2 crop = int((self.tile_height-height) / 2) if p: p += 20 - p = (p, p, p, 255) - + color = (p, p, p, 255) + color = (255,255,255,255) + if start: end = self.tile_height - crop else: @@ -98,7 +99,7 @@ class Audio(gst.Pipeline): end = int(self.tile_height/2) #for i in range(0, self.tile_height): for i in range(start, end): - self.tiles[tile].putpixel((tilePos, i), p) + self.tiles[tile].putpixel((tilePos, i), color) #left pixel = np.asarray(self.left[:samples_per_pixel]) self.left = self.left[samples_per_pixel:]