def _set_track_controller(self):
		self._track_controller = self.register_component(TrackControllerComponent(self._control_surface))
		self._track_controller.set_prev_scene_button(self._top_buttons[0])
		self._track_controller.set_next_scene_button(self._top_buttons[1])
		self._track_controller.set_prev_track_button(self._top_buttons[2])
		self._track_controller.set_next_track_button(self._top_buttons[3])
		self._track_controller._implicit_arm = False
Example #2
0
	def _set_track_controller(self):
		self._track_controller = self.register_component(TrackControllerComponent())
		self._track_controller.set_prev_scene_button(self._top_buttons[0])
		self._track_controller.set_next_scene_button(self._top_buttons[1])
		self._track_controller.set_prev_track_button(self._top_buttons[2])
		self._track_controller.set_next_track_button(self._top_buttons[3])
		self._track_controller._parent = self
		self._track_controller._notify_parent = False
    def __init__(self, matrix, side_buttons, top_buttons, control_surface,
                 note_repeat):
        super(InstrumentControllerComponent, self).__init__()
        self._control_surface = control_surface
        self._note_repeat = note_repeat
        self._osd = None
        self._matrix = None
        self._side_buttons = side_buttons
        self._remaining_buttons = []
        self._track_controller = None
        self.base_channel = 11
        self._quick_scales = [
            0, 1, 2, 3, 4, 5, 6, 7, 10, 13, 14, 15, 17, 18, 24
        ]
        self._quick_scale_root = 0
        self._normal_feedback_velocity = int(
            self._control_surface._skin['Note.Feedback'])
        self._recordind_feedback_velocity = int(
            self._control_surface._skin['Note.FeedbackRecord'])
        self._drum_group_device = None
        self._octave_up_button = None
        self._octave_down_button = None
        self._scales_toggle_button = None
        self.set_scales_toggle_button(
            side_buttons[0])  # Enable scale selecting mode
        self.set_octave_up_button(side_buttons[2])  # Shift octave up
        self.set_octave_down_button(side_buttons[3])  # Shift octave down

        self._track_controller = self.register_component(
            TrackControllerComponent(control_surface=control_surface,
                                     implicit_arm=True))
        self._track_controller.set_enabled(False)

        # Clip navigation buttons
        self._track_controller.set_prev_scene_button(top_buttons[0])
        self._track_controller.set_next_scene_button(top_buttons[1])
        self._track_controller.set_prev_track_button(top_buttons[2])
        self._track_controller.set_next_track_button(top_buttons[3])

        # Clip edition buttons
        self._track_controller.set_undo_button(side_buttons[1])
        self._track_controller.set_stop_button(side_buttons[4])
        self._track_controller.set_play_button(side_buttons[5])
        self._track_controller.set_session_record_button(side_buttons[7])
        self._track_controller.set_solo_button(side_buttons[6])

        self._scales = self.register_component(
            ScaleComponent(self._control_surface))
        # self._scales.set_enabled(False)
        self._scales.set_matrix(matrix)
        self._scales.set_osd(self._osd)

        self.set_matrix(matrix)

        self._on_session_record_changed.subject = self.song()
        self._on_swing_amount_changed_in_live.subject = self.song()
        self._note_repeat.set_enabled(False)
Example #4
0
    def __init__(self, matrix, side_buttons, top_buttons, parent):
        super(InstrumentControllerComponent, self).__init__()
        self._parent = parent
        self._osd = None
        self._matrix = None
        self._side_buttons = side_buttons
        self._remaining_buttons = []
        self._track_controller = None
        self.base_channel = 11
        self._quick_scales = [
            0, 1, 2, 3, 4, 5, 6, 7, 10, 13, 14, 15, 17, 18, 24
        ]
        self._quick_scale_root = True
        self._normal_feedback_velocity = AMBER_FULL
        self._recordind_feedback_velocity = RED_FULL
        self._drum_group_device = None
        self._octave_up_button = None
        self._octave_down_button = None
        self._scales_toggle_button = None
        self.set_scales_toggle_button(side_buttons[0])
        self.set_octave_up_button(side_buttons[2])
        self.set_octave_down_button(side_buttons[3])

        self._track_controller = self.register_component(
            TrackControllerComponent())
        self._track_controller.set_enabled(False)
        self._track_controller.set_parent(self._parent._parent)
        self._track_controller.set_prev_scene_button(top_buttons[0])
        self._track_controller.set_next_scene_button(top_buttons[1])
        self._track_controller.set_prev_track_button(top_buttons[2])
        self._track_controller.set_next_track_button(top_buttons[3])
        self._track_controller.set_undo_button(side_buttons[1])
        self._track_controller.set_stop_button(side_buttons[4])
        self._track_controller.set_play_button(side_buttons[5])
        self._track_controller.set_session_record_button(side_buttons[7])
        self._track_controller.set_solo_button(side_buttons[6])

        self._scales = self.register_component(ScalesComponent())
        self._scales.set_enabled(False)
        self.set_matrix(matrix)
        self._scales.set_parent(self)
        self._scales.set_matrix(matrix)
        self._scales.set_osd(self._osd)

        self._on_session_record_changed.subject = self.song()
Example #5
0
 def _set_track_controller(self):
     self._track_controller = self.register_component(
         TrackControllerComponent(control_surface=self._control_surface,
                                  implicit_arm=False,
                                  skin_name="StepSequencer2",
                                  enabled=True))