jdxi_editor.midi.io.delay

jdxi_editor.midi.io.delay send midi messages with a delay so that the JD-Xi can process them correctly.

Messages go through the helper’s shared SysExRequestQueue, which sends one at a time, waits for each RQ1’s reply and drops duplicate requests, so editors requesting at the same moment no longer flood the JD-Xi.

Data requests (RQ1) are optional: with them switched off (see jdxi_editor.midi.io.data_requests), as in SoundFont mode with no JD-Xi to answer, they are left out and only the other messages are sent.

Functions

send_with_delay(midi_helper, midi_requests[, force]) → None

send_with_delay

Module Contents

jdxi_editor.midi.io.delay.send_with_delay(midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper, midi_requests: list, force: bool = False) → None[source]

send_with_delay

Queues the messages and returns; the queue’s worker thread sends them.

Parameters:
  • midi_helper – MidiIOHelper, helper for sending MIDI messages

  • midi_requests – list, list of MIDI messages to send (hex strings)

  • force – bool send data requests even when they are switched off (a Read the user asked for)

Returns:

None