From ef03b9e3ee126be9810f96cf2d71b5fe0c1f33a3 Mon Sep 17 00:00:00 2001 From: sbahling Date: Fri, 2 Nov 2018 20:40:53 +0100 Subject: Simplify Fader API --- tascam_fw_console/faders.py | 4 ++-- tascam_fw_console/strips.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tascam_fw_console/faders.py b/tascam_fw_console/faders.py index 3ee4de7..ab20eaa 100644 --- a/tascam_fw_console/faders.py +++ b/tascam_fw_console/faders.py @@ -37,9 +37,9 @@ status_bits = ((1, 16), class Fader(Button): - def __init__(self, console, strip): + def __init__(self, strip): name = 'Strip {} Fader'. format(strip.num) - super().__init__(console, name) + super().__init__(strip.console, name) self.strip = strip if self.strip.num == 0: self.addr = '/master/fader' diff --git a/tascam_fw_console/strips.py b/tascam_fw_console/strips.py index c14a22a..5da97e0 100644 --- a/tascam_fw_console/strips.py +++ b/tascam_fw_console/strips.py @@ -38,7 +38,7 @@ class Strip(): self._rec = False self.pan = 0.5 self.trimdb = 0.0 - self.fader = Fader(self.console, self) + self.fader = Fader(self) self.name = None self.encoder_handlers = {'PAN': self.send_pan, -- cgit v1.2.3