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

hex_string_to_bytes(→ bytes)

Convert a hex string (with or without spaces) to bytes.

parse_sysex_hex(→ Dict[str, Any] | None)

Parse a SysEx hex string and return the parsed data.

parse_multiple_sysex(→ List[Dict[str, Any]])

Parse multiple SysEx hex strings.

main()

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

jdxi_editor.devel.parse_sysex_hex.parse_multiple_sysex(hex_strings: List[str]) List[Dict[str, Any]][source]

Parse multiple SysEx hex strings.

Parameters:

hex_strings – List[str] List of hex string representations

Returns:

List[dict] List of parsed SysEx data

jdxi_editor.devel.parse_sysex_hex.main()[source]

Main function.