예제 #1
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)
예제 #2
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")
예제 #3
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._create_m4l_interface()
         self._session.set_mixer(self._mixer)
     self.set_highlighting_session_component(self._session)
     self.set_device_component(self._device)
예제 #4
0
    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)