jdxi_editor.ui.windows.jdxi.follow
jdxi_editor.ui.windows.jdxi.follow The instrument window follows the JD-Xi.
What is changed on the instrument itself reaches the window:
at start (once the MIDI ports are open) the window reads the program, the four tones and the Digital partials, so it does not start on “Init Tone”
the part shown (Digital 1, Digital 2, Analog, Drums) is read again every couple of seconds: a tone chosen with the JD-Xi’s own buttons appears on the display, the OCTAVE buttons light as on the instrument and the panel sliders move to the tone’s values. Nothing is read while a MIDI file or pattern plays, while the app is minimised, or for a few seconds after a click, a key or a value sent from the app (a reply on its way must not undo what was just set)
a program change from the JD-Xi on a part’s channel reads that part at once
the notes played on the JD-Xi light the window’s keys, and their channel tells the part selected on the JD-Xi: the window selects it too
The replies go through the usual path (tone names, editors), so an editor that is open follows too.
Attributes
Classes
Keeps the instrument window in step with the JD-Xi (see the module doc). |
Functions
|
|
|
(address, values) of a Roland DT1 from the JD-Xi (SysEx data without F0/F7). |
|
The byte at block + offset if this DT1 (at address) holds it. |
Module Contents
- jdxi_editor.ui.windows.jdxi.follow.parse_dt1(data) tuple | None[source]
(address, values) of a Roland DT1 from the JD-Xi (SysEx data without F0/F7).
- jdxi_editor.ui.windows.jdxi.follow._value_at(address: tuple, values: list, block: tuple, offset: int) int | None[source]
The byte at block + offset if this DT1 (at address) holds it.
- class jdxi_editor.ui.windows.jdxi.follow.InstrumentFollower(window, parent: PySide6.QtCore.QObject | None = None)[source]
Bases:
PySide6.QtCore.QObjectKeeps the instrument window in step with the JD-Xi (see the module doc).
- follow_part(channel) None[source]
The JD-Xi plays its keyboard on the channel of the part selected on it: the window selects that part too, so its tone buttons, octave and sliders act on the part being played (they acted on the part selected in the app, and a tone chosen there was not heard until the two were aligned).
Only after a few notes in a row on that channel, and not more than once in a while: a pattern playing several parts does not make it jump.
- _new_program() None[source]
A program loads as saved: the ENV slider (relative to it) back to the middle.
- knob_moved(channel: int, control: int, value: int) None[source]
A knob turned on the JD-Xi (CC or NRPN): the window’s slider follows it at once; the editors get the value with the next reading.
- light_key(note: int, on: bool, channel: int | None = None) None[source]
Light the window’s key under the finger: with an octave shift the JD-Xi sends its keys an octave or more away, and the window’s keyboard (always the 37 keys of the JD-Xi) shows the key that was pressed. A key lit stays the one turned off, also if the octave changes while it is held.
- show_wheel(name: str, value: float) None[source]
The window’s pitch or mod wheel shows where the JD-Xi’s is.