jdxi_editor.ui.windows.patch.manager
Patch Manager Module ====================s
This module defines the PatchManager class, a PySide6-based GUI for loading and saving MIDI patch files for the Roland JD-Xi synthesizer.
Features: - Allows users to browse for patch files using a file dialog. - Supports both saving and loading patches, depending on the mode. - Integrates with MIDIHelper for handling MIDI patch operations. - Implements a simple, dark-themed UI with action buttons.
Classes: - PatchManager: A QMainWindow that provides a user interface for managing patch files.
Dependencies: - PySide6 - jdxi_editor.midi.io.MIDIHelper - jdxi_editor.ui.style.Style
Classes
Functions
|
Module Contents
- class jdxi_editor.ui.windows.patch.manager.PatchManager(midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper | None = None, parent=None, save_mode=False, editors=None)[source]
Bases:
PySide6.QtWidgets.QMainWindow- _last_read_result: jdxi_editor.midi.sysex.request.read_session.ReadResult | None = None[source]
- _collect_read_pairs() list[tuple[str, str]][source]
Open editors’ requests, then every other patch section (saved from the synth).
- _on_read_from_jdxi() None[source]
Request current tone/effect data from the JD-Xi and show section status.
- _update_read_status_list(result: jdxi_editor.midi.sysex.request.read_session.ReadResult) None[source]
- _on_read_progress(result: jdxi_editor.midi.sysex.request.read_session.ReadResult) None[source]
- _on_read_finished(result: jdxi_editor.midi.sysex.request.read_session.ReadResult) None[source]
- _confirmed_sections() set[str] | None[source]
After a read that did not complete: the sections it confirmed, the only ones taken from the synth’s memory (the others may be from before: the controls’ values are saved for them, as the question says). None: no such read.
- _confirm_partial_save(result: jdxi_editor.midi.sysex.request.read_session.ReadResult) bool[source]
- _save_program_common(temp_folder: pathlib.Path) None[source]
Save Program Common: the program name and PROGRAM_LEVEL (mixer Master). ProgramEditor is skipped in the main save loop, but both must be included so patch load restores them.