jdxi_editor.ui.widgets.pitch.slider_spinbox

Attributes

MidiValue

MIDI_VALUE_MIN

MIDI_VALUE_MAX

Classes

PitchEnvSliderSpinbox

Pitch Env Slider and Spinbox widget for Roland JD-Xi

Functions

midi_value(value) → MidiValue

Create a validated 7-bit MIDI value.

Module Contents

jdxi_editor.ui.widgets.pitch.slider_spinbox.MidiValue[source]
jdxi_editor.ui.widgets.pitch.slider_spinbox.MIDI_VALUE_MIN = 0[source]
jdxi_editor.ui.widgets.pitch.slider_spinbox.MIDI_VALUE_MAX = 127[source]
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.QWidget

Pitch Env Slider and Spinbox widget for Roland JD-Xi

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

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

value() → float[source]

Get the semantic envelope value (fraction for depth, ms for time).

Returns:

float

update()[source]

Update the envelope values and plot