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
Classes
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]
- 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.SectionBaseWidgetDrum Kit Mixer widget with 37 vertical sliders: - 1 Master slider (Kit Level) - 36 Partial sliders (one for each drum partial) address: JDXiSysExAddress,
- 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
- 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.
- _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.