jdxi_editor.devel.parse_sysex_hex
Script to parse SysEx hex strings from JD-Xi and save as JSON.
- Usage:
python3 parse_sysex_hex.py <hex_string> [output_file]
Or provide multiple hex strings as separate arguments.
Functions
|
Convert a hex string (with or without spaces) to bytes. |
|
Parse a SysEx hex string and return the parsed data. |
|
Parse multiple SysEx hex strings. |
|
Main function. |
Module Contents
- jdxi_editor.devel.parse_sysex_hex.hex_string_to_bytes(hex_string: str) bytes[source]
Convert a hex string (with or without spaces) to bytes.
- Parameters:
hex_string – str Hex string like “F0 41 10 …” or “F04110…”
- Returns:
bytes
- jdxi_editor.devel.parse_sysex_hex.parse_sysex_hex(hex_string: str) Dict[str, Any] | None[source]
Parse a SysEx hex string and return the parsed data.
- Parameters:
hex_string – str Hex string representation of SysEx message
- Returns:
dict Parsed SysEx data or None if parsing fails