def __init__(self, *a, **k): super(APC_Key_25, self).__init__(*a, **k) 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._session.set_mixer(self._mixer) self._encoder_modes = self._create_encoder_modes() self._track_modes = self._create_track_button_modes()
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')
def __init__(self, *a, **k): super(APC40_MkII, self).__init__(*a, **k) self._color_skin = make_rgb_skin() self._default_skin = make_default_skin() self._stop_button_skin = make_stop_button_skin() self._crossfade_button_skin = make_crossfade_button_skin() with self.component_guard(): self._create_controls() self._create_bank_toggle() self._create_session() self._create_mixer() self._create_transport() self._create_device() self._create_view_control() self._create_quantization_selection() self._create_recording() self._session.set_mixer(self._mixer) self.set_highlighting_session_component(self._session) self.set_device_component(self._device)
def __init__(self, *a, **k): super(APC40_Mod, self).__init__(*a, **k) self._color_skin = merge_skins(make_default_skin(), make_biled_skin()) self._default_skin = make_default_skin() self._stop_button_skin = merge_skins(make_default_skin(), make_stop_button_skin()) with self.component_guard(): self._create_controls() self._create_session() self._create_mixer() self._create_transport() self._create_device() self._create_view_control() self._create_quantization_selection() self._init_track_modes() self._create_m4l_interface() self._session.set_mixer(self._mixer) self.set_highlighting_session_component(self._session) self.set_device_component(self._device) self._device_selection_follows_track_selection = True
def __init__(self, *a, **k): super(APC_Key_25, self).__init__(*a, **k) 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
def __init__(self, *a, **k): super(APC40_MkII, self).__init__(*a, **k) self._color_skin = make_rgb_skin() self._default_skin = make_default_skin() self._stop_button_skin = make_stop_button_skin() self._crossfade_button_skin = make_crossfade_button_skin() with self.component_guard(): self._create_controls() self._create_bank_toggle() self._create_session() self._create_mixer() self._create_transport() self._create_device() self._create_view_control() self._create_quantization_selection() self._create_recording() self._create_m4l_interface() self._session.set_mixer(self._mixer) self.set_highlighting_session_component(self._session) self.set_device_component(self._device)
def __init__(self, *a, **k): super(APC_Key_25, self).__init__(*a, **k) 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._create_encoder_modes() self._create_track_button_modes() for component in self.components: component.set_enabled(False) self._device_selection_follows_track_selection = True
def __init__(self, *a, **k): #pydevd.settrace('localhost', port=55983, stdoutToServer=True, stderrToServer=True) super(APC40_MkII, self).__init__(*a, **k) self._color_skin = make_rgb_skin() self._default_skin = make_default_skin() self._stop_button_skin = make_stop_button_skin() self._crossfade_button_skin = make_crossfade_button_skin() self._double_press_context = DoublePressContext() self._shift_button = None with self.component_guard(): self._create_controls() self._create_bank_toggle() self._create_mixer() self._create_transport() self._create_view_control() self._create_quantization_selection() self._create_recording() self._skin = make_custom_skin() self._clip_creator = ClipCreator() self._init_background() self._init_instrument() self._init_step_sequencer() self._init_drum_component() self._init_note_repeat() self._create_session() self._session.set_mixer(self._mixer) self._init_matrix_modes() self._create_device() self.set_feedback_channels(FEEDBACK_CHANNELS) self.set_highlighting_session_component(self._session) self.set_device_component(self._device)