Files
skiff/web/emu
illuminus5 f956a125d6 Skiff Studio: the FM-1's screen in the Skiff Editor (a Screen tab), drawn by a copy of Skiff that follows the unit
The cast: while the editor watches, the FM-1 sends what its main loop and its audio interrupt take (16-byte records,
SysEx cmd 83, INFO 59 01), and a copy of Skiff in the browser does the same at the same moments, so it draws the unit's
screen with Skiff's own drawing code. There's no video: the FM-1's USB audio stays on, and it works in Chrome on
Android with the FM-1 plugged into a tablet. Checked on the unit with recordings replayed on the computer and in the
browser build: the music and the UI were the same in every once-a-second check, and the frames pixel for pixel except
where the screen draws the sound. The FM-1's HALL reverb comes out slightly differently from the computer build's (the
cause isn't known yet), so the scopes can differ by a few pixels. Not in a release yet: the released 2.5.1 has no cast,
so the tab needs the next release's firmware.

- firmware: cast.c (a ring of 64 records, sent between frames and between a draw's pieces; restart op 2: the music
  stored, the unit restarts and holds its splash until the cast starts, its music loaded before the audio ISR first
  runs, as the copy's) and its hooks (core.h CAST, CAST_BLOCK, CAST_READ): ui_input's takes, panel_enc's detents,
  keyboard_block's keys, events_block's MIDI and block count, a voice shed, the frame's readings, the draw's pieces
  and the scope's read, the LCD's pixels hashed, the editor's requests. FELUCCA_CAST is on in FM-1 builds (not the
  SMK-37's: its keybed, pads, faders and wheels aren't in it yet). Flash 580,988 B (576 B left), the ISR budgets as
  before. The MENU's CPU load is read once a frame (ui_cpu), as the copy gets it.
- web/emu/cast_follow.c, built by web/emu/build.sh as build/cast/felucca_cast.wasm: the copy, taking the records as
  they come (a frame once its e has come) and running the editor's requests at the unit's R through the unit's own
  editor.c. web/emu/cast_test.mjs feeds it a recording the same way.
- web/editor.html: the Screen tab (ja, en). Start: the editor's backup into the copy's flash, the cast's restart, the
  editor's own reconnect, then WATCH and CAST 1 first; every frame the editor sends after that goes to the copy too,
  so what the other tabs change, the copy changes. Link routes the records (onCast); INFO's 59 01 is info.cast.
  make_site.py puts the copy beside the editor.
- web/EDITOR_PROTOCOL.md: the Cast section. web/test_web.mjs: 10 tabs, scrLoaded in load()'s sandbox.
- tests/ui_test.c, tests/smk_ui_test.c: frame() takes the MENU's load as main.c now does.
2026-11-12 15:08:26 -06:00
..
2026-10-12 17:59:41 -05:00
2026-10-12 17:59:41 -05:00
2026-10-12 17:59:41 -05:00