def unmuteTrackCB(self, msg): """Called when a /live/unmute message is received. Messages: /live/unmute (int track) Unmutes track number track """ if len(msg) == 3: track = msg[2] LiveUtils.unmuteTrack(track)
def muteTrackCB(self, msg): """Called when a /live/mute message is received. Messages: /live/mute (int track) Mutes track number track """ track = msg[2] if len(msg) == 4: if msg[3] == 1: LiveUtils.muteTrack(track) else: LiveUtils.unmuteTrack(track) elif len(msg) == 3: status = LiveUtils.getTrack(track).mute self.oscServer.sendOSC("/live/mute", (track, int(status)))
def muteTrackCB(self, msg, source): """Called when a /live/mute message is received. Messages: /live/mute (int track) Mutes track number track """ ty = msg[0] == '/live/return/mute' and 1 or 0 track = msg[2] if len(msg) == 4: if msg[3] == 1: LiveUtils.muteTrack(track, ty) else: LiveUtils.unmuteTrack(track, ty) elif len(msg) == 3: if ty == 1: status = LiveUtils.getSong().return_tracks[track].mute self.oscEndpoint.send("/live/return/mute", (track, int(status))) else: status = LiveUtils.getTrack(track).mute self.oscEndpoint.send("/live/mute", (track, int(status)))
def muteTrackCB(self, msg): """Called when a /live/mute message is received. Messages: /live/mute (int track) Mutes track number track """ ty = msg[0] == '/live/return/mute' and 1 or 0 track = msg[2] if len(msg) == 4: if msg[3] == 1: LiveUtils.muteTrack(track, ty) else: LiveUtils.unmuteTrack(track, ty) elif len(msg) == 3: if ty == 1: status = LiveUtils.getSong().return_tracks[track].mute self.oscServer.sendOSC("/live/return/mute", (track, int(status))) else: status = LiveUtils.getTrack(track).mute self.oscServer.sendOSC("/live/mute", (track, int(status)))