jdxi_editor.ui.editors.pattern.helper

Functions

reset_button(button)

reset the Sequencer button

reset_measure(measure)

_note_spec_from_button(button) → picomidi.ui.widget.button.note.NoteButtonEvent

Build the note spec from the button's note, length and velocity (steps preferred).

get_button_note_spec(button) → picomidi.ui.widget.button.note.NoteButtonEvent

Return the effective NoteButtonSpec (from attribute or built from attrs).

sync_button_note_spec(button) → None

Update button.note_spec from NOTE, NOTE_DURATION, NOTE_VELOCITY.

update_button_state(button[, checked_state, enabled_state])

set_spinbox_value(spinbox, value)

set spinbox value safely

set_sequencer_style(btn[, is_current, checked])

Apply Pattern Editor step style (muted on-state; accent playhead).

Module Contents

jdxi_editor.ui.editors.pattern.helper.reset_button(button: jdxi_editor.ui.widgets.pattern.sequencer_button.SequencerButton)[source]

reset the Sequencer button

jdxi_editor.ui.editors.pattern.helper.reset_measure(measure: jdxi_editor.ui.widgets.pattern.measure_widget.PatternMeasureWidget)[source]
jdxi_editor.ui.editors.pattern.helper._note_spec_from_button(button) → picomidi.ui.widget.button.note.NoteButtonEvent[source]

Build the note spec from the button’s note, length and velocity (steps preferred).

jdxi_editor.ui.editors.pattern.helper.get_button_note_spec(button) → picomidi.ui.widget.button.note.NoteButtonEvent[source]

Return the effective NoteButtonSpec (from attribute or built from attrs).

jdxi_editor.ui.editors.pattern.helper.sync_button_note_spec(button) → None[source]

Update button.note_spec from NOTE, NOTE_DURATION, NOTE_VELOCITY.

jdxi_editor.ui.editors.pattern.helper.update_button_state(button: PySide6.QtWidgets.QPushButton, checked_state: bool | None = None, enabled_state: bool | None = None)[source]
jdxi_editor.ui.editors.pattern.helper.set_spinbox_value(spinbox: PySide6.QtWidgets.QSpinBox, value: int)[source]

set spinbox value safely

jdxi_editor.ui.editors.pattern.helper.set_sequencer_style(btn: jdxi_editor.ui.widgets.pattern.sequencer_button.SequencerButton, is_current: bool = False, checked: bool = False)[source]

Apply Pattern Editor step style (muted on-state; accent playhead).