jdxi_editor.ui.editors.drum.common

This module defines the DrumCommonSection class, which provides a PySide6-based user interface for editing drum common parameters in the Roland JD-Xi synthesizer. It extends the QWidget base class and integrates MIDI communication for real-time parameter adjustments and preset management.

Key Features:

  • Provides a graphical editor for modifying drum common parameters.

  • Currently includes Kit Level control (the primary common parameter for drum kits).

  • Note: Tone name is handled by the instrument preset group, not this section.

Classes

DrumCommonSection

Drum Common Section for the JDXI Editor

Module Contents

class jdxi_editor.ui.editors.drum.common.DrumCommonSection(controls: dict, create_parameter_combo_box: Callable, create_parameter_slider: Callable, midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper, address: jdxi_editor.midi.data.address.address.JDXiSysExAddress)[source]

Bases: jdxi_editor.ui.widgets.editor.section_base.SectionBaseWidget

Drum Common Section for the JDXI Editor

controls[source]
_create_parameter_slider[source]

Create a slider for an address parameter with proper digital conversion.

Parameters:
  • param – AddressParameter Parameter to create slider for

  • label – str label for the slider

  • initial_value – int initial value for the slider

  • vertical – bool whether the slider is vertical

  • address – RolandSysExAddress

  • show_value_label – str whether to show the value label

Returns:

Slider

_create_parameter_combo_box[source]

Create a combo box for an address parameter with options and values.

Parameters:
  • param – AddressParameter

  • label – str label for the combo box

  • options – list of options to digital in the combo box

  • values – list of values corresponding to the options (or options if options is None)

  • show_label – bool whether to show the label

Returns:

ComboBox

midi_helper[source]
address[source]
_setup_ui()[source]

Assemble section UI

setup_ui()[source]

setup UI