summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-18 21:50:54 +0100
committerskal <pascal.massimino@gmail.com>2026-02-18 21:50:54 +0100
commit080f457040ca54256325b922ebd67cde5c0dc030 (patch)
tree103189c62ed7b7071a0f7c1f509d684d6e0659ca /tools
parent8f069fc08a123b1544c2a978586046e1ebb2173a (diff)
fix(mq_editor): swap keys 1/2 — 1=original, 2=synth, 3=partial
handoff(Gemini): key bindings updated in app.js and README.md
Diffstat (limited to 'tools')
-rw-r--r--tools/mq_editor/README.md6
-rw-r--r--tools/mq_editor/app.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/mq_editor/README.md b/tools/mq_editor/README.md
index 6f75a52..7d7d06b 100644
--- a/tools/mq_editor/README.md
+++ b/tools/mq_editor/README.md
@@ -10,7 +10,7 @@ open tools/mq_editor/index.html
1. Click **Open WAV**
2. Click **Extract Partials** (optional — Explore/Contour modes work immediately after load)
-3. Press **1** to play synthesized, **2** to play original
+3. Press **1** to play original, **2** to play synthesized, **3** to play current partial
## UI
@@ -86,8 +86,8 @@ Committed partials are prepended to the partial list with full undo support.
| Key | Action |
|-----|--------|
-| `1` | Play synthesized audio |
-| `2` | Play original audio |
+| `1` | Play original audio |
+| `2` | Play synthesized audio |
| `3` | Play selected partial alone |
| `E` | Extract Partials |
| `N` | New partial (flat 440 Hz, full duration) |
diff --git a/tools/mq_editor/app.js b/tools/mq_editor/app.js
index d53af37..1e17adf 100644
--- a/tools/mq_editor/app.js
+++ b/tools/mq_editor/app.js
@@ -513,10 +513,10 @@ document.addEventListener('keydown', (e) => {
}
if (e.code === 'Digit1') {
e.preventDefault();
- playSynthesized();
+ if (!playBtn.disabled) playOriginal();
} else if (e.code === 'Digit2') {
e.preventDefault();
- if (!playBtn.disabled) playOriginal();
+ playSynthesized();
} else if (e.code === 'Digit3') {
e.preventDefault();
const sel = viewer ? viewer.selectedPartial : -1;