switch.partial

This module provides a graphical user interface for controlling individual partials within a digital synthesizer patch using PySide6. It includes checkbox-based widgets to enable and select specific partials.

Classes:

  • PartialSwitch: A UI component representing a single partial with ON/OFF and selection controls.

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

Features:

  • Uses QCheckBox widgets to toggle partial states.

  • Supports custom styling with a dark theme and red-accented selection indicators.

  • Integrates qtawesome icons for better UI visualization.

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

Usage Example:

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

Classes

PartialSwitch

Widget for controlling address single partial's state

Module Contents

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

Bases: PySide6.QtWidgets.QWidget

Widget for controlling address single partial’s state

stateChanged[source]
partial[source]
enable_check[source]
select_check[source]
_on_state_changed(_)[source]

Handle checkbox state changes

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

Set the partial state

setSelected(selected: bool)[source]

Set the partial state