def __init__(self, is_momentary, msg_type, channel, identifier, send_channel=None, identifier_send_offset=0, send_msg_type=None):
     ButtonElement.__init__(self, is_momentary, msg_type, channel, identifier)
     self._send_channel = send_channel
     self._send_msg_type = send_msg_type
     self._identifier_send_offset = identifier_send_offset
     self._on_value = AMB_FULL
     self._off_value = LED_OFF
     self._is_enabled = True
     self._is_notifying = False
     self._force_next_value = False
     self._pending_listeners = []
Example #2
0
 def __init__(self, is_momentary, channel, row_index, column_index,
              color_source):
     ButtonElement.__init__(self, is_momentary, MIDI_NOTE_TYPE, channel,
                            MATRIX_NOTE_NR + row_index * 8 + column_index)
     self._is_enabled = True
     self._color_source = color_source
     self._row_index = row_index
     self._column_index = column_index
     self.last_value = None
     self.set_channel(NON_FEEDBACK_CHANNEL)
     self.state = 0
     self._PadColorButton__cc_enabled = True
Example #3
0
 def __init__(self, is_momentary, midi_type, identifier, channel,
              color_list):
     ButtonElement.__init__(self, is_momentary, midi_type, channel,
                            identifier)
     self._msg_identifier = identifier
     self._color_list = color_list
     self._last_color = None
     self._last_index = 0
     self._midi_type = midi_type
     self._IndexedButton__note_on_code = MIDI_NOTE_ON_STATUS | channel
     self._IndexedButton__grabbed = False
     self._IndexedButton__resource_hander = None