def _setup_session_control(self): self._session_ring = SessionRingComponent(num_tracks = 4, num_scenes = 4) self._session_ring.set_enabled(True) self._session_navigation = SessionNavigationComponent(name = 'SessionNavigation', session_ring = self._session_ring) self._session_navigation._vertical_banking.scroll_up_button.color = 'Session.NavigationButtonOn' self._session_navigation._vertical_banking.scroll_down_button.color = 'Session.NavigationButtonOn' self._session_navigation._horizontal_banking.scroll_up_button.color = 'Session.NavigationButtonOn' self._session_navigation._horizontal_banking.scroll_down_button.color = 'Session.NavigationButtonOn' self._session_navigation._vertical_paginator.scroll_up_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._vertical_paginator.scroll_up_button.disabled_color = 'Session.PageNavigationButtonOff' self._session_navigation._vertical_paginator.scroll_down_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._vertical_paginator.scroll_down_button.disabled_color = 'Session.PageNavigationButtonOff' self._session_navigation._horizontal_paginator.scroll_up_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._horizontal_paginator.scroll_up_button.disabled_color = 'Session.PageNavigationButtonOff' self._session_navigation._horizontal_paginator.scroll_down_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._horizontal_paginator.scroll_down_button.disabled_color = 'Session.PageNavigationButtonOff' self._session_navigation.layer = Layer(priority = 4, down_button = self._button[14], up_button = self._button[15], left_button = self._button[12], right_button = self._button[13]) self._session_navigation.set_enabled(True) self._session = SessionComponent(session_ring = self._session_ring, auto_name = True) hasattr(self._session, '_enable_skinning') and self._session._enable_skinning() self._session.layer = Layer(priority = 4, clip_launch_buttons = self._matrix.submatrix[:,:]) self._session.set_enabled(True)
def _create_session(self): self._session_ring = SessionRingComponent(num_tracks=NUM_TRACKS, num_scenes=NUM_SCENES, is_enabled=False, name=u'Session_Ring') self._session = SessionComponent(session_ring=self._session_ring, name=u'Session') self._session.set_rgb_mode(LIVE_COLORS_TO_MIDI_VALUES, RGB_COLOR_TABLE)
def _setup_session_control(self): self._session_ring = SessionRingComponent(num_tracks = 1, num_scenes = 4, tracks_to_use = lambda : self.song.visible_tracks + self.song.return_tracks) self._session_ring.set_enabled(False) self._session = SessionComponent(session_ring = self._session_ring, auto_name = True) hasattr(self._session, '_enable_skinning') and self._session._enable_skinning() self._session.layer = Layer(scene_launch_buttons = self._scene_launch_matrix) self._session_navigation =SessionNavigationComponent(name = 'SessionNavigation', session_ring = self._session_ring) self._session_navigation._horizontal_banking.scroll_up_button.color = 'Session.NavigationButtonOn' self._session_navigation._horizontal_banking.scroll_down_button.color = 'Session.NavigationButtonOn' self._session_navigation.layer = Layer(left_button = self._button[1], right_button = self._button[0]) self._session_navigation.set_enabled(True)
def _setup_session_control(self): self._session_ring = SessionRingComponent(num_tracks=4, num_scenes=4) self._session_ring.set_enabled(False) self._session_navigation = CntrlrSessionNavigationComponent( name='SessionNavigation', session_ring=self._session_ring) self._session_navigation._vertical_banking.scroll_up_button.color = 'Session.NavigationButtonOn' self._session_navigation._vertical_banking.scroll_down_button.color = 'Session.NavigationButtonOn' self._session_navigation._horizontal_banking.scroll_up_button.color = 'Session.NavigationButtonOn' self._session_navigation._horizontal_banking.scroll_down_button.color = 'Session.NavigationButtonOn' self._session_navigation._vertical_paginator.scroll_up_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._vertical_paginator.scroll_down_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._horizontal_paginator.scroll_up_button.color = 'Session.PageNavigationButtonOn' self._session_navigation._horizontal_paginator.scroll_down_button.color = 'Session.PageNavigationButtonOn' self._session_navigation.bank_dial_layer = AddLayerMode( self._session_navigation, Layer(priority=5, )) self._session_navigation.nav_dial_layer = AddLayerMode( self._session_navigation, Layer(priority=5, )) self._session_navigation.select_dial_layer = AddLayerMode( self._session_navigation, Layer(priority=5)) self._session_navigation.nav_layer = AddLayerMode( self._session_navigation, Layer(priority=5, )) self._session_navigation.set_enabled(False) self._session = SessionComponent(session_ring=self._session_ring, auto_name=True) hasattr(self._session, '_enable_skinning') and self._session._enable_skinning() self._session.clip_launch_layer = LayerMode( self._session, Layer(priority=5, stop_all_clips_button=self._button[27])) self._session.stop_all_clips_layer = AddLayerMode( self._session, Layer(priority=6, stop_all_clips_button=self._button[27])) self._session.scene_launch_layer = AddLayerMode( self._session._selected_scene, Layer(priority=5, stop_all_clips_button=self._button[27])) self._session.set_enabled(False) self._session_zoom = SessionOverviewComponent( name='SessionZoom', session_ring=self._session_ring, enable_skinning=True) self._session_zoom.layer = Layer(priority=5, ) self._session_zoom.set_enabled(False) self._session_ring2 = SessionRingComponent(num_tracks=4, num_scenes=1, set_session_highlight=nop) self._session_ring2.set_enabled(False) self._session2 = SpecialSessionComponent( session_ring=self._session_ring2, auto_name=True) self._session2._selected_scene.layer = Layer( priority=5, launch_button=self._button[30]) self._session2.layer = Layer( priority=5, stop_all_clips_button=self._button[27], fire_next_scene_button=self._button[31] ) #, fire_scene_button = self._button[28]) self._scene_scroller = ScrollComponent( scrollable=SelectedSceneScroller(song=self.song)) self._scene_scroller.layer = Layer(priority=5, scroll_up_button=self._button[29], scroll_down_button=self._button[28]) self._scene_scroller.set_enabled(False)