jdxi_editor.midi.message.sysex
This module provides functionality for constructing, parsing, and handling Roland JD-Xi SysEx messages. It includes support for both writing (DT1) and reading (RQ1) parameter data, ensuring compliance with Roland’s SysEx format.
Features:
Constructs valid SysEx messages for Roland JD-Xi.
Supports both parameter write (DT1) and read (RQ1) operations.
Computes and verifies Roland SysEx checksums.
Allows dynamic configuration of MIDI parameters.
Provides utilities to convert between byte sequences and structured data.
Classes:
RolandSysEx: Base class for handling Roland SysEx messages.
SysExParameter: Enum for predefined SysEx parameters and command mappings.
SysExMessage: Helper class for constructing and sending SysEx messages.
Usage Example:
```python message = SysExMessage(area=0x19, synth_type=0x01, part=0x00, group=0x00, parameter=0x10, value=0x7F) sysex_bytes = message.construct_sysex() print(sysex_bytes) # Outputs a valid SysEx message as a byte sequence [0xF0, 0x41, 0x10, 0x00, 0x00, 0x00, 0x0E, 0x12, 0x19, 0x01, 0x00, 0x00, 0x10, 0x7F, 0x57, 0xF7]
Attributes
Classes
SysEx Parameters for Roland JD-Xi |
|
Base class for MIDI System Exclusive (SysEx) messages. |
Module Contents
- class jdxi_editor.midi.message.sysex.SysexParameter[source]
Bases:
enum.EnumSysEx Parameters for Roland JD-Xi
- class jdxi_editor.midi.message.sysex.SysExMessage[source]
Bases:
jdxi_editor.midi.message.midi.MidiMessageBase class for MIDI System Exclusive (SysEx) messages.
- classmethod from_bytes(data: bytes) SysExMessage[source]
Parse a received SysEx message into an instance.