From 4c0c4b43ff373189125e79cd460519d16f9ceb5a Mon Sep 17 00:00:00 2001 From: sbahling Date: Sun, 7 Jun 2020 18:06:01 +0200 Subject: Change rest of "status" references to "state". --- tascam_fw_console/fader.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tascam_fw_console/fader.py') diff --git a/tascam_fw_console/fader.py b/tascam_fw_console/fader.py index fedfe39..7ed1932 100644 --- a/tascam_fw_console/fader.py +++ b/tascam_fw_console/fader.py @@ -22,8 +22,8 @@ from tascam_fw_console import osc -status_quadlets = (4, 0, 0, 1, 1, 2, 2, 3, 3) -status_bits = ((1, 16), +state_quadlets = (4, 0, 0, 1, 1, 2, 2, 3, 3) +state_bits = ((1, 16), (1, 16), (17, 32), (1, 16), @@ -48,13 +48,13 @@ class Fader(): self.addr = '/strip/fader' self.press_args = (1,) self.release_args = (0,) - self.status_quadlet = status_quadlets[self.strip.num] - self.status_bits = status_bits[self.strip.num] - self.status_callback = self.send_pos + self.state_quadlet = state_quadlets[self.strip.num] + self.state_bits = state_bits[self.strip.num] + self.state_callback = self.send_pos @property def position(self): - return self.console.status.field(self.status_quadlet, *self.status_bits) + return self.console.state.field(self.state_quadlet, *self.state_bits) @position.setter def position(self, pos): @@ -70,10 +70,10 @@ class Fader(): addr = '{}_touch'.format(self.addr) args = self.press_args + (1,) osc.client.send_message(addr, args) - self.console.status_thread.add_callback(self) + self.console.state_thread.add_callback(self) def release(self): addr = '{}_touch'.format(self.addr) args = self.press_args + (0,) osc.client.send_message(addr, args) - self.console.status_thread.remove_callback(self) + self.console.state_thread.remove_callback(self) -- cgit v1.2.3