def __init__(self, *a, **k):
        # call parent contructor
        super(APC_mini_jojo, self).__init__(*a, **k)

        # copied from midiscripts.net
        # assign script name used by Logger
        self.script_name = "APC mini + J0J0's hacks v0.2"
        self.log_start()

        self._suppress_session_highlight = False
        self._suppress_send_midi = False
        self._color_skin = make_biled_skin()
        self._default_skin = make_default_skin()
        self._stop_button_skin = make_stop_button_skin()

        with self.component_guard():
            self._create_controls()
            self._session = self._create_session()
            self._mixer = self._create_mixer()
            self._device = self._create_device_component()
            if self.HAS_TRANSPORT:
                self._transport = self._create_transport()
            self.set_device_component(self._device)
            self.set_highlighting_session_component(self._session)
            self._session.set_mixer(self._mixer)
            self._encoder_modes = self._create_encoder_modes()
            self._track_modes = self._create_track_button_modes()
        self._device_selection_follows_track_selection = True
        with self.component_guard():
            self.register_disconnectable(SimpleLayerOwner(
                layer=Layer(_unused_buttons=self.wrap_matrix(self._unused_buttons))))

        # added from midiscripts.net
        # create session overview component
        # basically this component implements all complexity
        # of a session view, in this script we just re-use it
        # self._session was created by parent class
        with self.component_guard():
            self._session_overview = SessionZoomingComponent(
                self._session,
                name='Session_Overview',
                enable_skinning=True,
                is_enabled=True)
            self.log_message('_session_overview created')
Example #2
0
 def __init__(self, *a, **k):
     super(APC_mini, self).__init__(*a, **k)
     with self.component_guard():
         self.register_disconnectable(
             SimpleLayerOwner(layer=Layer(
                 _unused_buttons=self.wrap_matrix(self._unused_buttons))))
 def _create_fallback_control_owner(self):
     self.register_disconnectable(
         SimpleLayerOwner(
             layer=Layer(_matrix=self._session_matrix,
                         priority=FALLBACK_CONTROL_OWNER_PRIORITY)))
Example #4
0
 def _create_fallback_control_owner(self):
     self.register_disconnectable(
         SimpleLayerOwner(layer=Layer(_matrix=self._matrix, priority=0)))