Skip to content

pushbase.note_editor_component

Module constants

  • ONE_YEAR_AT_120BPM_IN_BEATS = 63072000.0
  • DEFAULT_VELOCITY = 100
  • DEFAULT_START_NOTE = 36
  • DEFAULT_VELOCITY_RANGE_THRESHOLDS
  • VELOCITY_RANGE_INDEX_TO_COLOR
  • BEAT_TIME_EPSILON = 1e-05
  • MAX_CLIP_LENGTH = 100000000
  • RELATIVE_OFFSET = 0.24

Classes

class TimeStep(object)

Bases: object

__init__(self, start, length, *a, **k)

offset(self)

left_boundary(self)

right_boundary(self)

includes_note(self, note)

overlaps_note(self, note)

filter_notes(self, notes)

clamp(self, time, extra_time)

includes_time(self, time)

connected_time_ranges(self)

class NullVelocityProvider(EventObject)

Bases: EventObject

velocity(self)

set_velocities_playable(self, playable)

class NoteEditorComponent(Component)

Bases: Component

Attributes

  • modify_all_notes_enabled
  • editing_notes
  • _NoteEditorComponent__on_resolution_changed
  • _NoteEditorComponent__on_provided_velocity_changed

__init__(self, clip_creator, grid_resolution, skin_base_key, velocity_range_thresholds, velocity_provider, get_notes_handler, remove_notes_handler, duplicate_all_notes, *a, **k)

page_index(self)

page_length(self)

can_change_page(self)

notes_in_selected_step(self)

set_selected_page_point(self, point)

_get_modify_all_notes_enabled(self)

_set_modify_all_notes_enabled(self, enabled)

set_detail_clip(self, clip)

_can_edit(self)

_get_editing_notes(self)

_set_editing_notes(self, pitches)

_get_width(self)

_get_height(self)

set_matrix(self, matrix)

set_step_duplicator(self, duplicator)

update(self)

_get_clip_notes_time_range(self)

_on_clip_notes_changed(self)

_update_editor_matrix(self)

_determine_color(self, notes)

_visible_steps(self)

_update_editor_matrix_leds(self)

_get_step_count(self)

get_step_start_time(self, step)

_get_step_length(self)

get_row_start_times(self)

_update_from_grid(self)

mute_button(self, button)

__on_resolution_changed(self, *a)

matrix(self, button)

matrix(self, button)

_on_pad_pressed(self, coordinate)

_on_pad_released(self, coordinate)

_can_press_or_release_step(self, x, y)

__on_provided_velocity_changed(self)

_get_step_time_range(self, step)

editing_note_regions(self)

active_time_spans(self)

active_steps(self)

active_note_regions(self)

_get_time_range(self, step)

_release_active_steps(self)

_on_release_step(self, step, do_delete_notes)

_find_continued_step(self, step)

_add_step_to_duplicator(self, step)

_on_press_step(self, step)

_modify_length_of_notes_within_existing_step(self, existing_time_step, new_step)

_time_step(self, time)

_get_notes_info_from_step(self, step)

toggle_pitch_for_all_modified_steps(self, pitch)

_add_new_note_in_step(self, step, pitch, time)

_add_or_modify_note_in_step(self, step, pitch, modify_existing)

_delete_notes_in_step(self, step)

set_nudge_offset(self, value)

set_length_offset(self, value)

set_velocity_offset(self, value)

set_velocity_deviation_offset(self, value)

set_probability_offset(self, value)

_modify_note_property(self, note_property, value)

_full_velocity_context(self, desired_full_velocity_state)

set_full_velocity(self)

notify_modification(self)

_trigger_modification(self, step, done, immediate)

_reset_modifications(self)

_do_modification(self)

_replace_notes(self)

_modify_all_notes(self)

_limited_nudge_offset(self, steps, notes, nudge_offset)

_modify_step_notes(self, steps)

_modify_notes_in_time(self, time_step, notes, length_offset)

_modify_single_note(self, step_mute, time_step, length_offset, note)

get_min_max_note_values(self)

Functions

color_for_note(note, velocity_range_thresholds)

most_significant_note(notes)

is_triplet_quantization(triplet_factor)

min_max_for_notes(notes, start_time, min_max_values)

get_all_notes(clip, time, _, length)

remove_all_notes(clip, time, _, length)

get_single_note(clip, time, notes, length)

remove_single_note(clip, time, notes, length)