jdxi_editor.ui.editors.helpers.partial_clipboard

In-process clipboard for Digital / Drum partial control dictionaries.

Paste only succeeds when the destination kind matches the source kind (Manager pastePart length/type check analogue).

Attributes

_CLIPBOARD

Functions

copy_partial(kind, controls) → None

Store a partial's control values.

paste_partial(kind) → Optional[Dict[str, Any]]

Return copied controls if kind matches; otherwise None.

apply_controls_to_editor(editor, controls) → int

Apply control name→value mapping to an editor's widgets and send MIDI.

Module Contents

jdxi_editor.ui.editors.helpers.partial_clipboard._CLIPBOARD: Tuple[str, Dict[str, Any]] | None = None[source]
jdxi_editor.ui.editors.helpers.partial_clipboard.copy_partial(kind: str, controls: Dict[str, Any]) → None[source]

Store a partial’s control values.

jdxi_editor.ui.editors.helpers.partial_clipboard.paste_partial(kind: str) → Dict[str, Any] | None[source]

Return copied controls if kind matches; otherwise None.

jdxi_editor.ui.editors.helpers.partial_clipboard.apply_controls_to_editor(editor: Any, controls: Dict[str, Any]) → int[source]

Apply control name→value mapping to an editor’s widgets and send MIDI.

Returns:

Number of parameters applied