jdxi_editor.midi.sysex.device
JD-Xi Device Information Module
This module defines the DeviceInfo class, which represents identity_request information for a Roland JD-Xi synthesizer. It provides utilities for checking manufacturer and model identity_request, reading the software revision level, and constructing an instance from a MIDI Identity Reply message.
Usage Example:
>>> identity_data = bytes([0xF0, 0x7E, 0x10, 0x06, 0x02, 0x41, 0x0E, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xF7])
>>> device = DeviceInfo.from_identity_reply(identity_data)
>>> device is not None
True
>>> device.revision_string
'00 03 00 00'
>>> device.is_jdxi
True
Classes:
DeviceInfo: Represents JD-Xi device information, including manufacturer, model, and software revision level. Provides utility properties for checking if the device is a JD-Xi and formatting the revision.
Methods:
- from_identity_reply(data: bytes) -> Optional[DeviceInfo]
Parses a MIDI Identity Reply message to create a DeviceInfo instance.
- is_roland -> bool
Returns True if the device manufacturer is Roland.
- is_jdxi -> bool
Returns True if the device is identified as a JD-Xi.
- revision_string -> str
Returns the software revision level of the Identity Reply as hex bytes. It is not the firmware version the JD-Xi shows (a JD-Xi with firmware 1.52 replies 00 03 00 00: the third release), so it is not presented as one.
Dependencies:
dataclasses
typing (List, Optional)
Classes
JD-Xi device information parser from MIDI Identity Reply. |
Module Contents
- class jdxi_editor.midi.sysex.device.DeviceInfo[source]
JD-Xi device information parser from MIDI Identity Reply.
- property revision_string: str[source]
The Identity Reply’s software revision level as hex bytes (e.g. ‘00 03 00 00’).
Not the firmware version shown on the JD-Xi (1.52 replies 00 03 00 00).
- classmethod from_identity_reply(data: bytes) DeviceInfo | None[source]
Parse an Identity Reply SysEx message into a DeviceInfo object.
- Parameters:
data – bytes
- Returns:
DeviceInfo