def unsoloTrackCB(self, msg): """Called when a /live/unsolo message is received. Messages: /live/unsolo (int track) Unsolos track number track """ if len(msg) == 3: track = msg[2] LiveUtils.unsoloTrack(track)
def soloTrackCB(self, msg): """Called when a /live/solo message is received. Messages: /live/solo (int track) Solos track number track """ track = msg[2] if len(msg) == 4: if msg[3] == 1: LiveUtils.soloTrack(track) else: LiveUtils.unsoloTrack(track) elif len(msg) == 3: status = LiveUtils.getTrack(track).solo self.oscServer.sendOSC("/live/solo", (track, int(status)))
def soloTrackCB(self, msg): """Called when a /live/solo message is received. Messages: /live/solo (int track) Solos track number track """ ty = msg[0] == '/live/return/solo' and 1 or 0 track = msg[2] if len(msg) == 4: if msg[3] == 1: LiveUtils.soloTrack(track, ty) else: LiveUtils.unsoloTrack(track, ty) elif len(msg) == 3: if ty == 1: status = LiveUtils.getSong().return_tracks[track].solo self.oscServer.sendOSC("/live/return/solo", (track, int(status))) else: status = LiveUtils.getTrack(track).solo self.oscServer.sendOSC("/live/solo", (track, int(status)))