From d68fa4782e971b8ea41204ef5898141efcb243af Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 18 Feb 2026 05:36:49 +0100 Subject: test(mq_editor): add isolated FFT test page and sine generator - tools/mq_editor/test_fft.html: browser test for fft.js (12 tests: DC impulse, single tone, STFT magnitude, pairs, triplets) - tools/gen_sine_440.py: generate 1s 440Hz WAV at 32kHz for manual testing handoff(Gemini): FFT isolation tests added, all passing in browser. --- tools/mq_editor/README.md | 1 + tools/mq_editor/test_fft.html | 229 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 230 insertions(+) create mode 100644 tools/mq_editor/test_fft.html (limited to 'tools/mq_editor') diff --git a/tools/mq_editor/README.md b/tools/mq_editor/README.md index 1f43c19..71ad90f 100644 --- a/tools/mq_editor/README.md +++ b/tools/mq_editor/README.md @@ -31,6 +31,7 @@ open tools/mq_editor/index.html - `fft.js` - Fast Fourier Transform (Cooley-Tukey radix-2) - `mq_extract.js` - MQ algorithm (peak detection, tracking, bezier fitting) - `viewer.js` - Visualization (spectrogram, partials, zoom, mouse interaction) +- `test_fft.html` - Isolated FFT correctness tests (open in browser, no server needed) ## Implementation Status diff --git a/tools/mq_editor/test_fft.html b/tools/mq_editor/test_fft.html new file mode 100644 index 0000000..b4e7f48 --- /dev/null +++ b/tools/mq_editor/test_fft.html @@ -0,0 +1,229 @@ + + + + + +FFT Test + + + +

FFT Isolation Test

+

+
+
+
+
+
-- 
cgit v1.2.3