Skip to content

Move.instrument

Module constants

  • DEFAULT_SCALE

Classes

class NoteLayout(EventObject, Renderable)

Bases: EventObject, Renderable

Attributes

  • _NoteLayout__on_root_note_changed
  • _NoteLayout__on_scale_name_changed

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

notes(self)

root_note(self)

root_note(self, root_note)

scale(self)

scale(self, scale)

is_in_key(self)

is_in_key(self, is_in_key)

toggle_is_in_key(self)

interval_name(self)

interval(self)

interval(self, interval)

toggle_interval(self)

_get_scale_from_name(name)

__on_root_note_changed(self)

__on_scale_name_changed(self)

class InstrumentComponent(PlayableComponent, PageComponent, Pageable, Renderable, PitchProvider)

Bases: PlayableComponent, PageComponent, Pageable, Renderable, PitchProvider

Attributes

  • is_polyphonic = True
  • _InstrumentComponent__on_active_steps_changed

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

note_layout(self)

page_length(self)

position_count(self)

_first_scale_note_offset(self)

page_offset(self)

position(self)

position(self, note)

min_pitch(self)

max_pitch(self)

pattern(self)

set_note_editor(self, note_editor)

_on_matrix_pressed(self, button)

scroll_page_up(self)

scroll_page_down(self)

scroll_up(self)

scroll_down(self)

_align_first_note(self)

_on_note_layout_changed(self, _)

_update_scale(self)

update(self)

_update_pattern(self)

_invert_and_swap_coordinates(self, coordinates)

_get_note_info_for_coordinate(self, coordinate)

_update_button_color(self, button)

_button_should_be_enabled(self, button)

_note_translation_for_button(self, button)

_update_matrix(self)

__on_active_steps_changed(self)

_get_pattern(self, first_note)