jdxi_editor.ui.widgets.pitch.slider_spinbox
Attributes
Classes
Pitch Env Slider and Spinbox widget for Roland JD-Xi |
Functions
|
Create a validated 7-bit MIDI value. |
Module Contents
- jdxi_editor.ui.widgets.pitch.slider_spinbox.midi_value(value: int) MidiValue[source]
Create a validated 7-bit MIDI value.
- class jdxi_editor.ui.widgets.pitch.slider_spinbox.PitchEnvSliderSpinbox(param: picomidi.sysex.parameter.address.AddressParameter, min_value: float = 0.0, max_value: float = 1.0, units: str = '', label: str = '', value: int = None, create_parameter_slider: Callable = None, parent: PySide6.QtWidgets.QWidget = None, show_spinbox: bool = False)[source]
Bases:
PySide6.QtWidgets.QWidgetPitch Env Slider and Spinbox widget for Roland JD-Xi
- convert_to_envelope(value: float) float[source]
Convert MIDI value to envelope value
- Parameters:
value – float
- Returns:
float
- convert_from_envelope(value: float) int[source]
Convert envelope value to MIDI value
- Parameters:
value – int
- Returns:
int
- _slider_changed(value: int) None[source]
slider changed
- Parameters:
value – int slider value
- Returns:
None
- _spinbox_changed(value: float)[source]
Spinbox changed
- Parameters:
value – float double spinbox value
- Returns:
None
- setValue(value: float)[source]
Set the value of the double spinbox and slider
- Parameters:
value – float
- Returns:
None
- setMidiValue(midi_value: int) None[source]
Show a value received from the synth, without emitting.
The slider is in MIDI units and the spinbox in envelope units, so each is set in its own unit; setValue would pass the number to both.
- Parameters:
midi_value – int 0-127 as sent by the JD-Xi