jdxi_editor.ui.dialogs.program_change

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

Preset

A synthesizer preset and its MIDI wire address.

ProgramChangeSelection

A preset selected for transmission on a MIDI channel.

ProgramChangeDialog

Choose the channel and JD-Xi preset for a program change.

Module Contents

class jdxi_editor.ui.dialogs.program_change.Preset[source]

A synthesizer preset and its MIDI wire address.

name: str
bank: jdxi_editor.midi.bank.Bank
program: int
category: str = ''
source: jdxi_editor.ui.preset.source.PresetSource | None = None
id: str = ''
preset_number: int | None = None
__post_init__() → None[source]
property midi_address: tuple[int, int, int]

Return (bank MSB, bank LSB, program) as wire values.

class jdxi_editor.ui.dialogs.program_change.ProgramChangeSelection[source]

A preset selected for transmission on a MIDI channel.

channel: int
preset: Preset
__post_init__() → None[source]
property bank: jdxi_editor.midi.bank.Bank
property program: int
property name: str
class jdxi_editor.ui.dialogs.program_change.ProgramChangeDialog(*, channel: int, bank: jdxi_editor.midi.bank.Bank, program: int, parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QDialog

Choose the channel and JD-Xi preset for a program change.

_presets: list[jdxi_editor.ui.preset.model.Preset] = [][source]
_channel[source]
_bank[source]
_program[source]
channel_combo[source]
type_combo[source]
preset_combo[source]
info_bar[source]
ok_button[source]
_populate(source: jdxi_editor.ui.preset.source.PresetSource) → None[source]
_select_current(channel: int, bank: jdxi_editor.midi.bank.Bank, program: int) → None[source]

Open on the preset the program change already selects, if it is one.

_on_type_changed(_index: int) → None[source]
_selected_preset() → jdxi_editor.ui.preset.model.Preset | None[source]
selection() → jdxi_editor.ui.preset.model.ProgramChangeSelection | None[source]

The chosen channel and preset, or None if nothing is selected.

_update_info(*_args) → None[source]