From 00ce97d64b8bf7e1dcbdb5151bdf2033132ffbc3 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 18 Feb 2026 16:01:13 +0100 Subject: refactor(mq_editor): consolidate duplicates, extract utils.js and app.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - utils.js (new): evalBezier (robust), getCanvasCoords, buildBandPoints - app.js (new): extract ~450-line inline script from index.html - editor.js: generalize _makeJogSlider(inp, options) with onUpdate cb, eliminate 50-line inline resonator jog duplication, use getCanvasCoords - mq_extract.js: extract findBestPeak(), replace two identical loop bodies - viewer.js: remove duplicate evalBezier, use getCanvasCoords/buildBandPoints - mq_synth.js: remove duplicate evalBezier - index.html: inline script removed, load order: utils→fft→extract→synth→viewer→editor→app handoff(Claude): mq_editor refactor complete — no logic changes, browser-ready. Co-Authored-By: Claude Sonnet 4.6 --- tools/mq_editor/index.html | 449 +-------------------------------------------- 1 file changed, 2 insertions(+), 447 deletions(-) (limited to 'tools/mq_editor/index.html') diff --git a/tools/mq_editor/index.html b/tools/mq_editor/index.html index 5f6af24..4737d67 100644 --- a/tools/mq_editor/index.html +++ b/tools/mq_editor/index.html @@ -424,457 +424,12 @@
Load a WAV file to begin...
+ - + -- cgit v1.2.3