jdxi_editor.ui.widgets.pattern.sequencer_button

Sequencer step button with row, column, and note data.

Note data is canonical in note_spec (a StepNoteEvent); note, note_steps, note_duration (ms at the pattern tempo) and note_velocity are properties that read/write through it.

Classes

SequencerButton

A checkable step button for the pattern sequencer with row, column, and note state.

Module Contents

class jdxi_editor.ui.widgets.pattern.sequencer_button.SequencerButton(row: int, column: int, parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QPushButton

A checkable step button for the pattern sequencer with row, column, and note state.

row: int[source]
column: int[source]
note_spec: jdxi_editor.ui.editors.pattern.step_note.StepNoteEvent[source]
property note: int | None[source]
property extra_notes: list[jdxi_editor.ui.editors.pattern.step_note.ChordNote][source]

Notes on this step besides the main one (chord / extra drum hits).

refresh_note_count() → None[source]

Show how many notes the step plays when it is more than one.

property note_steps: float | None[source]

Note length in steps (16th notes); the canonical length.

property note_duration: float | None[source]
property note_velocity: int | None[source]
property duration: float | None[source]
property duration_ms: float | None[source]

Alias for note_duration (ms) for pattern/manager compatibility.

property velocity: int | None[source]