jdxi_editor.ui.windows.midi.config_dialog
MIDIConfigDialog is a dialog class that allows users to configure MIDI input and output ports.
It provides the following functionality: - Display available MIDI input and output ports in combo boxes. - Allow users to select and change MIDI input and output ports. - Refresh the list of available MIDI ports. - Retrieve the selected MIDI port settings.
- jdxi_editor.ui.windows.midi.config_dialog.input_ports
List of available MIDI input ports.
- Type:
- jdxi_editor.ui.windows.midi.config_dialog.output_ports
List of available MIDI output ports.
- Type:
- jdxi_editor.ui.windows.midi.config_dialog.current_in
Currently selected MIDI input port (optional).
- Type:
- jdxi_editor.ui.windows.midi.config_dialog.current_out
Currently selected MIDI output port (optional).
- Type:
- jdxi_editor.ui.windows.midi.config_dialog.midi_helper
Instance of the MIDIHelper class to interact with MIDI devices.
- Type:
MidiIOHelper
- jdxi_editor.ui.windows.midi.config_dialog.refresh_ports()
Refresh the list of available MIDI ports.
- jdxi_editor.ui.windows.midi.config_dialog.get_input_port()
Returns the currently selected MIDI input port.
- jdxi_editor.ui.windows.midi.config_dialog.get_output_port()
Returns the currently selected MIDI output port.
- jdxi_editor.ui.windows.midi.config_dialog.get_settings()
Returns a dictionary containing the selected MIDI input and output ports.
Attributes
Classes
Functions
|
Get list of (display_name, device_spec) for audio output devices. |
Module Contents
- jdxi_editor.ui.windows.midi.config_dialog._get_output_devices() list[tuple[str, str]][source]
Get list of (display_name, device_spec) for audio output devices.
On macOS: device_spec is the name (for CoreAudio). On Windows/Linux: device_spec is “index:HostApi:Name” (for PortAudio). Requires sounddevice.
- class jdxi_editor.ui.windows.midi.config_dialog.MIDIConfigDialog(midi_helper=MidiIOHelper, parent=None)[source]
Bases:
PySide6.QtWidgets.QDialog- _update_midi_port_combo(midi_port_combo: PySide6.QtWidgets.QComboBox, midi_ports: list, current_port: str) None[source]
_update_midi_port_combo
- _create_button_row_specs(btn_row: PySide6.QtWidgets.QHBoxLayout) list[picoui.specs.widgets.ButtonSpec][source]
create button row specs
- _on_soundfont_list_toggled(checked: bool) None[source]
Handle SoundFont list checkbox toggle - save immediately and notify listeners.
- _populate_sf2_combo() None[source]
Scan ~/SoundFonts for .sf2/.sf3 files and populate the combo box.
- get_input_port() str[source]
Get selected input port name
- Returns:
Selected input port name or empty string if none selected