jdxi_editor.ui.widgets.pattern.step_guide

Step Guide

The grey step-length lines printed above the JD-Xi’s 16 step buttons, drawn above the Pattern Editor’s steps: groups of 3 steps (across the first 12), of 8, and of 4.

───── ───── ───── ───── ─────────────── ─────────────── ─────── ─────── ─────── ─────── [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]

Each line runs from the left edge of its first step to the right edge of its last, read from the step buttons themselves, so it lines up however the row is laid out.

Attributes

GUIDE_ROWS

LINE_COLOR

LINE_WIDTH

ROW_SPACING

MARGIN

Classes

StepGuide

Step-length lines above a row of step buttons.

Module Contents

jdxi_editor.ui.widgets.pattern.step_guide.GUIDE_ROWS = ((3, 4), (8, 2), (4, 4))[source]
jdxi_editor.ui.widgets.pattern.step_guide.LINE_COLOR = '#8C8C8C'[source]
jdxi_editor.ui.widgets.pattern.step_guide.LINE_WIDTH = 2[source]
jdxi_editor.ui.widgets.pattern.step_guide.ROW_SPACING = 9[source]
jdxi_editor.ui.widgets.pattern.step_guide.MARGIN = 6[source]
class jdxi_editor.ui.widgets.pattern.step_guide.StepGuide(step_buttons: Callable[[], Sequence[PySide6.QtWidgets.QWidget]], parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

Step-length lines above a row of step buttons.

_step_buttons[source]
segments() → list[tuple[int, int, int]][source]

(x1, x2, y) of every line, in this widget’s coordinates.

paintEvent(event: PySide6.QtGui.QPaintEvent) → None[source]