Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 def __init__(self):
     NotifyingControlElement.__init__(self)
     self._buttons = []
     self._button_coordinates = {}
     self._max_row_width = 0
Пример #5
0
 def disconnect(self):
     NotifyingControlElement.disconnect(self)
     self._buttons = None
     self._button_coordinates = None
Пример #6
0
 def disconnect(self):
     NotifyingControlElement.disconnect(self)
     self._parameter_to_map_to = None
Пример #7
0
 def __init__(self):
     NotifyingControlElement.__init__(self)
     self._buttons = []
     self._button_coordinates = {}
     self._max_row_width = 0
Пример #8
0
 def disconnect(self):
     NotifyingControlElement.disconnect(self)
     self._buttons = None
     self._button_coordinates = None
Пример #9
0
 def disconnect(self):
     NotifyingControlElement.disconnect(self)
     self._parameter_to_map_to = None