jdxi_editor.ui.widgets.switch.partial

This module provides a graphical user interface for controlling individual partials within a digital synthesizer patch using PySide6: an On and a Select switch per partial, the small round buttons with a text label used in the MIDI Player (e.g. its “Save”), lit when active.

Classes:

  • PartialSwitch: A UI component representing a single partial with On and Select switches.

  • PartialsPanel: A container widget that groups multiple PartialSwitch components for managing multiple partials at once.

Features:

  • Uses round mini switches (the MIDI Player’s style) to toggle partial states.

  • Emits signals when partial states change, allowing external components to respond to updates dynamically.

Usage Example:

>>> panel = PartialsPanel()
>>> panel.show()

Classes

PartialSwitch

A partial's On and Select switches: small round buttons with a label, lit when active.

Module Contents

class jdxi_editor.ui.widgets.switch.partial.PartialSwitch(partial: jdxi_editor.midi.data.digital.partial.DigitalPartial, parent=None)[source]

Bases: jdxi_editor.ui.common.QWidget

A partial’s On and Select switches: small round buttons with a label, lit when active.

stateChanged[source]
partial[source]
enable_check[source]
select_check[source]
static _switch(text: str) → PySide6.QtWidgets.QCheckBox[source]
_on_state_changed(_)[source]

Handle button state changes

setState(enabled: bool, selected: bool)[source]

Set the partial state

setOn(enabled: bool)[source]

Set only the ON state (SELECT is unchanged)

setSelected(selected: bool)[source]

Set the partial state