jdxi_editor.midi.io.connection
The connection to the JD-Xi, in one place.
Every window asks this object whether the JD-Xi can be talked to, instead of looking at the MIDI ports on its own:
OFFLINE no ports open, or the JD-Xi is not there DETECTED both ports open: not yet known to be a JD-Xi VERIFYING Identity Request sent, waiting for the reply ONLINE a Roland JD-Xi answered: reading and writing allowed UNSTABLE ONLINE, but requests went unanswered: writes still go out,
nothing is shown as verified until a whole reading succeeds
A JD-Xi switched off leaves its USB MIDI ports open on some systems: while ONLINE, a JD-Xi silent for SILENT_ASK_S is asked who it is; silent for LOST_AFTER_S it is OFFLINE (and asked again, quietly, until it answers).
A port merely named “JD-Xi” is not enough: the device has to answer the Identity Request as a Roland JD-Xi (manufacturer 41h, family 0Eh).
Attributes
Classes
The state of the connection to one JD-Xi (one MIDI helper). |
Functions
|
Both MIDI ports of helper open (a reading needs to send and to receive). |
|
An Identity Reply from a Roland JD-Xi (data with or without F0/F7). |
|
The Connection of helper (made the first time; None without a helper). |
|
For the windows: the JD-Xi can be read and written through helper |
Module Contents
- jdxi_editor.midi.io.connection.ports_open(helper) bool[source]
Both MIDI ports of helper open (a reading needs to send and to receive).
- jdxi_editor.midi.io.connection.is_jdxi_identity(data: Sequence[int]) bool[source]
An Identity Reply from a Roland JD-Xi (data with or without F0/F7).
- class jdxi_editor.midi.io.connection.Connection(helper, poll_ms: int = POLL_MS, parent: PySide6.QtCore.QObject | None = None)[source]
Bases:
PySide6.QtCore.QObjectThe state of the connection to one JD-Xi (one MIDI helper).
- poll() None[source]
Follow the ports; ask a newly found device who it is; notice a JD-Xi gone silent.
- identity_seen(data: Sequence[int]) None[source]
From any thread (the MIDI input): handled in this object’s thread.
- jdxi_editor.midi.io.connection.connection_for(helper) Connection | None[source]
The Connection of helper (made the first time; None without a helper).