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
draw_display()
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
Functions
|
A panel of the instrument, in the active skin's material. |
|
Create a visual representation of the JD-Xi instrument panel. |
|
Draw the sequencer section of the JD-Xi interface. |
Module Contents
- 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