jdxi_editor.ui.midi.selection_info
MIDI wire-format resolution for program and tone combo readouts.
Channel values are 0-based internally (MidiChannel enum). Display uses 1-based channel numbers (Ch 1–16). CC0 and CC32 are bank-select values (MSB/LSB).
Classes
Resolved MIDI address for a program or tone selection. |
Functions
|
Format a 0-based channel as |
|
Format wire info for UI readout or logs. |
|
Resolve JD-Xi program bank/number to wire-format MIDI. |
|
Resolve a program id such as |
|
Resolve a tone preset id to wire-format MIDI using preset list lookup. |
|
Resolve tone MIDI with an explicit channel override (cheat / automation). |
|
Resolve tone wire info, register validation expectation, and send bank+PC. |
|
Resolve program wire info, register validation expectation, and send bank+PC. |
Module Contents
- class jdxi_editor.ui.midi.selection_info.MidiWireInfo[source]
Resolved MIDI address for a program or tone selection.
- classmethod from_selection(selection: jdxi_editor.ui.preset.model.ProgramChangeSelection) MidiWireInfo[source]
Build wire info from a channel + preset selection.
- jdxi_editor.ui.midi.selection_info.channel_display_name(channel: int, label: str | None = None) str[source]
Format a 0-based channel as
Ch Nwith optional part label.
- jdxi_editor.ui.midi.selection_info.format_midi_wire_info(info: MidiWireInfo | None) str[source]
Format wire info for UI readout or logs.
- jdxi_editor.ui.midi.selection_info.resolve_program_midi(bank: str, program_number: int, *, channel: int = MidiChannel.PROGRAM, channel_label: str | None = 'Program') MidiWireInfo | None[source]
Resolve JD-Xi program bank/number to wire-format MIDI.
- Parameters:
bank – Bank letter A–H
program_number – 1-based slot within bank (1–64)
- jdxi_editor.ui.midi.selection_info.resolve_program_midi_from_id(program_id: str, *, channel: int = MidiChannel.PROGRAM, channel_label: str | None = 'Program') MidiWireInfo | None[source]
Resolve a program id such as
A13orE05.
- jdxi_editor.ui.midi.selection_info.resolve_tone_midi(preset_id: int | str, preset_list: List[Any], *, channel: int, channel_label: str | None = None) MidiWireInfo | None[source]
Resolve a tone preset id to wire-format MIDI using preset list lookup.
- Parameters:
preset_id – Preset number 1–256 (or id string)
preset_list – Digital/Analog/Drum LIST or PROGRAM_CHANGE data
channel – 0-based MIDI channel for the synth part
- jdxi_editor.ui.midi.selection_info.resolve_tone_midi_for_channel(preset_id: int | str, preset_list: List[Any], channel: int, channel_label: str) MidiWireInfo | None[source]
Resolve tone MIDI with an explicit channel override (cheat / automation).
- jdxi_editor.ui.midi.selection_info.send_tone_with_expectation(midi_helper, preset_id: int | str, preset_list: List[Any], channel: int, *, source: str, channel_label: str | None = None) bool[source]
Resolve tone wire info, register validation expectation, and send bank+PC.
Ensures readout resolver, send parameters, and validation expected match.