jdxi_editor.midi.io.program_channel

jdxi_editor.midi.io.program_channel The channel the JD-Xi takes program changes on.

The editor sends programs on channel 16 (index 15), the JD-Xi’s factory setting. The JD-Xi takes them on its SYSTEM › Program Ctrl Ch, which can be another channel or OFF; set to another one, the app’s program changes did nothing (the window then read the program back and showed the old one again). The window reads the setting at start (follow.py) and records it here; program changes meant for channel 16 then go to the channel the JD-Xi listens on.

Example

>>> set_from_system(0x00, rx_program_change=1, rx_bank_select=1)  # Ch 1
>>> route(15), route(2)
(0, 2)
>>> reset(); route(15)
15

Attributes

DEFAULT

OFF

_channel

_rx_program_change

_rx_bank_select

Functions

reset() → None

set_from_system(channel, rx_program_change, rx_bank_select) → None

The SYSTEM values: Program Ctrl Ch (0-15, 16 OFF), Rx Program Change, Rx Bank Select.

channel() → int

The program channel (0-15); channel 16 when not read or OFF.

route(requested) → int

Program changes for channel 16 go to the JD-Xi's program channel.

problem() → Optional[str]

Why the JD-Xi will not take program changes (None if it will, or not read yet).

Module Contents

jdxi_editor.midi.io.program_channel.DEFAULT = 15[source]
jdxi_editor.midi.io.program_channel.OFF = 16[source]
jdxi_editor.midi.io.program_channel._channel: int | None = None[source]
jdxi_editor.midi.io.program_channel._rx_program_change = True[source]
jdxi_editor.midi.io.program_channel._rx_bank_select = True[source]
jdxi_editor.midi.io.program_channel.reset() → None[source]
jdxi_editor.midi.io.program_channel.set_from_system(channel: int, rx_program_change: int, rx_bank_select: int) → None[source]

The SYSTEM values: Program Ctrl Ch (0-15, 16 OFF), Rx Program Change, Rx Bank Select.

jdxi_editor.midi.io.program_channel.channel() → int[source]

The program channel (0-15); channel 16 when not read or OFF.

jdxi_editor.midi.io.program_channel.route(requested: int) → int[source]

Program changes for channel 16 go to the JD-Xi’s program channel.

jdxi_editor.midi.io.program_channel.problem() → str | None[source]

Why the JD-Xi will not take program changes (None if it will, or not read yet).