コード例 #1
0
 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
コード例 #2
0
 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()
コード例 #3
0
 def __init__(self, *a, **k):
     super(APC40, self).__init__(*a, **k)
     self._color_skin = make_biled_skin()
     self._default_skin = make_default_skin()
     with self.component_guard():
         self._create_controls()
         self._create_session()
         self._create_mixer()
         self._create_device()
         self._create_detail_view_control()
         self._create_transport()
         self._create_global_control()
         self._create_fallback_control_owner()
         self._session.set_mixer(self._mixer)
         self.set_highlighting_session_component(self._session)
         self.set_device_component(self._device)
         for component in self.components:
             component.set_enabled(False)
コード例 #4
0
ファイル: APC40.py プロジェクト: aumhaa/livepy_diff
 def __init__(self, *a, **k):
     super(APC40, self).__init__(*a, **k)
     self._color_skin = make_biled_skin()
     self._default_skin = make_default_skin()
     with self.component_guard():
         self._create_controls()
         self._create_session()
         self._create_mixer()
         self._create_device()
         self._create_detail_view_control()
         self._create_transport()
         self._create_global_control()
         self._create_fallback_control_owner()
         self._session.set_mixer(self._mixer)
         self.set_highlighting_session_component(self._session)
         self.set_device_component(self._device)
         for component in self.components:
             component.set_enabled(False)
コード例 #5
0
    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')
コード例 #6
0
 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)
コード例 #7
0
 def __init__(self, c_instance):
     super(Midi_Fighter_64, self).__init__(c_instance)
     self._color_skin = make_rgb_skin()
     self._default_skin = make_default_skin()
     with self.component_guard():
         global _map_modes
         _map_modes = Live.MidiMap.MapMode
         self.current_track_offset = 0
         self.current_scene_offset = 0
         # mixer
         global mixer
         num_tracks = 128
         num_returns = 24
         self.mixer = MixerComponent(num_tracks, num_returns)
         global active_mode
         #self._mode0()
         active_mode = "_mode1"
         self._set_active_mode()
         self._set_track_select_led()
         self.show_message("Powered by DJ TechTools")
コード例 #8
0
 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
コード例 #9
0
ファイル: APC40_MkII.py プロジェクト: aumhaa/livepy_diff
 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)
コード例 #10
0
    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
コード例 #11
0
ファイル: APC40_MkII.py プロジェクト: xnamahx/APC40_MkIIx
    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)