jdxi_editor.ui.windows.patch.name_editor

This module defines the PatchNameEditor class, a PySide6-based dialog for editing the name of a JD-Xi patch.

Features: - Provides a simple UI for renaming patches with a maximum of 12 characters. - Ensures patch names are converted to uppercase, matching JD-Xi conventions. - Includes “Save” and “Cancel” buttons for user confirmation. - Applies a custom dark theme for styling.

Classes: - PatchNameEditor: A QDialog that allows users to modify a patch name.

Dependencies: - PySide6 - jdxi_editor.ui.style.Style

Example Usage

>>>dialog = PatchNameEditor(current_name=”Piano”) …if dialog.exec_(): # If the user clicks Save … sys_ex_bytes = dialog.get_sysex_bytes() … print(“SysEx Bytes:”, sys_ex_bytes)

Classes

PatchNameEditor

PatchNameEditorOld

Module Contents

class jdxi_editor.ui.windows.patch.name_editor.PatchNameEditor(current_name='', parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

tone_name_input[source]
get_sysex_string()[source]

Converts the current name input to SysExAddress bytes. JD-Xi patch names are encoded as ASCII characters, padded with spaces if shorter than 12 chars.

get_sysex_bytes()[source]

Converts the current name input to SysExAddress bytes. JD-Xi patch names are encoded as ASCII characters, padded with spaces if shorter than 12 chars.

class jdxi_editor.ui.windows.patch.name_editor.PatchNameEditorOld(current_name='', parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

name_input[source]
get_name()[source]

Get the edited patch name