jdxi_editor.ui.editors.ab_compare
Two photos of one part’s tone, to switch between while playing.
On the Digital and Analog editors, after Undo / Redo / Reload: A, B, Capture and Switch. A photo is the editor’s own parameter values, not a SysEx dump. Capture stores the tone in the chosen slot. A and B recall that photo, and Switch recalls the other one. A recall is one Undo step. The photos are kept per part in ~/.jdxi_editor/ab_compare and come back at start; nothing is sent until a slot is pressed. After a program change, or when a photo was stored in another session, a recall asks first.
Editing after a recall marks that photo as edited. The other photo stays as it was stored.
Attributes
Classes
The two photos of one editor, and which one was recalled last. |
Functions
|
Where the photos are kept. Tests point this somewhere else. |
|
digital_1, digital_2 or analog, or None for an editor without A/B. |
|
|
|
The photos kept for part. An unreadable file gives none. |
|
Keep part's photos. False if they could not be written. |
|
(key, widget) for every tone control. Keys stay stable across sessions. |
|
|
|
A checkbox gains value/setValue so a recall of it is an Undo step. |
|
A mode row gains setValue so a recall of it is an Undo step. |
|
|
|
The tone the editor shows now, keyed like a photo. |
|
Set the editor to values. One Undo step. How many controls changed. |
|
|
|
|
|
|
|
A, B, Capture and Switch on a Digital or Analog editor. None otherwise. |
Module Contents
- jdxi_editor.ui.editors.ab_compare.store_dir() pathlib.Path[source]
Where the photos are kept. Tests point this somewhere else.
- jdxi_editor.ui.editors.ab_compare.part_of(editor) str | None[source]
digital_1, digital_2 or analog, or None for an editor without A/B.
- jdxi_editor.ui.editors.ab_compare._store_file(part: str) pathlib.Path[source]
- jdxi_editor.ui.editors.ab_compare.load_slots(part: str) dict[source]
The photos kept for part. An unreadable file gives none.
- jdxi_editor.ui.editors.ab_compare.save_slots(part: str, slots: dict) bool[source]
Keep part’s photos. False if they could not be written.
- jdxi_editor.ui.editors.ab_compare.widgets_of(editor) list[source]
(key, widget) for every tone control. Keys stay stable across sessions.
- jdxi_editor.ui.editors.ab_compare._bind_check(widget) None[source]
A checkbox gains value/setValue so a recall of it is an Undo step.
- jdxi_editor.ui.editors.ab_compare._bind_mode(widget) None[source]
A mode row gains setValue so a recall of it is an Undo step.
- jdxi_editor.ui.editors.ab_compare.tone_values(editor) dict[source]
The tone the editor shows now, keyed like a photo.
- jdxi_editor.ui.editors.ab_compare.apply_values(editor, values: dict) int[source]
Set the editor to values. One Undo step. How many controls changed.
- class jdxi_editor.ui.editors.ab_compare.ABSession(editor, part: str)[source]
The two photos of one editor, and which one was recalled last.
- capture(slot: str, confirm_overwrite=lambda _photo: ...) bool[source]
Store the tone in slot. False if the old photo was kept.