jdxi_editor.ui.editors.midi_player.automation

Automation Widget class

Classes

AutomationWidget

Automation Widget class

Module Contents

class jdxi_editor.ui.editors.midi_player.automation.AutomationWidget(midi_state: jdxi_editor.midi.playback.state.MidiPlaybackState, parent: MidiFilePlayer)[source]

Bases: jdxi_editor.ui.widgets.jdxi.midi_group.JDXiMidiGroup

Automation Widget class

group_title = 'Automation'[source]
automation_channel_combo: PySide6.QtWidgets.QComboBox | None = None[source]
automation_type_combo: PySide6.QtWidgets.QComboBox | None = None[source]
automation_program_combo: PySide6.QtWidgets.QComboBox | None = None[source]
automation_midi_info_bar: jdxi_editor.ui.widgets.midi.selection_info_bar.MidiSelectionInfoBar | None = None[source]
_build_button_specs() → dict[str, picoui.specs.widgets.ButtonSpec][source]

Build button specs

_build_group() → PySide6.QtWidgets.QGroupBox[source]

_build group

populate_automation_programs(source: jdxi_editor.ui.preset.source.PresetSource) → None[source]

Populate the program combo based on source list. source: “Digital” | “Analog” | “Drums”

_add_items_to_automation_combo(preset_list: list[dict[str, str | Any]] | Any)[source]

items to combo box

on_automation_type_changed(_: int) → None[source]

Show the presets of the chosen synth type.

The combo shows “Digital” / “Analog” / “Drums”, the values of PresetSource; the preset lists are keyed by the enum, so the text must be converted (looking it up as a string found nothing and fell back to the drum kits).

Parameters:

_ – int combo index

Returns:

None

on_automation_channel_changed(_: int) → None[source]

Offer the presets of the JD-Xi part on the chosen channel.

Each part only accepts its own banks: Digital tones are bank 95, Analog tones 94 and drum kits 86. A Digital preset inserted on channel 3 (the Analog part) is ignored by the JD-Xi, so the type follows the channel: Analog for channel 3, Drums for channel 10, Digital otherwise. It can still be changed afterwards for a non-standard channel setup.

Parameters:

_ – int combo index

Returns:

None

_update_automation_midi_info(*_args) → None[source]

Refresh MIDI wire readout for automation program + channel selection.

insert_program_change_current_position() → None[source]

Insert Bank Select (CC#0, CC#32) and Program Change at the current slider time.