Skip to content

Push2.setup_component

Module constants

  • PAD_SETTING_STEP_SIZE = 20
  • MAX_DISPLAY_BRIGHTNESS = 255
  • MIN_USER_FACING_LED_BRIGHTNESS = 13
  • MIN_USER_FACING_DISPLAY_BRIGHTNESS = 2

Classes

class GeneralSettings(EventObject)

Bases: EventObject

Attributes

  • workflow
  • aftertouch_mode

class HardwareSettings(SerializableListenableProperties)

Bases: SerializableListenableProperties

Attributes

  • min_led_brightness
  • max_led_brightness = 127
  • led_brightness
  • min_display_brightness
  • max_display_brightness
  • display_brightness

class DisplayDebugSettings(SerializableListenableProperties)

Bases: SerializableListenableProperties

Attributes

  • show_row_spaces
  • show_row_margins
  • show_row_middle
  • show_button_spaces
  • show_unlit_button
  • show_lit_button

class Settings(CompoundDisconnectable)

Bases: CompoundDisconnectable

__init__(self, preferences, *a, **k)

general(self)

pad_settings(self)

hardware(self)

display_debug(self)

class GeneralSettingsComponent(Component)

Bases: Component

Attributes

  • workflow_encoder
  • aftertouch_mode_encoder

__init__(self, settings, hardware_settings, *a, **k)

led_brightness_encoder(self, value, encoder)

display_brightness_encoder(self, value, encoder)

class PadSettingsComponent(Component)

Bases: Component

__init__(self, pad_settings, hardware_settings, *a, **k)

sensitivity_encoder(self, value, encoder)

gain_encoder(self, value, encoder)

dynamics_encoder(self, value, encoder)

class DisplayDebugSettingsComponent(Component)

Bases: Component

Attributes

  • show_row_spaces_button
  • show_row_margins_button
  • show_row_middle_button
  • show_button_spaces_button
  • show_unlit_button_button
  • show_lit_button_button

__init__(self, settings, *a, **k)

class InfoComponent(Component)

Bases: Component

__init__(self, firmware_switcher, *a, **k)

install_firmware_button(self, button)

class SetupComponent(ModesComponent)

Bases: ModesComponent

Attributes

  • make_it_go_boom

__init__(self, settings, pad_curve_sender, firmware_switcher, *a, **k)

make_it_go_boom_button(self, _button)

general(self)

info(self)

pad_settings(self)

display_debug(self)

settings(self)

velocity_curve(self)

category_radio_buttons(self, button)