jdxi_editor.ui.preset.widget

Preset Widget to be used by All Editors

Classes

InstrumentPresetWidget

InstrumentPresetWidget

Module Contents

class jdxi_editor.ui.preset.widget.InstrumentPresetWidget(parent: jdxi_editor.ui.editors.synth.editor.SynthEditor)[source]

Bases: jdxi_editor.ui.common.QWidget

InstrumentPresetWidget

midi_channel_combo = None[source]
midi_channel_combo_row = None[source]
group: PySide6.QtWidgets.QGroupBox | None = None[source]
layout: jdxi_editor.ui.common.QVBoxLayout | None = None[source]
instrument_presets: jdxi_editor.ui.common.QWidget | None = None[source]
widget: jdxi_editor.ui.common.QWidget | None = None[source]
hlayout: PySide6.QtWidgets.QHBoxLayout | None = None[source]
parent[source]
_synth_type: str = ''[source]
_preset_list: list = [][source]
instrument_selection_combo: jdxi_editor.ui.widgets.combo_box.searchable_filterable.SearchableFilterableComboBox | None = None[source]
tone_midi_info_bar: jdxi_editor.ui.widgets.midi.selection_info_bar.MidiSelectionInfoBar | None = None[source]
cheat_midi_info_bar: jdxi_editor.ui.widgets.midi.selection_info_bar.MidiSelectionInfoBar | None = None[source]
tone_midi_info = None[source]
_refresh_preset_list() → None[source]

Refresh the preset combo box when SoundFont list setting changes.

add_image_group(group: PySide6.QtWidgets.QGroupBox)[source]

add the image beside the preset panel; the pair stays centred

add_preset_group(group: PySide6.QtWidgets.QGroupBox)[source]

add groupbox for instruments (as tall as its contents)

setup()[source]

set up the widget - creates the main vertical layout

create_instrument_image_group() → tuple[PySide6.QtWidgets.QGroupBox, Any, Any][source]

Image group — frameless overview panel (no heavy inset card).

_add_round_action_button(icon_enum: Any, text: str, slot: Any, layout: PySide6.QtWidgets.QHBoxLayout, *, name: str | None = None, checkable: bool = False) → PySide6.QtWidgets.QPushButton[source]

Create a round button with icon + text label (same style as Transport).

_add_centered_round_button(icon_enum: Any, text: str, slot: Any, parent_layout: Any, name: str | None = None) → PySide6.QtWidgets.QPushButton[source]

Add a round button + label row centered in a QHBoxLayout (stretch on both sides).

create_instrument_preset_group(synth_type: str = 'Analog') → PySide6.QtWidgets.QGroupBox[source]

Create the instrument preset group box with tabs for normal and cheat presets (Analog only).

Parameters:

synth_type – str

Returns:

QGroupBox

_add_normal_preset_content(layout: Any, synth_type: str)[source]

Add normal preset selection content to the layout.

_add_cheat_preset_content(layout: jdxi_editor.ui.common.QVBoxLayout)[source]

Add cheat preset content to the layout (Analog only).

create_midi_combo_row(channels: list[str]) → None[source]

create_midi_combo_row

Parameters:

channels – list

Returns:

None

static _channel_label_for(channel: int) → str | None[source]
_get_midi_channel_from_combo(*_args) → None[source]

Update cheat MIDI channel from combo and refresh the info bar.

_set_preset_status(text: str) → None[source]
_on_prev_preset() → None[source]
_on_next_preset() → None[source]
_on_read_from_jdxi() → None[source]
_on_import_part_syx() → None[source]
_on_export_part_syx() → None[source]
_on_random_analog_patch() → None[source]
_on_load_preset()[source]

Load factory preset on hardware, then read parameters into the editor.

_load_cheat_preset()[source]

Load a Digital Synth preset on the Analog Synth channel (Cheat Mode).

setup_header_layout() → None[source]

Top layout with preset controls and instrument overview.

add_stretch()[source]

Gap between preset panel and instrument image (fixed: the image sits beside the panel).