jdxi_editor.ui.image.instrument

This module provides functions to generate a visual representation of the Roland JD-Xi synthesizer interface using PySide6. It renders key UI elements, including the digital, sequencer section, and keyboard.

Functions

Dependencies

  • PySide6.QtCore (Qt)

  • PySide6.QtGui (QFont, QPixmap, QImage, QPainter, QPen, QColor)

  • jdxi_editor.ui.windows.jdxi.dimensions (JDXI_WIDTH, JDXI_HEIGHT, etc.)

Usage

These functions generate and digital a graphical representation of the JD-Xi’s controls, which can be integrated into a larger PySide6-based UI.

Attributes

PANEL_INSET

PANEL_SPLIT_X

PANEL_SPLIT_GAP

Functions

draw_gloss_panel(painter, rect, sheen) → None

A panel of the instrument, in the active skin's material.

draw_instrument_pixmap() → PySide6.QtGui.QPixmap

Create a visual representation of the JD-Xi instrument panel.

draw_sequencer(painter) → None

Draw the sequencer section of the JD-Xi interface.

Module Contents

jdxi_editor.ui.image.instrument.PANEL_INSET = 7[source]
jdxi_editor.ui.image.instrument.PANEL_SPLIT_X = 498[source]
jdxi_editor.ui.image.instrument.PANEL_SPLIT_GAP = 4[source]
jdxi_editor.ui.image.instrument.draw_gloss_panel(painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRectF, sheen: bool) → None[source]

A panel of the instrument, in the active skin’s material.

The picture of the instrument wears the same faceplate as the editors, so choosing a skin re-dresses the whole application rather than its panels alone.

Parameters:
  • painter – QPainter

  • rect – QRectF the panel’s area

  • sheen – bool draw the diagonal reflection (the glossy skin only)

Returns:

None

jdxi_editor.ui.image.instrument.draw_instrument_pixmap() → PySide6.QtGui.QPixmap[source]

Create a visual representation of the JD-Xi instrument panel.

The body is rough matte black (dark grey, with grain); the controls sit on an inset of shiny black plastic in two halves, as on the JD-Xi.

Returns:

QPixmap representation of the JD-Xi interface.

Return type:

QPixmap

jdxi_editor.ui.image.instrument.draw_sequencer(painter: PySide6.QtGui.QPainter) → None[source]

Draw the sequencer section of the JD-Xi interface.

Parameters:

painter (QPainter) – QPainter instance used for drawing.

Returns:

None

Return type:

None