Skip to content

Push2.scales_component

Module constants

  • Layout

Classes

class ScalesComponent(Component)

Bases: Component

Attributes

  • navigation_colors
  • in_key_toggle_button
  • fixed_toggle_button
  • horizontal_navigation
  • NUM_DISPLAY_ROWS = 4
  • NUM_DISPLAY_COLUMNS
  • _ScalesComponent__on_root_note_changed
  • _ScalesComponent__on_scale_changed
  • _ScalesComponent__on_interval_changed

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

_set_selected_scale_index(self, index)

down_button(self, button)

up_button(self, button)

left_button(self, button)

right_button(self, button)

root_note_buttons(self, button)

__on_root_note_changed(self, root_note)

root_note_names(self)

selected_root_note_index(self)

scale_encoders(self, value, encoder)

scale_names(self)

selected_scale_index(self)

__on_scale_changed(self, scale)

layout_encoder(self, value, encoder)

layout_names(self)

selected_layout_index(self)

selected_layout_index(self, index)

direction_encoder(self, value, encoder)

note_layout(self)

_update_horizontal_navigation(self)

__on_interval_changed(self, interval)

class ScalesEnabler(Component)

Bases: Component

__init__(self, enter_dialog_mode, exit_dialog_mode, *a, **k)

toggle_button(self, button)

toggle_button(self, button)

on_enabled_changed(self)