diff options
| author | sbahling <sbahling@mudgum.net> | 2018-11-02 20:40:53 +0100 |
|---|---|---|
| committer | sbahling <sbahling@mudgum.net> | 2018-11-02 20:40:53 +0100 |
| commit | ef03b9e3ee126be9810f96cf2d71b5fe0c1f33a3 (patch) | |
| tree | e03c5ed83b3bb110ffa2fbeb868592b3e857aa43 /tascam_fw_console | |
| parent | 70ff37debca07c6711c104085df70c4124cde091 (diff) | |
| download | tascam-fw-osc-ef03b9e3ee126be9810f96cf2d71b5fe0c1f33a3.tar.gz tascam-fw-osc-ef03b9e3ee126be9810f96cf2d71b5fe0c1f33a3.tar.xz tascam-fw-osc-ef03b9e3ee126be9810f96cf2d71b5fe0c1f33a3.zip | |
Simplify Fader API
Diffstat (limited to 'tascam_fw_console')
| -rw-r--r-- | tascam_fw_console/faders.py | 4 | ||||
| -rw-r--r-- | 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, |
