def _do_channel_slider(self, value): if self._wheel_overide: self._wheel_overide(value == 127 and -1 or 1) else: song = self.song() if self.modifier1(): dir = value == 127 and -1 or 1 scenes = song.scenes scene = song.view.selected_scene sindex = vindexof(scenes, scene) sel_scene = sindex + dir if sel_scene >= 0 and sel_scene < len(scenes): song.view.selected_scene = scenes[sel_scene] else: if self.modifier2(): dir = value == 127 and Live.Application.Application.View.NavDirection.left or Live.Application.Application.View.NavDirection.right self.application().view.scroll_view( dir, 'Detail/DeviceChain', True) else: dir = value == 127 and -1 or 1 tracks = song.tracks direction = value == 127 and Live.Application.Application.View.NavDirection.left or Live.Application.Application.View.NavDirection.right self.application().view.scroll_view( direction, 'Session', True) if self.select_arm_mode: arm_exclusive(song)
def _do_channel_slider(self, value): song = self.song() if self._editsection.isShiftdown(): dir = value == 127 and Live.Application.Application.View.NavDirection.left or Live.Application.Application.View.NavDirection.right self.application().view.scroll_view(dir, 'Detail/DeviceChain', True) else: if self._push_down: dir = value == 127 and -1 or 1 scenes = song.scenes scene = song.view.selected_scene sindex = list(scenes).index(scene) sel_scene = sindex + dir if sel_scene >= 0 and sel_scene < len(scenes): song.view.selected_scene = scenes[sel_scene] else: direction = value == 127 and Live.Application.Application.View.NavDirection.left or Live.Application.Application.View.NavDirection.right self.application().view.scroll_view(direction, 'Session', True) if self.canonical_parent.arm_selected_track: arm_exclusive(song)
def _do_channel_button(self, value): arm_exclusive(self.song())