jdxi_editor.midi.sysex.parser.json_parser

Sysex parser # Example usage: >>> json_data = [0xF0, 0x41, 0x10, 0x00, 0x00, 0x00, 0x0E, 0x7E, 0x7F, 0x06, 0x01, 0x19, 0x01, 0x00, >>> 0xF7] # Example SysEx data

>>> parser = JDXiSysExParser(json_data)
>>> parsed_data = parser.parse()
>>> log.message(f"Parsed Data: {parsed_data}")

Classes

JDXiJsonSysexParser

JDXiJsonSysexParser

Module Contents

class jdxi_editor.midi.sysex.parser.json_parser.JDXiJsonSysexParser(json_sysex_data: str | None = None)[source]

JDXiJsonSysexParser

sysex_data_json = None[source]
log_folder[source]
from_json(json_sysex_data: str) None[source]

from json

Parameters:

json_sysex_data – str

Returns:

None

parse() Dict[str, Any] | None[source]

Parse the stored JSON string into a dictionary.

Returns:

Dictionary representation of SysEx data, or None if parsing fails.

parse_json(json_sysex_data: str) Dict[str, Any] | None[source]

parse json

Parameters:

json_sysex_data – str

Returns:

dict