Beispiel #1
0
    def _setup_session_control(self):
        self._session_ring = SessionRingComponent(
            num_tracks=8, num_scenes=1, tracks_to_use=self._tracks_to_use)
        self._session_ring.set_enabled(True)

        self._session_navigation = DS1SessionNavigationComponent(
            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.layer = Layer(
            priority=4,
            track_select_dial=ComboElement(control=self._encoder[1],
                                           modifier=[self._encoder_button[1]]),
            up_button=self._grid[0][1],
            down_button=self._grid[0][2])
        self._session_navigation.set_enabled(False)

        self._session = DS1SessionComponent(session_ring=self._session_ring,
                                            auto_name=True)
        hasattr(self._session,
                '_enable_skinning') and self._session._enable_skinning()
        self._session.layer = Layer(
            priority=4,
            scene_launch_buttons=self._grid_matrix.submatrix[1:2, 1:2])
        self._session.clips_layer = AddLayerMode(
            self._session,
            Layer(priority=4,
                  clip_launch_buttons=self._top_buttons,
                  stop_track_clip_buttons=self._bottom_buttons))
        self._session.set_enabled(False)
 def _create_mixer(self):
     self._session_ring = SessionRingComponent(is_enabled=False, num_tracks=NUM_TRACK_CONTROLS, num_scenes=NUM_SCENE_CONTROLS, tracks_to_use=lambda : tuple(self.song.visible_tracks) + tuple(self.song.return_tracks) + (self.song.master_track,), name=u'Session_Ring')
     self._mixer = MixerComponent(is_enabled=False, tracks_provider=self._session_ring, track_assigner=RightAlignTracksTrackAssigner(song=self.song, include_master_track=True), channel_strip_component_type=ChannelStripComponent, name=u'Mixer', layer=Layer(volume_controls=u'volume_sliders', pan_controls=u'pan_sliders', solo_buttons=u'solo_buttons', mute_buttons=u'mute_buttons', arm_buttons=u'arm_buttons', send_controls=u'send_encoders', track_type_controls=u'track_type_controls', output_meter_left_controls=u'meter_controls_left', output_meter_right_controls=u'meter_controls_right', track_select_buttons=u'track_select_buttons', track_name_displays=u'track_name_displays', num_sends_control=u'num_sends_control', track_color_controls=u'tui_track_color_controls', oled_display_style_controls=u'oled_display_style_controls_bank_1', track_name_or_volume_value_displays=u'track_name_or_volume_value_displays', crossfade_assign_controls=u'crossfade_assign_controls', crossfader_control=u'crossfader', solo_mute_buttons=u'solo_mute_buttons', volume_value_displays=u'volume_value_displays', pan_value_displays=u'pan_value_displays', send_value_displays=u'send_value_displays'))
     if not self.is_force:
         self._mixer.layer += Layer(selected_track_arm_button=u'selected_track_arm_button', selected_track_mute_button=u'selected_track_mute_button', selected_track_solo_button=u'selected_track_solo_button')
     else:
         self._mixer.layer += Layer(master_button=u'master_button', physical_track_color_controls=u'physical_track_color_controls')
Beispiel #3
0
 def _setup_selected_session_control(self):
     self._session_ring = SessionRingComponent(num_tracks=1, num_scenes=32)
     self._selected_session = ScaleSessionComponent(
         name="SelectedSession",
         session_ring=self._session_ring,
         auto_name=True,
         is_enabled=False)
     self._selected_session.set_enabled(False)
Beispiel #4
0
    def _setup_session_control(self):
        self._session_ring = SessionRingComponent(num_tracks=7, num_scenes=7)
        self._session_ring.set_enabled(True)

        self._session_navigation = SessionNavigationComponent(
            session_ring=self._session_ring)
        self._session_navigation.scroll_navigation_layer = AddLayerMode(
            self._session_navigation,
            Layer(priority=5,
                  up_button=self._menu[1],
                  down_button=self._menu[4],
                  left_button=self._menu[3],
                  right_button=self._menu[5]))
        self._session_navigation.page_navigation_layer = AddLayerMode(
            self._session_navigation,
            Layer(priority=5,
                  page_up_button=self._menu[2],
                  page_down_button=self._menu[5],
                  page_left_button=self._menu[3],
                  page_right_button=self._menu[4]))
        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.set_enabled(False)

        self._session = SpecialOhmSessionComponent(
            name='Session', session_ring=self._session_ring, auto_name=True)
        self._session.set_enabled(False)
        self._session.clip_launch_layer = AddLayerMode(
            self._session,
            Layer(priority=5,
                  clip_launch_buttons=self._matrix.submatrix[:7, :7]))
        self._session.scene_launch_layer = AddLayerMode(
            self._session,
            Layer(priority=5,
                  scene_launch_buttons=self._matrix.submatrix[7, :7]))
        self._session.stop_clips_layer = AddLayerMode(
            self._session,
            Layer(priority=5,
                  stop_track_clip_buttons=self._matrix.submatrix[:7, 7],
                  stop_all_clips_button=self._grid[7][7]))
        """self._session_zoom = SessionOverviewComponent(name = 'Session_Overview', session_ring = self._session_ring, enable_skinning = True)
Beispiel #5
0
    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)
Beispiel #6
0
    def _setup_mixer_control(self):
        super(Cntrlr, self)._setup_mixer_control()

        mute_buttons = ButtonMatrixElement(
            name='mute_buttons', rows=[self._button[:4] + self._button[12:16]])
        select_buttons = ButtonMatrixElement(
            name='select_buttons',
            rows=[self._button[16:20] + self._button[28:32]])

        self._G_session_ring = SessionRingComponent(num_tracks=8, num_scenes=4)
        self._G_session_ring.set_enabled(False)

        self._G_mixer = MonoMixerComponent(
            name='Mixer',
            num_returns=4,
            tracks_provider=self._G_session_ring,
            track_assigner=simple_track_assigner,
            invert_mute_feedback=True,
            auto_name=True,
            enable_skinning=True)

        if FREE_ENCODER_IS_CROSSFADER:
            self._mixer.layer = Layer(priority=4,
                                      crossfader_control=self._encoder[1])
        #self._G_mixer.select_dial_layer = AddLayerMode(self._G_mixer, Layer(priority = 5,
        #									track_select_dial = self._encoder[3],))
        self._G_mixer.main_faders_layer = AddLayerMode(
            self._G_mixer,
            Layer(
                priority=4,
                volume_controls=self._fader_matrix.submatrix[:8, :],
            ))
        self._G_mixer.main_buttons_layer = AddLayerMode(
            self._G_mixer,
            Layer(priority=4,
                  mute_buttons=mute_buttons,
                  arming_track_select_buttons=select_buttons,
                  solo_buttons=self._dial_button_matrix,
                  stop_clip_buttons=self._key_matrix.submatrix[4:12, :1]))
        #solo_buttons = self._key_matrix.submatrix[4:12, :1],))
        self._G_mixer.shifted_buttons_layer = AddLayerMode(
            self._G_mixer, Layer(
                priority=4,
                mute_buttons=mute_buttons,
            ))
        self._G_mixer.solo_buttons_layer = AddLayerMode(
            self._G_mixer,
            Layer(
                priority=4,
                solo_buttons=self._key_matrix.submatrix[4:12, :1],
            ))
        self._G_mixer.mute_buttons_layer = AddLayerMode(
            self._G_mixer, Layer(
                priority=4,
                mute_buttons=mute_buttons,
            ))

        self._G_mixer.stop_layer = AddLayerMode(
            self._G_mixer,
            Layer(
                priority=4,
                stop_clip_buttons=self._key_matrix.submatrix[8:12, 1:],
            ))

        self._G_mixer.main_knobs_layer = AddLayerMode(self._G_mixer,
                                                      Layer(priority=4))

        self._G_mixer.master_fader_layer = AddLayerMode(
            self._G_mixer.master_strip(), Layer(priority=4, ))
        self._G_mixer.instrument_buttons_layer = AddLayerMode(
            self._G_mixer,
            Layer(
                priority=4,
                mute_buttons=mute_buttons,
                track_select_buttons=select_buttons,
            ))
        self._G_mixer.set_enabled(False)