pitch.slider_spinbox
Classes
Pitch Env Slider and Spinbox widget for Roland JD-Xi |
Functions
|
Create a spinbox with specified range and suffix |
|
Create a double spinbox with specified range, step, and initial value. |
Module Contents
- pitch.slider_spinbox.create_spinbox(min_value: int, max_value: int, suffix: str, value: int) PySide6.QtWidgets.QSpinBox[source]
Create a spinbox with specified range and suffix
- Parameters:
min_value – int
max_value – int
suffix – str
value – int
- Returns:
QSpinBox
- pitch.slider_spinbox.create_double_spinbox(min_value: float, max_value: float, step: float, value: int) PySide6.QtWidgets.QDoubleSpinBox[source]
Create a double spinbox with specified range, step, and initial value.
- Parameters:
min_value – int
max_value – int
step – float
value – int
- Returns:
QDoubleSpinBox
- class 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)[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