jdxi_editor.ui.widgets.wheel.pitch

Pitch Wheel Widget

Attributes

WHEEL_CHANNELS

Classes

PitchWheel

Pitch Bend Wheel: dragging it (and its return to the centre) sends pitch

Functions

bend_from_value(value) → int

-1.0..1.0 to the 14-bit pitch bend (0..16383, centre 8192).

value_from_pitch(pitch) → float

mido's pitch (-8192..8191) to the wheel's -1.0..1.0.

Module Contents

jdxi_editor.ui.widgets.wheel.pitch.WHEEL_CHANNELS = (0, 1, 2)[source]
jdxi_editor.ui.widgets.wheel.pitch.bend_from_value(value: float) → int[source]

-1.0..1.0 to the 14-bit pitch bend (0..16383, centre 8192).

jdxi_editor.ui.widgets.wheel.pitch.value_from_pitch(pitch: int) → float[source]

mido’s pitch (-8192..8191) to the wheel’s -1.0..1.0.

class jdxi_editor.ui.widgets.wheel.pitch.PitchWheel(label='Pitch', bidirectional=True, parent=None, midi_helper=None, channel=0)[source]

Bases: jdxi_editor.ui.widgets.wheel.wheel.WheelWidget

Pitch Bend Wheel: dragging it (and its return to the centre) sends pitch bend; show_value() mirrors the JD-Xi’s wheel without sending.

midi_helper = None[source]
channel = 0[source]
_send(value: float) → None[source]