jdxi_editor.midi.sysex.part_syx =============================== .. py:module:: jdxi_editor.midi.sysex.part_syx .. autoapi-nested-parse:: Per-part SysEx import/export helpers (Manager-style librarian for one editor). Functions --------- .. autoapisummary:: jdxi_editor.midi.sysex.part_syx.expected_address_prefix jdxi_editor.midi.sysex.part_syx.split_sysex_messages jdxi_editor.midi.sysex.part_syx.address_from_dt1_bytes jdxi_editor.midi.sysex.part_syx.validate_part_syx jdxi_editor.midi.sysex.part_syx.export_editor_to_syx jdxi_editor.midi.sysex.part_syx.import_syx_to_editor Module Contents --------------- .. py:function:: expected_address_prefix(editor: Any) -> str 4-byte hex address prefix expected for this editor, if known. .. py:function:: split_sysex_messages(data: bytes) -> List[bytes] Split concatenated F0…F7 SysEx blocks. .. py:function:: address_from_dt1_bytes(msg: bytes) -> str 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 .. py:function:: validate_part_syx(data: bytes, *, expected_prefix: str = '') -> Tuple[bool, str, List[bytes]] Validate a per-part .syx blob. :return: (ok, message, messages) .. py:function:: export_editor_to_syx(editor: Any, midi_helper, file_path: str) -> bool Compose JSON for one editor and write concatenated SysEx to ``file_path``. .. py:function:: import_syx_to_editor(midi_helper, editor: Any, file_path: str, *, refresh: bool = True) -> Tuple[bool, str] Load a .syx file, validate against the editor's address area, send to device. Optionally run ``editor.read_from_jdxi()`` afterward.