"""
DrumKitMessage
==============
# Example usage:
>>> msg = DrumKitMessage(
... value=0x41, # 'A'
... )
"""
from dataclasses import dataclass
from jdxi_editor.midi.data.address.address import (
CommandID,
JDXiSysExAddressStartMSB,
JDXiSysExOffsetTemporaryToneUMB,
)
from jdxi_editor.midi.message.roland import JDXiSysEx
@dataclass
[docs]
class DrumKitMessage(JDXiSysEx):
"""Drum Kit parameter message"""
[docs]
command: int = CommandID.DT1
[docs]
msb: int = JDXiSysExAddressStartMSB.TEMPORARY_TONE # Temporary area
[docs]
umb: int = JDXiSysExOffsetTemporaryToneUMB.DRUM_KIT # Drum Kit
[docs]
lmb: int = 0x00 # Section (Common or Pad offset)
[docs]
lsb: int = 0x00 # Parameter number
[docs]
value: int = 0x00 # Parameter value
[docs]
def __post_init__(self):
super().__post_init__()