Emulator: ADD found by the firmware's own report; WAVE's user tables work in the browser

- browser-additive-test.py: V10.8.87's engine order ends STRING ADD WAVE INPUT, so two
  steps back from DRUM landed on WAVE (9), not ADD (13), and run 47552111627 failed. KNOB 2
  now steps one detent at a time, asking the device after each, until it reports 13 (the
  engines passed are printed; same checks after: ADD, keyboard audio, edition, storage).
- wt-api.h (appended to a pin with editor_wt.c, as pm-api.h): the emulator never ran wt_boot
  (main.c does, FELUCCA_OTA only), so every WT_LIST / WT_BEGIN answered rc 4 and Studio
  could not upload a table; and WAVE reads the tables through hostsim.c's host_wt[], not
  the emulator's NOR, so a table stored there played silent. web_wt_boot after web_boot,
  web_wt_sync (host_wt = NOR 0xD0000..0xD7FFF when the flash was written) before each render.
- wavetable-test.mjs: a .jwt uploaded (102..104), listed, read back (106), played by WAVE
  from U1 (not as SINE), kept and played after a reboot; run by emulator.yml / emulator-beta.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-12-05 18:20:58 +00:00
1 parent 4b810a13aa
commit 484643ecc2
6 files changed
+179 -5

No files matched your search

+10
View File
@@ -45,6 +45,7 @@ jobs:
run: |
E=$(tr -d ' \n' < web/EMULATOR_EDITION)
P=$(tr -d ' \n' < web/EMULATOR 2>/dev/null || tr -d ' \n' < web/PREVIEW)
WT=0
if [ -n "$P" ] && git cat-file -e "$P^{commit}" 2>/dev/null; then
rm -rf /tmp/emusrc; git worktree add -f --detach /tmp/emusrc "$P"
if [ "$E" = ADDITIVE ]; then
@@ -59,6 +60,12 @@ jobs:
cp web/emu/pm-api.h /tmp/emusrc/web/emu/pm-api.h
cat web/emu/pm-api.h >> /tmp/emusrc/web/emu/felucca_web.c
fi
# (WAVE) the user wavetables checked at power-on as the FM-1 does (wt-api.h); a pin before WAVE has no editor_wt.c
if grep -q "void wt_boot(void)" /tmp/emusrc/firmware/src/editor_wt.c 2>/dev/null; then
cp web/emu/wt-api.h /tmp/emusrc/web/emu/wt-api.h
cat web/emu/wt-api.h >> /tmp/emusrc/web/emu/felucca_web.c
WT=1
fi
# (V10.8.72) the pin is the public release (web/STABLE): no "(preview)" mark, and its SOURCE_COMMIT
PV=1; [ "$P" = "$(tr -d ' \n' < web/STABLE)" ] && PV=0
if (cd /tmp/emusrc && python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()" \
@@ -90,6 +97,9 @@ jobs:
if [ "$E" = ADDITIVE ]; then
node web/emu/additive-boot-test.mjs build/emu/felucca.wasm
fi
if [ "$WT" = 1 ]; then # (WAVE) Studio's user wavetables: uploaded, listed, played, kept (wt-api.h)
node web/emu/wavetable-test.mjs build/emu/felucca.wasm
fi
# (ports) devices.html is this tree's (above), so is its MPC panel's firmware: felucca_hp.wasm (the big CPUs'
# build: SAMPLE, GRAIN, the slots), built here whatever web/EMULATOR pins; felucca.wasm stays the pinned one
EMU_ONLY=hp sh web/emu/build.sh