jdxi_editor.midi.sysex.json_composer

JDXiSysExComposer

Classes

JDXiJSONComposer

JSON SysExComposer

Module Contents

class jdxi_editor.midi.sysex.json_composer.JDXiJSONComposer(editor: jdxi_editor.ui.editors.SynthEditor | None = None)[source]

JSON SysExComposer

json_string = None[source]
temp_folder[source]
compose_message(editor: jdxi_editor.ui.editors.SynthEditor) dict[str | Any, str | Any] | None[source]
Parameters:

editor – SynthEditor Editor instance to process

Returns:

str JSON SysEx message

save_json(file_path: str) None[source]

Save the JSON string to a file

Parameters:

file_path – str File path to save the JSON

Returns:

None

process_editor(editor: jdxi_editor.ui.editors.SynthEditor, temp_folder: pathlib.Path) pathlib.Path[source]

Process the editor and save the JSON

Parameters:
  • editor – SynthEditor Editor instance to process

  • temp_folder – str Temporary folder to save the JSON

Returns:

None

_save_editor_section(editor: jdxi_editor.ui.editors.SynthEditor, controls_dict: dict, address: jdxi_editor.midi.data.address.address.RolandSysExAddress, temp_folder: pathlib.Path, section_name: str) pathlib.Path[source]

Save a specific section (Common or Modify) of an editor with a given address.

Parameters:
  • editor – SynthEditor Editor instance

  • controls_dict – dict Dictionary of parameter names to values

  • address – RolandSysExAddress Address to use for this section

  • temp_folder – Path Temporary folder to save the JSON

  • section_name – str Name of the section (e.g., “COMMON”, “MODIFY”)

Returns:

Path Path to the saved JSON file