jdxi_editor.ui.widgets.rotary ============================= .. py:module:: jdxi_editor.ui.widgets.rotary .. autoapi-nested-parse:: A rotary control for the JD-Xi faceplate. The knob sends the same control change or NRPN as the editor slider that owns the same parameter map. Classes ------- .. autoapisummary:: jdxi_editor.ui.widgets.rotary.Rotary jdxi_editor.ui.widgets.rotary.ControlChangeRotary jdxi_editor.ui.widgets.rotary.NRPNRotary Module Contents --------------- .. py:class:: Rotary(label: str, tooltip: str = '', parent=None) Bases: :py:obj:`PySide6.QtWidgets.QWidget` A knob with the hardware name printed under it. .. py:attribute:: valueChanged .. py:attribute:: hardware_label .. py:attribute:: _dial .. py:method:: value() -> int .. py:method:: setValue(value: int) -> None .. py:class:: ControlChangeRotary(midi_helper, label: str, nrpn_map: dict, channels=None, tooltip: str = '') Bases: :py:obj:`Rotary` A knob that sends a control change from a partial map. .. py:attribute:: midi_helper .. py:attribute:: nrpn_map .. py:attribute:: channels :value: [0, 1, 2] .. py:method:: _send(value: int) -> None .. py:class:: NRPNRotary(midi_helper, label: str, nrpn_map: dict, nrpn_msb: int = 0, param_type: str = 'nrpn', tooltip: str = '') Bases: :py:obj:`Rotary` A knob that sends an NRPN from a partial map. .. py:attribute:: midi_helper .. py:attribute:: nrpn_map .. py:attribute:: nrpn_msb :value: 0 .. py:attribute:: param_type :value: 'nrpn' .. py:attribute:: midi_requests .. py:method:: _send(value: int) -> None