jdxi_editor.ui.dialogs.program_change ===================================== .. py:module:: jdxi_editor.ui.dialogs.program_change .. autoapi-nested-parse:: Program Change dialog Edit a program change in a MIDI file: choose the channel, the synth type (Digital / Analog / Drums) and a JD-Xi preset. The result is the bank select (CC#0, CC#32) and program change values to write into the track. Classes ------- .. autoapisummary:: jdxi_editor.ui.dialogs.program_change.Preset jdxi_editor.ui.dialogs.program_change.ProgramChangeSelection jdxi_editor.ui.dialogs.program_change.ProgramChangeDialog Module Contents --------------- .. py:class:: Preset A synthesizer preset and its MIDI wire address. .. py:attribute:: name :type: str .. py:attribute:: bank :type: jdxi_editor.midi.bank.Bank .. py:attribute:: program :type: int .. py:attribute:: category :type: str :value: '' .. py:attribute:: source :type: Optional[jdxi_editor.ui.preset.source.PresetSource] :value: None .. py:attribute:: id :type: str :value: '' .. py:attribute:: preset_number :type: Optional[int] :value: None .. py:method:: __post_init__() -> None .. py:property:: midi_address :type: tuple[int, int, int] Return (bank MSB, bank LSB, program) as wire values. .. py:class:: ProgramChangeSelection A preset selected for transmission on a MIDI channel. .. py:attribute:: channel :type: int .. py:attribute:: preset :type: Preset .. py:method:: __post_init__() -> None .. py:property:: bank :type: jdxi_editor.midi.bank.Bank .. py:property:: program :type: int .. py:property:: name :type: str .. py:class:: ProgramChangeDialog(*, channel: int, bank: jdxi_editor.midi.bank.Bank, program: int, parent: Optional[PySide6.QtWidgets.QWidget] = None) Bases: :py:obj:`PySide6.QtWidgets.QDialog` Choose the channel and JD-Xi preset for a program change. .. py:attribute:: _presets :type: list[jdxi_editor.ui.preset.model.Preset] :value: [] .. py:attribute:: _channel .. py:attribute:: _bank .. py:attribute:: _program .. py:attribute:: channel_combo .. py:attribute:: type_combo .. py:attribute:: preset_combo .. py:attribute:: info_bar .. py:attribute:: ok_button .. py:method:: _populate(source: jdxi_editor.ui.preset.source.PresetSource) -> None .. py:method:: _select_current(channel: int, bank: jdxi_editor.midi.bank.Bank, program: int) -> None Open on the preset the program change already selects, if it is one. .. py:method:: _on_type_changed(_index: int) -> None .. py:method:: _selected_preset() -> Optional[jdxi_editor.ui.preset.model.Preset] .. py:method:: selection() -> Optional[jdxi_editor.ui.preset.model.ProgramChangeSelection] The chosen channel and preset, or None if nothing is selected. .. py:method:: _update_info(*_args) -> None