jdxi_editor.ui.widgets.mute_channels_group

Mute Channels group - 16 channel mute buttons and, under them, 16 solo buttons.

Solo is the other way round from mute: with one or more channels soloed only those play. A channel silenced by someone else’s solo shows it on its mute button (red outline) without being muted itself, so un-soloing restores the mutes as they were.

Attributes

JDXI_PART_CHANNELS

Classes

MuteChannelsGroup

Mute Channels group: 16 channel mute buttons and 16 solo buttons.

Module Contents

jdxi_editor.ui.widgets.mute_channels_group.JDXI_PART_CHANNELS[source]
class jdxi_editor.ui.widgets.mute_channels_group.MuteChannelsGroup(parent: jdxi_editor.ui.editors.midi_player.editor.MidiFilePlayer, midi_state: jdxi_editor.midi.playback.state.MidiPlaybackState | None = None)[source]

Bases: jdxi_editor.ui.widgets.jdxi.midi_group.JDXiMidiGroup

Mute Channels group: 16 channel mute buttons and 16 solo buttons.

mute_channel_buttons: dict[int, PySide6.QtWidgets.QPushButton][source]
solo_channel_buttons: dict[int, PySide6.QtWidgets.QPushButton][source]
_build_group() → PySide6.QtWidgets.QGroupBox[source]

Build the group: a row of mute buttons, a row of solo buttons under it.

_on_mute_toggled(channel: int, checked: bool, button: PySide6.QtWidgets.QPushButton) → None[source]
_on_solo_toggled(channel: int, checked: bool) → None[source]
soloed_channels() → set[int][source]

The channels whose Solo is on (1-16).

set_soloed_channels(channels: set[int]) → None[source]

Show channels as soloed without telling the player (it already knows).

show_silenced() → None[source]

Outline in red the mute buttons of channels another channel’s solo silences.

set_used_channels(channels: set[int]) → None[source]

Dim the buttons of channels the file has no notes or controllers on.

Parameters:

channels – 1-16 channels that are used

static _tooltip(ch: int, unused: bool) → str[source]
static _solo_tooltip(ch: int) → str[source]
_build_button_specs() → dict[str, picoui.specs.widgets.ButtonSpec][source]

No buttons in this group (uses dynamic channel buttons).