jdxi_editor.ui.widgets.midi.parameter_send
Send a control-change or NRPN value the way the faceplate knobs and the editor sliders both do.
The map is partial number to CC number, or to NRPN LSB. Partial 1, 2, and 3 are sent on every change, which is what the performance controls have always done.
Functions
|
Send one control-change value for every partial in the map. |
|
Send one NRPN or RPN value for every partial in the map. |
Module Contents
- jdxi_editor.ui.widgets.midi.parameter_send.send_control_change_map(midi_helper, nrpn_map: Mapping, value: int, channels: Iterable[int]) None[source]
Send one control-change value for every partial in the map.
- Parameters:
midi_helper – MidiIOHelper
nrpn_map – dict partial number to control-change number
value – int 0–127
channels – MIDI channels to send on
- jdxi_editor.ui.widgets.midi.parameter_send.send_nrpn_map(midi_helper, nrpn_map: Mapping, value: int, nrpn_msb: int, param_type: str, channels: Iterable[int] = (0, 1, 2)) None[source]
Send one NRPN or RPN value for every partial in the map.
- Parameters:
midi_helper – MidiIOHelper
nrpn_map – dict partial number to parameter LSB
value – int
nrpn_msb – int parameter MSB
param_type – str “nrpn” or “rpn”
channels – MIDI channels to send on