jdxi_editor.devel.parse_sysex_hex ================================= .. py:module:: jdxi_editor.devel.parse_sysex_hex .. autoapi-nested-parse:: Script to parse SysEx hex strings from JD-Xi and save as JSON. Usage: python3 parse_sysex_hex.py [output_file] Or provide multiple hex strings as separate arguments. Functions --------- .. autoapisummary:: jdxi_editor.devel.parse_sysex_hex.hex_string_to_bytes jdxi_editor.devel.parse_sysex_hex.parse_sysex_hex jdxi_editor.devel.parse_sysex_hex.parse_multiple_sysex jdxi_editor.devel.parse_sysex_hex.main Module Contents --------------- .. py:function:: hex_string_to_bytes(hex_string: str) -> bytes Convert a hex string (with or without spaces) to bytes. :param hex_string: str Hex string like "F0 41 10 ..." or "F04110..." :return: bytes .. py:function:: parse_sysex_hex(hex_string: str) -> Dict[str, Any] | None Parse a SysEx hex string and return the parsed data. :param hex_string: str Hex string representation of SysEx message :return: dict Parsed SysEx data or None if parsing fails .. py:function:: parse_multiple_sysex(hex_strings: List[str]) -> List[Dict[str, Any]] Parse multiple SysEx hex strings. :param hex_strings: List[str] List of hex string representations :return: List[dict] List of parsed SysEx data .. py:function:: main() Main function.