def __init__(self, msg_type, channel, identifier): assert (msg_type in MIDI_MSG_TYPES) assert (channel in range(16)) assert ((identifier in range(128)) or (identifier is -1)) NotifyingControlElement.__init__(self) assert (InputControlElement._mapping_callback != None) assert (InputControlElement._forwarding_callback != None) assert (InputControlElement._translation_callback != None) self._msg_type = msg_type self._msg_channel = channel self._msg_identifier = identifier self._original_channel = channel self._original_identifier = identifier self._needs_takeover = True self._is_mapped = True self._is_being_forwarded = True self._mapping_feedback_delay = 0 self._parameter_to_map_to = None self._last_sent_value = -1 self._install_mapping = InputControlElement._mapping_callback self._install_forwarding = InputControlElement._forwarding_callback self._install_translation = InputControlElement._translation_callback self._report_input = False self._report_output = False return None
def __init__(self, msg_type, channel, identifier): assert (msg_type in MIDI_MSG_TYPES) assert (channel in range(16)) assert ((identifier in range(128)) or (identifier is -1)) NotifyingControlElement.__init__(self) assert (InputControlElement._mapping_callback != None) assert (InputControlElement._forwarding_callback != None) assert (InputControlElement._translation_callback != None) self._msg_type = msg_type self._msg_channel = channel self._msg_identifier = identifier self._original_channel = channel self._original_identifier = identifier self._parameter_to_map_to = None self._last_sent_value = -1 self._install_mapping = InputControlElement._mapping_callback self._install_forwarding = InputControlElement._forwarding_callback self._install_translation = InputControlElement._translation_callback
def __init__(self): NotifyingControlElement.__init__(self) self._buttons = [] self._button_coordinates = {} self._max_row_width = 0