Skip to content

pushbase.instrument_component

Module constants

  • DEFAULT_SCALE

Classes

class NoteLayout(EventObject)

Bases: EventObject

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)

is_fixed(self)

is_fixed(self, is_fixed)

interval(self)

interval(self, interval)

tuning_system_interval(self)

tuning_system_interval(self, interval)

is_horizontal(self)

is_horizontal(self, is_horizontal)

_get_scale_from_name(self, name)

__on_root_note_changed(self)

__on_scale_name_changed(self)

class InstrumentComponent(PlayableComponent, Slideable, Messenger)

Bases: PlayableComponent, Slideable, Messenger

Attributes

  • _InstrumentComponent__on_detail_clip_changed
  • _InstrumentComponent__on_tuning_system_changed
  • position

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

__on_detail_clip_changed(self)

set_detail_clip(self, clip)

__on_tuning_system_changed(self)

_on_clip_notes_changed(self)

_on_loop_start_changed(self)

_on_loop_end_changed(self)

_on_loop_selection_changed(self)

contents(self, index)

show_notifications(self)

show_notifications(self, value)

page_length(self)

position_count(self)

_first_scale_note_offset(self)

page_offset(self)

_get_position(self)

_set_position(self, note)

min_pitch(self)

max_pitch(self)

pattern(self)

matrix(self, button)

_on_matrix_pressed(self, button)

matrix(self, button)

_on_matrix_released(self, button)

_do_delete_pitch(self, pitch)

delete_button(self, value)

delete_button(self, value)

set_note_strip(self, strip)

set_octave_strip(self, strip)

set_octave_up_button(self, button)

set_octave_down_button(self, button)

set_scale_up_button(self, button)

set_scale_down_button(self, button)

set_aftertouch_control(self, control)

set_aftertouch_mode(self, mode)

_align_first_note(self)

_on_note_layout_changed(self, _)

show_pitch_range_notification(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)

_set_button_control_properties(self, button)

_update_matrix(self)

_get_pattern(self, first_note)

_update_aftertouch(self)

class SelectedNotesProvider(EventObject)

Bases: EventObject

Attributes

  • _selected_notes

selected_notes(self)

selected_notes(self, notes)

add_note(self, note)

remove_note(self, note)

toggle_note(self, note)

class SelectedNotesInstrumentComponent(InstrumentComponent)

Bases: InstrumentComponent

Attributes

  • _SelectedNotesInstrumentComponent__on_pressed_step_changed
  • _SelectedNotesInstrumentComponent__on_position_changed
  • _SelectedNotesInstrumentComponent__on_selected_track_changed

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

set_matrix(self, matrix)

_commit_pressed_notes(self)

_add_pitch(self, pitch)

_toggle_pitch_in_note_editor(self, pitch)

_set_matrix_listenable_and_playable(self)

_set_matrix_unplayable(self)

_set_control_pads_from_script(self, is_unplayable)

_get_color_for_button_in_selected_step(self, button)

_show_notes_in_selected_step(self)

_on_matrix_pressed(self, button)

_on_matrix_released(self, button)

_is_note_editor_step_active(self)

__on_pressed_step_changed(self)

_update_button_color(self, button)

_set_button_control_properties(self, button)

__on_position_changed(self)

__on_selected_track_changed(self)

_updating_selected_notes_model(self)

Functions

get_tuning_system_lowest_octave(tuning_system)