Skip to content

pushbase.fixed_length

Module constants

  • Quantization
  • LENGTH_OPTIONS
  • LENGTH_OPTION_NAMES = ('1 Beat', '2 Beats', '1 Bar', '2 Bars', '4 Bars', '8 Bars', '16 Bars', '32 Bars')
  • LENGTH_LABELS = ('Recording length:', '', '', '')
  • DEFAULT_LENGTH_OPTION_INDEX

Classes

class FixedLengthSetting(EventObject)

Bases: EventObject

Attributes

  • option_names
  • selected_index
  • enabled
  • legato_launch

get_selected_length(self, song)

class FixedLengthSettingComponent(Component)

Bases: Component

Attributes

  • length_option_buttons
  • fixed_length_toggle_button
  • legato_launch_toggle_button
  • label_display_line
  • option_display_line
  • _FixedLengthSettingComponent__on_setting_selected_index_changes

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

__on_setting_selected_index_changes(self, index)

_update_option_display(self)

class FixedLengthComponent(Component, Messenger)

Bases: Component, Messenger

Attributes

  • _FixedLengthComponent__on_setting_enabled_changes

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

fixed_length_toggle_button(self, button)

fixed_length_toggle_button(self, button)

fixed_length_toggle_button(self, button)

fixed_length_toggle_button(self, button)

_set_loop(self)

__on_setting_enabled_changes(self, enabled)