pitch.slider_spinbox

Classes

PitchEnvSliderSpinbox

Pitch Env Slider and Spinbox widget for Roland JD-Xi

Functions

create_spinbox(→ PySide6.QtWidgets.QSpinBox)

Create a spinbox with specified range and suffix

create_double_spinbox(→ PySide6.QtWidgets.QDoubleSpinBox)

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.QWidget

Pitch Env Slider and Spinbox widget for Roland JD-Xi

envelope_changed[source]
param[source]
factor[source]
create_parameter_slider = None[source]
slider[source]
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

value() float[source]

Get the value of the spinbox

Returns:

int

update()[source]

Update the envelope values and plot