jdxi_editor.ui.windows.jdxi.helpers.port

scan MIDI ports for JD-Xi

Attributes

EXCLUDED_PORTS

Functions

is_excluded_port(→ bool)

Check if a port should be excluded from auto-connection.

find_jdxi_port(→ str | None)

Helper function to find a JD-Xi MIDI port.

filter_excluded_ports(→ list[str])

Filter out problematic ports from a list.

Module Contents

jdxi_editor.ui.windows.jdxi.helpers.port.EXCLUDED_PORTS = ['midi through', 'through port', 'midithru', 'rtpmidi'][source]
jdxi_editor.ui.windows.jdxi.helpers.port.is_excluded_port(port_name: str) bool[source]

Check if a port should be excluded from auto-connection.

Parameters:

port_name – str MIDI port name

Returns:

bool True if port should be excluded

jdxi_editor.ui.windows.jdxi.helpers.port.find_jdxi_port(port_list: list[str]) str | None[source]

Helper function to find a JD-Xi MIDI port.

Parameters:

port_list – list[str] List of available MIDI port names

Returns:

str | None JD-Xi port name or None if not found

jdxi_editor.ui.windows.jdxi.helpers.port.filter_excluded_ports(port_list: list[str]) list[str][source]

Filter out problematic ports from a list.

Parameters:

port_list – list[str] List of MIDI port names

Returns:

list[str] Filtered list without excluded ports