jdxi_editor.midi.message.jdxi ============================= .. py:module:: jdxi_editor.midi.message.jdxi .. autoapi-nested-parse:: JD-Xi Model ID and Header List Constants ======================================= This module contains constants for JD-Xi model IDs and header lists. Constants Used: - ModelID: Model ID constants - RolandID: Roland ID constants Usage Example: [, , , ] >>> JDXiSysexHeader.to_list() [, , , , , ] Attributes ---------- .. autoapisummary:: jdxi_editor.midi.message.jdxi.JD_XI_MODEL_ID jdxi_editor.midi.message.jdxi.JD_XI_HEADER_LIST Classes ------- .. autoapisummary:: jdxi_editor.midi.message.jdxi.JDXiSysexHeader Module Contents --------------- .. py:data:: JD_XI_MODEL_ID .. py:class:: JDXiSysexHeader JD-Xi System Exclusive Message Header This class provides a structured way to work with JD-Xi SysEx headers, replacing the old JD_XI_HEADER_LIST constant. Usage: >>> header = JDXiSysexHeader.to_list() >>> header_bytes = JDXiSysexHeader.to_bytes() >>> header_len = len(JDXiSysexHeader.to_list()) .. py:attribute:: ID .. py:attribute:: MODEL .. py:method:: to_list() -> list[int] :classmethod: Convert the header to a list of integers. :return: list[int] Header bytes as a list [RolandID, DeviceID, ModelID1-4] .. py:method:: to_bytes() -> bytes :classmethod: Convert the header to bytes. :return: bytes Header bytes .. py:method:: length() -> int :classmethod: Get the length of the header in bytes. :return: int Number of bytes in the header .. py:data:: JD_XI_HEADER_LIST