diff options
Diffstat (limited to 'console.py')
| -rw-r--r-- | console.py | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -150,7 +150,7 @@ class Console(): self.handle_encoder(index, before, after) return - def strip_fader_handler(self, addr, args, ssid, pos): + def strip_fader_handler(self, addr, ssid, pos): print('fader_handler', addr, ssid, pos) strip = self.strips(int(ssid)) if strip.name == ' ': @@ -158,14 +158,14 @@ class Console(): pos = pos * 1023 strip.fader.position = pos - def master_fader_handler(self, addr, args, pos): + def master_fader_handler(self, addr, pos): print('master_fader_handler', pos) self.strips[0].fader.position(1023 * pos) def default_handler(self, addr, *args): print(addr, args) - def strip_mute_handler(self, addr, args, ssid, state): + def strip_mute_handler(self, addr, ssid, state): strip = self.strips(int(ssid)) print('mute_handler', strip, state) if strip.name == ' ': @@ -175,7 +175,7 @@ class Console(): else: strip.mute = False - def strip_solo_handler(self, addr, args, ssid, state): + def strip_solo_handler(self, addr, ssid, state): strip = self.strips(int(ssid)) print('solo_handler', strip, state) if strip.name == ' ': @@ -185,7 +185,7 @@ class Console(): else: strip.solo = False - def strip_recenable_handler(self, addr, args, ssid, state): + def strip_recenable_handler(self, addr, ssid, state): strip = self.strips(int(ssid)) print('recenable_handler', strip, state) if strip.name == ' ': @@ -204,33 +204,33 @@ class Console(): self.state['LOOP'] = 0 self.unit.leds.loop.turn_off() - def transport_stop_handler(self, addr, args, state): - print(addr, args, state) + def transport_stop_handler(self, addr, state): + print(addr, state) if state: self.unit.leds.stop.turn_on() else: self.unit.leds.stop.turn_off() - def transport_play_handler(self, addr, args, state): - print(addr, args, state) + def transport_play_handler(self, addr, state): + print(addr, state) if state: self.unit.leds.play.turn_on() else: self.unit.leds.play.turn_off() - def ffwd_handler(self, addr, args, state): + def ffwd_handler(self, addr, state): if state: self.unit.leds.f_fwd.turn_on() else: self.unit.leds.f_fwd.turn_off() - def rewind_handler(self, addr, args, state): + def rewind_handler(self, addr, state): if state: self.unit.leds.rew.turn_on() else: self.unit.leds.rew.turn_off() - def rec_enable_toggle_handler(self, addr, args, state): + def rec_enable_toggle_handler(self, addr, state): if state: self.unit.leds.rec.turn_on() else: |
