summaryrefslogtreecommitdiff
path: root/tascam_fw_console/fader.py
diff options
context:
space:
mode:
authorsbahling <sbahling@mudgum.net>2020-06-07 18:06:01 +0200
committersbahling <sbahling@mudgum.net>2020-06-07 18:06:01 +0200
commit4c0c4b43ff373189125e79cd460519d16f9ceb5a (patch)
tree23c8ecab0417c000eb0a5bef0400433b02e56ad7 /tascam_fw_console/fader.py
parent9f3c24fb21aa056331a7b537b0330c5b85e96672 (diff)
downloadtascam-fw-osc-4c0c4b43ff373189125e79cd460519d16f9ceb5a.tar.gz
tascam-fw-osc-4c0c4b43ff373189125e79cd460519d16f9ceb5a.tar.xz
tascam-fw-osc-4c0c4b43ff373189125e79cd460519d16f9ceb5a.zip
Change rest of "status" references to "state".
Diffstat (limited to 'tascam_fw_console/fader.py')
-rw-r--r--tascam_fw_console/fader.py16
1 files changed, 8 insertions, 8 deletions
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)