jdxi_editor.midi.io.program_channel =================================== .. py:module:: jdxi_editor.midi.io.program_channel .. autoapi-nested-parse:: 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. .. rubric:: 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 ---------- .. autoapisummary:: jdxi_editor.midi.io.program_channel.DEFAULT jdxi_editor.midi.io.program_channel.OFF jdxi_editor.midi.io.program_channel._channel jdxi_editor.midi.io.program_channel._rx_program_change jdxi_editor.midi.io.program_channel._rx_bank_select Functions --------- .. autoapisummary:: jdxi_editor.midi.io.program_channel.reset jdxi_editor.midi.io.program_channel.set_from_system jdxi_editor.midi.io.program_channel.channel jdxi_editor.midi.io.program_channel.route jdxi_editor.midi.io.program_channel.problem Module Contents --------------- .. py:data:: DEFAULT :value: 15 .. py:data:: OFF :value: 16 .. py:data:: _channel :type: Optional[int] :value: None .. py:data:: _rx_program_change :value: True .. py:data:: _rx_bank_select :value: True .. py:function:: reset() -> None .. py:function:: set_from_system(channel: int, rx_program_change: int, rx_bank_select: int) -> None The SYSTEM values: Program Ctrl Ch (0-15, 16 OFF), Rx Program Change, Rx Bank Select. .. py:function:: channel() -> int The program channel (0-15); channel 16 when not read or OFF. .. py:function:: route(requested: int) -> int Program changes for channel 16 go to the JD-Xi's program channel. .. py:function:: problem() -> Optional[str] Why the JD-Xi will not take program changes (None if it will, or not read yet).