def __init__(self, model=None, *a, **k): assert model is not None self._model = model super(Elements, self).__init__( continuous_mapping_sensitivity=CONTINUOUS_MAPPING_SENSITIVITY, fine_grained_continuous_mapping_sensitivity= FINE_GRAINED_CONTINUOUS_MAPPING_SENSITIVITY, *a, **k) for button in self.select_buttons_raw: button.is_rgb = True self.mix_button = self.single_track_mix_mode_button self.page_left_button = self.in_button self.page_left_button.name = 'Page_Left_Button' self.page_right_button = self.out_button self.page_right_button.name = 'Page_Right_Button' self.global_mute_button.is_rgb = True self.global_solo_button.is_rgb = True self.global_track_stop_button.is_rgb = True self.play_button.is_rgb = True self.record_button.is_rgb = True self.automation_button.is_rgb = True for button in self.side_buttons_raw: button.is_rgb = True self.convert_button = create_button(35, 'Convert') self.setup_button = create_button(30, 'Setup_Button') self.layout_button = create_button(31, 'Layout') self._create_touch_strip() self.aftertouch_control = SysexElement( send_message_generator=sysex.make_aftertouch_mode_message, default_value='polyphonic') return
def __init__(self, model = None, *a, **k): raise model is not None or AssertionError self._model = model super(Elements, self).__init__(continuous_mapping_sensitivity=CONTINUOUS_MAPPING_SENSITIVITY, fine_grained_continuous_mapping_sensitivity=FINE_GRAINED_CONTINUOUS_MAPPING_SENSITIVITY, *a, **k) for button in self.select_buttons_raw: button.is_rgb = True self.mix_button = self.single_track_mix_mode_button self.page_left_button = self.in_button self.page_left_button.name = 'Page_Left_Button' self.page_right_button = self.out_button self.page_right_button.name = 'Page_Right_Button' self.global_mute_button.is_rgb = True self.global_solo_button.is_rgb = True self.global_track_stop_button.is_rgb = True self.play_button.is_rgb = True self.record_button.is_rgb = True self.automation_button.is_rgb = True for button in self.side_buttons_raw: button.is_rgb = True self.convert_button = create_button(35, 'Convert') self.setup_button = create_button(30, 'Setup_Button') self.layout_button = create_button(31, 'Layout') self._create_touch_strip() self.aftertouch_control = SysexElement(send_message_generator=sysex.make_aftertouch_mode_message, default_value='polyphonic')
def __init__(self, model=None, *a, **k): raise model is not None or AssertionError self._model = model super(Elements, self).__init__(*a, **k) for button in self.select_buttons_raw: button.is_rgb = True self.mix_button = self.single_track_mix_mode_button self.page_left_button = self.in_button self.page_left_button.name = 'Page_Left_Button' self.page_right_button = self.out_button self.page_right_button.name = 'Page_Right_Button' self.global_mute_button.is_rgb = True self.global_solo_button.is_rgb = True self.global_track_stop_button.is_rgb = True self.play_button.is_rgb = True self.record_button.is_rgb = True self.automation_button.is_rgb = True for button in self.side_buttons_raw: button.is_rgb = True self.convert_button = create_button(35, 'Convert') self.setup_button = create_button(30, 'Setup_Button') self.layout_button = create_button(31, 'Layout') self._create_touch_strip() self.aftertouch_control = SysexElement( send_message_generator=sysex.make_aftertouch_mode_message, default_value='polyphonic') return
def _remove_pedal(self): #self.real_foot_pedal_button = self.elements.foot_pedal_button self.elements.foot_pedal_button = DoublePressElement(create_button(127, name = 'Foot_Pedal', skin = self._skin, is_rgb=True)) for control in self.controls: if isinstance(control, ConfigurableButtonElement) and control._original_identifier is 69: self.log_message('found control: ' + str(control)) self.controls.remove(control) break self.request_rebuild_midi_map()