def __init__(self, identifier, skin=button_skin(0), *a, **k):
     super(BaseButtonElement, self).__init__(True,
                                             MIDI_NOTE_TYPE,
                                             CHANNEL,
                                             identifier,
                                             is_rgb=True,
                                             skin=skin,
                                             *a,
                                             **k)
Esempio n. 2
0
 def _create_modifier_buttons(self):
   self.utility_button_lights = []
   for index in range(8):
     self.utility_buttons.append(
       create_modifier_button(BASE_BUTTONS[index], 
         "BUTTON_" + str(index + 1),
         skin = button_skin(index)))
     self.utility_button_lights.append(
       create_button(BASE_BUTTON_LIGHTS[index], 
         "BUTTON_LIGHT_" + str(index + 1),
         skin = white_button_skin()))
   self._session_button = self.utility_buttons[0]
   self._note_button = self.utility_buttons[1] 
   self._device_button = self.utility_buttons[2] 
   self._sequence_button = self.utility_buttons[3] 
 def __init__(self, identifier, skin = button_skin(0), *a, **k):
   super(BaseButtonElement, self).__init__(True, MIDI_NOTE_TYPE, 
       CHANNEL, identifier, is_rgb = True, skin = skin,
       *a, **k)