jdxi_editor.devel.rtmidi_compat =============================== .. py:module:: jdxi_editor.devel.rtmidi_compat .. autoapi-nested-parse:: rtmidi Compatibility Module This module provides compatibility between different versions of rtmidi. It creates wrapper classes that match the older MidiIn/MidiOut API expected by the JD-Xi Editor codebase. Attributes ---------- .. autoapisummary:: jdxi_editor.devel.rtmidi_compat._original_rtmidi_in jdxi_editor.devel.rtmidi_compat._original_rtmidi_out jdxi_editor.devel.rtmidi_compat._original_midi_in jdxi_editor.devel.rtmidi_compat._original_midi_out Classes ------- .. autoapisummary:: jdxi_editor.devel.rtmidi_compat.MidiIn jdxi_editor.devel.rtmidi_compat.MidiOut Module Contents --------------- .. py:data:: _original_rtmidi_in .. py:data:: _original_rtmidi_out .. py:data:: _original_midi_in .. py:data:: _original_midi_out .. py:class:: MidiIn Compatibility wrapper for RtMidiIn .. py:method:: _create_mock() :staticmethod: Create a mock MidiIn for testing .. py:method:: get_ports() Get list of available input ports .. py:method:: is_port_open() Check if port is open .. py:method:: open_port(port) Open port by name or index .. py:method:: close_port() Close the port .. py:method:: set_callback(callback) Set MIDI callback .. py:method:: ignore_types(sysex=False, timing=True, active_sense=True) Set ignored MIDI types .. py:method:: send_message(message) Send MIDI message (for compatibility) .. py:class:: MidiOut Compatibility wrapper for RtMidiOut .. py:method:: _create_mock() :staticmethod: Create a mock MidiOut for testing .. py:method:: get_ports() Get list of available output ports .. py:method:: is_port_open() Check if port is open .. py:method:: open_port(port) Open port by name or index .. py:method:: close_port() Close the port .. py:method:: send_message(message) Send MIDI message