jdxi_editor.ui.editors.drum.mixer.section

Drum Kit Mixer widget.

Provides 37 vertical sliders for controlling the master level and all 36 drum partial levels. Uses ChannelStrip (slider + label + icon + mute) for consistency with the program mixer.

Attributes

KIT_CENTRE_ROWS

KIT_LEFT

KIT_RIGHT

KIT_SPACING

SLIDER_HEIGHT

STRIP_WIDTH

MASTER_STRIP_WIDTH

ICON_SIZE

Classes

DrumKitMixerSection

Drum Kit Mixer widget with 37 vertical sliders:

Module Contents

jdxi_editor.ui.editors.drum.mixer.section.KIT_CENTRE_ROWS = (('Hi-Hat', 'Cymbals'), ('Snare', 'Toms'), ('Kick',))[source]
jdxi_editor.ui.editors.drum.mixer.section.KIT_LEFT = ('Percussion', 2)[source]
jdxi_editor.ui.editors.drum.mixer.section.KIT_RIGHT = ('Other', 1)[source]
jdxi_editor.ui.editors.drum.mixer.section.KIT_SPACING = 12[source]
jdxi_editor.ui.editors.drum.mixer.section.SLIDER_HEIGHT = 130[source]
jdxi_editor.ui.editors.drum.mixer.section.STRIP_WIDTH = 52[source]
jdxi_editor.ui.editors.drum.mixer.section.MASTER_STRIP_WIDTH = 64[source]
jdxi_editor.ui.editors.drum.mixer.section.ICON_SIZE = 20[source]
class jdxi_editor.ui.editors.drum.mixer.section.DrumKitMixerSection(midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper | None = None, create_parameter_slider: Callable = None, parent: jdxi_editor.ui.common.QWidget | None = None)[source]

Bases: jdxi_editor.ui.widgets.editor.section_base.SectionBaseWidget

Drum Kit Mixer widget with 37 vertical sliders: - 1 Master slider (Kit Level) - 36 Partial sliders (one for each drum partial) address: JDXiSysExAddress,

midi_helper = None[source]
mixer_sliders: Dict[str, jdxi_editor.ui.widgets.slider.Slider][source]
partial_addresses: Dict[int, jdxi_editor.midi.data.address.address.JDXiSysExAddress][source]
_create_parameter_slider = None[source]

Create a slider for an address parameter with proper digital conversion.

Parameters:
  • param – AddressParameter Parameter to create slider for

  • label – str label for the slider

  • initial_value – int initial value for the slider

  • vertical – bool whether the slider is vertical

  • address – RolandSysExAddress

  • show_value_label – str whether to show the value label

Returns:

Slider

base_address[source]
_setup_ui()[source]

So as to not provide a Tab widget

setup_ui() → None[source]

Lay the strips out like a drum kit: hats and cymbals at the top, snares and toms in the middle, kicks at the bottom, percussion and other sounds at the sides, and the kit’s master level on the left.

_add_partial_strips(lane: jdxi_editor.ui.editors.drum.mixer.lane.MixerLane, partials: list[str]) → None[source]
_send_drum_midi(param: picomidi.sysex.parameter.address.AddressParameter, value: int, address: jdxi_editor.midi.data.address.address.JDXiSysExAddress) → bool[source]

Callback for ChannelStrip mute/send. Composes and sends SysEx.

_build_partial_strip(partial_name: str, partial_index: int) → jdxi_editor.ui.editors.program.channel_strip.ChannelStrip | None[source]
_build_master_strip() → jdxi_editor.ui.editors.program.channel_strip.ChannelStrip[source]
static _compact(slider: jdxi_editor.ui.widgets.slider.Slider) → None[source]

Mixer strips name the part once, under the slider, and stand short enough for three rows.

static _name_label(text: str) → PySide6.QtWidgets.QLabel[source]
static _partial_icon_name(partial_name: str) → str[source]
static _icon_label(icon_name: str) → PySide6.QtWidgets.QLabel[source]
_create_lane_group(title: str, columns: int = 0) → jdxi_editor.ui.editors.drum.mixer.lane.MixerLane[source]
_on_master_level_changed(value: int, address: jdxi_editor.midi.data.address.address.JDXiSysExAddress) → None[source]

Handle master level change.

_on_partial_level_changed(value: int, address: jdxi_editor.midi.data.address.address.JDXiSysExAddress, partial_index: int) → None[source]

Handle partial level change.