Source code for jdxi_editor.jdxi.preset.button

from dataclasses import dataclass
from typing import Optional

from jdxi_editor.jdxi.synth.type import JDXiSynth
from jdxi_editor.midi.channel.channel import MidiChannel


@dataclass
[docs] class JDXiPresetButtonData: """ A class representing a preset button in the JDXi editor. Attributes: type: The type of preset button. number: The number of the preset button. modified: The modified status of the preset button. channel: The MIDI channel of the preset button. name: The name of the preset button. """
[docs] type: JDXiSynth = JDXiSynth.DIGITAL_SYNTH_1 # Adjust the type as needed
[docs] number: int = 1
[docs] modified: int = 0
[docs] channel: int = MidiChannel.DIGITAL_SYNTH_1
[docs] name: Optional[str] = None