示例#1
0
 def _create_controls(self):
     super(Komplete_Kontrol_S_Mk2, self)._create_controls()
     self._selected_track_mute_button = create_button(
         102, 'Selected_Track_Mute_Button')
     self._selected_track_solo_button = create_button(
         103, 'Selected_Track_Solo_Button')
     self._selected_track_type_button = create_button(
         104, 'Selected_Track_Type_Button')
     self._selected_track_muted_via_solo_button = create_button(
         105, 'Selected_Track_Muted_via_Solo_Button')
     self._track_encoder = create_encoder(48, 'Track_Encoder')
     self._bank_encoder = create_encoder(49, 'Bank_Encoder')
     self._scene_encoder = create_encoder(50, 'Scene_Encoder')
     self._selected_track_volume_encoder = create_encoder(
         100, 'Selected_Track_Volume_Encoder', is_s_mk2=True)
     self._selected_track_pan_encoder = create_encoder(
         101, 'Selected_Track_Pan_Encoder', is_s_mk2=True)
     self._selection_control = create_slider_element(
         66, 'Selection_Control')
     self._mute_control = create_slider_element(67, 'Mute_Control')
     self._solo_control = create_slider_element(68, 'Solo_Control')
     self._track_arm_displays = ButtonMatrixElement(
         rows=[[
             create_sysex_element(sysex.TRACK_ARM_DISPLAY_HEADER, index,
                                  'Track_Arm_Display_{}'.format(index))
             for index in range(NUM_TRACKS)
         ]],
         name='Track_Arm_Displays')
     self._track_meter_display = MeterDisplayElement(
         (sysex.TRACK_METER_DISPLAY_HEADER),
         NUM_TRACKS,
         name='Track_Meter_Display')
 def _create_controls(self):
     super(Komplete_Kontrol_A, self)._create_controls()
     self._mute_button = create_button(67, 'Mute_Button')
     self._solo_button = create_button(68, 'Solo_Button')
     self._vertical_encoder = create_encoder(48, 'Vertical_Encoder')
     self._horizontal_encoder = create_encoder(50, 'Horizontal_Encoder')