jdxi_editor.midi.sysex.part_syx

Per-part SysEx import/export helpers (Manager-style librarian for one editor).

Functions

expected_address_prefix(editor) → str

4-byte hex address prefix expected for this editor, if known.

split_sysex_messages(data) → List[bytes]

Split concatenated F0…F7 SysEx blocks.

address_from_dt1_bytes(msg) → str

Extract 4-byte address from a JD-Xi DT1 message.

validate_part_syx(data, *[, expected_prefix]) → Tuple[bool, str, List[bytes]]

Validate a per-part .syx blob.

export_editor_to_syx(editor, midi_helper, file_path) → bool

Compose JSON for one editor and write concatenated SysEx to file_path.

import_syx_to_editor(midi_helper, editor, file_path, *) → Tuple[bool, str]

Load a .syx file, validate against the editor's address area, send to device.

Module Contents

jdxi_editor.midi.sysex.part_syx.expected_address_prefix(editor: Any) → str[source]

4-byte hex address prefix expected for this editor, if known.

jdxi_editor.midi.sysex.part_syx.split_sysex_messages(data: bytes) → List[bytes][source]

Split concatenated F0…F7 SysEx blocks.

jdxi_editor.midi.sysex.part_syx.address_from_dt1_bytes(msg: bytes) → str[source]

Extract 4-byte address from a JD-Xi DT1 message.

Typical: F0 41 10 00 00 00 0E 12 aa aa aa aa … CS F7

jdxi_editor.midi.sysex.part_syx.validate_part_syx(data: bytes, *, expected_prefix: str = '') → Tuple[bool, str, List[bytes]][source]

Validate a per-part .syx blob.

Returns:

(ok, message, messages)

jdxi_editor.midi.sysex.part_syx.export_editor_to_syx(editor: Any, midi_helper, file_path: str) → bool[source]

Compose JSON for one editor and write concatenated SysEx to file_path.

jdxi_editor.midi.sysex.part_syx.import_syx_to_editor(midi_helper, editor: Any, file_path: str, *, refresh: bool = True) → Tuple[bool, str][source]

Load a .syx file, validate against the editor’s address area, send to device.

Optionally run editor.read_from_jdxi() afterward.