jdxi_editor.ui.windows.midi.monitor

MIDIMessageMonitor is a Qt window that logs MIDI messages with timestamps: messages to and from the JD-Xi and, when one is connected, messages from an external controller such as the Arturia MiniLab 3 (prefixed with its port name).

jdxi_editor.ui.windows.midi.monitor.log_view

read-only view of the message log.

Type:

QTextEdit

jdxi_editor.ui.windows.midi.monitor.log_message(message, direction='→')

log a MIDI message with a timestamp.

jdxi_editor.ui.windows.midi.monitor.log_status()

log which JD-Xi and controller ports are being watched.

jdxi_editor.ui.windows.midi.monitor.clear_log()

clear the message log view.

Classes

MIDIMessageMonitor

MIDIMessageMonitor

Module Contents

class jdxi_editor.ui.windows.midi.monitor.MIDIMessageMonitor(midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper = None, parent: PySide6.QtWidgets.QWidget | None = None, external_controller: jdxi_editor.midi.io.external_controller.ExternalControllerInput | None = None)[source]

Bases: PySide6.QtWidgets.QMainWindow

MIDIMessageMonitor

log_view[source]
midi_helper = None[source]
external_controller = None[source]
log_status() → None[source]

Log which ports the monitor is watching.

An empty log otherwise reads the same whether nothing is being sent or nothing is connected, which is the first thing to rule out.

Returns:

None

log_controller_ports(port_names: list) → None[source]

Log the controller ports being listened to.

Parameters:

port_names – list[str] controller input port names

Returns:

None

process_incoming_message(message: str) → None[source]

process_incoming_message

Parameters:

message – str

Returns:

None

process_outgoing_message(message: str) → None[source]

process_outgoing_message

Parameters:

message – str

Returns:

None

process_controller_message(port_name: str, message: object) → None[source]

Log a message from the external controller, prefixed with its port.

Parameters:
  • port_name – str controller input port name

  • message – mido.Message

Returns:

None

log_message(message: str, direction='→')[source]

Log address MIDI message with timestamp and hex formatting if possible

Parameters:
  • message – str

  • direction – str

Returns:

None

clear_log()[source]

Clear the log view