diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-18 11:05:37 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-18 11:05:37 +0100 |
| commit | 890f4fdf96945832d5da078cb795266127cf122d (patch) | |
| tree | ecfc93c2ad41df0787aa471d8f0be4991160f683 /tools/mq_editor/viewer.js | |
| parent | f8f664964594a341884b2e9947f64feea4b925a6 (diff) | |
feat(mq_editor): jog sliders for synth params, reset partials on WAV load, panel refresh after extract
- Clear extractedPartials and editor state when loading a new WAV
- After extract, refresh right panels (re-select if index still valid)
- Synth fields (decay, jitter, spread) get jog sliders: drag to nudge, spring-back on release
- Spread extension limit dashed line: alpha 0.4→0.75, lineWidth 1→1.5, dash [3,4]→[4,3]
handoff(Gemini): mq_editor UX polish — jog sliders, WAV reset, panel refresh, spread line visibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tools/mq_editor/viewer.js')
| -rw-r--r-- | tools/mq_editor/viewer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mq_editor/viewer.js b/tools/mq_editor/viewer.js index 3b2e1b2..76c57e2 100644 --- a/tools/mq_editor/viewer.js +++ b/tools/mq_editor/viewer.js @@ -312,10 +312,10 @@ class SpectrogramViewer { ctx.fill(); // Dashed boundary lines - ctx.globalAlpha = 0.4; + ctx.globalAlpha = 0.75; ctx.strokeStyle = color; - ctx.lineWidth = 1; - ctx.setLineDash([3, 4]); + ctx.lineWidth = 1.5; + ctx.setLineDash([4, 3]); ctx.beginPath(); ctx.moveTo(upper[0][0], upper[0][1]); for (let i = 1; i < upper.length; ++i) ctx.lineTo(upper[i][0], upper[i][1]); |
