Files
JIANT/tests
Claude c4e04dd749 The second code segment (flash 0xC8000..0xCFFFF), ported from JIANT BYTE (e807224d): 31.8 KB out of the app slot
FM's reserve 0xC8000..0xD7FFF (storage.c FL_SAMPLES, written by nothing) now holds, in its first half, cold main-loop
code run in place through the plain XIP window as the Bluetooth segment is. 0xD0000.. stays reserved; JAM's takes at
0xDA000 / 0xDB000 untouched.

- Build: app.ld C2SEG (XIP 0x020C4000), section .c2 (c2_head first, then .c2.text / .c2.rodata); core.h C2_FN / C2_IN /
  C2_RO; src/seg2.c (header, c2_want, c2_seg_ok). tools/build.py writes build/c2.bin (JBC2, length, CRC-32) and patches
  c2_want as bt_want; c2_check: nothing an interrupt, core 1 or RAM code reaches is in it, every call in from the slot
  comes from a hand-checked gate (C2_GATES), no segment address stored as data.
- Moved: the editor protocol's commands and pushes (ed_command, ed_sync, their helpers, FM's ed_fm6_handle; INFO, the
  backup and the project library stay in the slot), GEN's generators (gen_make, gen_parts, gen_pitched, gcpu_fit,
  gen_sound, gen_kit, gen_mix, gl_write, gsong, gplan, grich, gls_prep, gen_arp, trackgen_run ...). FM differs from
  BYTE: gen_make / gen_parts are slot code here (BYTE: Bluetooth segment), so they moved too, gen_go a gate;
  gen_evolve and gx_comps stay in the slot (gen_post calls them); gen_rs_apply was already in the Bluetooth segment;
  no dice_seq. Slot: 583660 -> 551828 B (676 -> 32508 B free). Segment: 31660 of 32768 B (1108 B free).
- Sound: every pinned / recorded audio function and table at its address (layout unchanged, no repin); audio flash
  code identical but for immediates; RAM code +36 B (the flash driver's range check, FL_RANGE_OK). The merged
  constants' floor (build/layout_cst.ld) is the first pool's start as laid out (FM's pools have UI constants before
  the sound's first). seq_steps always inline (no out-of-line copy for the segment's calls).
- Runtime: bt_hw_seg() checks both segments once at power-on; missing / torn / another build's: FLASH PART MISSING /
  REINSTALL at power-on and on GEN; the editor answers INFO ('X' 2), the backup and the project library only.
- Package / loader: fourth UFW entry c2.bin (type 201), checked before anything is erased, all of [0xC8000, 0xD0000)
  written (0xFF past the code), never 0xD0000 and up. FL_STORE_OK / FL_RANGE_OK leave the segment out (static asserts).
- Tests: ldr_test (c2 written, rest erased, damaged c2 refused, 0xD0000.. untouched), editor_test (segments missing),
  storage map assert, layout packing test. Manuals and EDITOR_PROTOCOL: FLASH PART MISSING.

Needs a hardware test on the FM-1 before any release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-12-04 22:33:34 +00:00
..
V10.8.35: room for MUTATE and LIVE back, compact (the owner): the filter TYPEs MS20 and LP24 gone (not far enough from LP: voice.c tf_ms20 / tf_lp24, their states, the lens's curves; a stored 5 or 6 opens as LP: project.c proj_phys_gone, upreset.c up_values, ft_of / ft_voice at use; GEN's EBM bass a resonant LP driven harder), ENV > STAGE gone (its row kept in the table: the index; LOOP and the destinations were ENV DEST's already), EUCLID's picture one ring of dots (the hits in the track's colour, an accent larger, the step playing white, ROTATE's mark; a kit the lane picked, ALL any lane; the concentric lanes, their list, the key, the roll, VARY's turns gone). SEQ > MUTATE back with EVERY alone (OFF, 1 2 4 8 bars): a mutation from the anchor as far as VARY (seed, HITS, ROTATE, the MODES) on the bar, OCT+ on EUCLID or MUTATE one now, OCT- the anchor; MODES' OCT+ / OCT- still a new variation / the one before. A melodic track: ROLE on EUCLID's KNOB 4 (MELODY first), VARY on MODES, named MELODY there. LIVE back as SEQ > STEP FX's black keys 1..9 on the selected track (seq_live.c: REV PING RND and THIN again in live_next / live_drop): RATE x2, x3/2, x2/3, REVERSE, PING-PONG, RANDOM, THIN held (in on the 1/16, let go back in phase on the ghost), GIRO - / + pressed (the playhead a step back / on). spl_threads out of the Bluetooth segment (the USB host's code compiled 240 B larger there). Tests: ui_test (ENV's chain of 3, SEQ's of 17, MUTATE compact, MELODY's OCT, the nav tasks 79), stepfx_test (LIVE compact), euclid_mel_test (ROLE's knob), gen_test (EBM), target_budget (tf_ms20 out); layout re-recorded (REPIN=keep: voice.c, seq_live.c)
2026-11-24 15:26:43 +00:00
…
V10.8.35: room for MUTATE and LIVE back, compact (the owner): the filter TYPEs MS20 and LP24 gone (not far enough from LP: voice.c tf_ms20 / tf_lp24, their states, the lens's curves; a stored 5 or 6 opens as LP: project.c proj_phys_gone, upreset.c up_values, ft_of / ft_voice at use; GEN's EBM bass a resonant LP driven harder), ENV > STAGE gone (its row kept in the table: the index; LOOP and the destinations were ENV DEST's already), EUCLID's picture one ring of dots (the hits in the track's colour, an accent larger, the step playing white, ROTATE's mark; a kit the lane picked, ALL any lane; the concentric lanes, their list, the key, the roll, VARY's turns gone). SEQ > MUTATE back with EVERY alone (OFF, 1 2 4 8 bars): a mutation from the anchor as far as VARY (seed, HITS, ROTATE, the MODES) on the bar, OCT+ on EUCLID or MUTATE one now, OCT- the anchor; MODES' OCT+ / OCT- still a new variation / the one before. A melodic track: ROLE on EUCLID's KNOB 4 (MELODY first), VARY on MODES, named MELODY there. LIVE back as SEQ > STEP FX's black keys 1..9 on the selected track (seq_live.c: REV PING RND and THIN again in live_next / live_drop): RATE x2, x3/2, x2/3, REVERSE, PING-PONG, RANDOM, THIN held (in on the 1/16, let go back in phase on the ghost), GIRO - / + pressed (the playhead a step back / on). spl_threads out of the Bluetooth segment (the USB host's code compiled 240 B larger there). Tests: ui_test (ENV's chain of 3, SEQ's of 17, MUTATE compact, MELODY's OCT, the nav tasks 79), stepfx_test (LIVE compact), euclid_mel_test (ROLE's knob), gen_test (EBM), target_budget (tf_ms20 out); layout re-recorded (REPIN=keep: voice.c, seq_live.c)
2026-11-24 15:26:43 +00:00
V10.8.35: room for MUTATE and LIVE back, compact (the owner): the filter TYPEs MS20 and LP24 gone (not far enough from LP: voice.c tf_ms20 / tf_lp24, their states, the lens's curves; a stored 5 or 6 opens as LP: project.c proj_phys_gone, upreset.c up_values, ft_of / ft_voice at use; GEN's EBM bass a resonant LP driven harder), ENV > STAGE gone (its row kept in the table: the index; LOOP and the destinations were ENV DEST's already), EUCLID's picture one ring of dots (the hits in the track's colour, an accent larger, the step playing white, ROTATE's mark; a kit the lane picked, ALL any lane; the concentric lanes, their list, the key, the roll, VARY's turns gone). SEQ > MUTATE back with EVERY alone (OFF, 1 2 4 8 bars): a mutation from the anchor as far as VARY (seed, HITS, ROTATE, the MODES) on the bar, OCT+ on EUCLID or MUTATE one now, OCT- the anchor; MODES' OCT+ / OCT- still a new variation / the one before. A melodic track: ROLE on EUCLID's KNOB 4 (MELODY first), VARY on MODES, named MELODY there. LIVE back as SEQ > STEP FX's black keys 1..9 on the selected track (seq_live.c: REV PING RND and THIN again in live_next / live_drop): RATE x2, x3/2, x2/3, REVERSE, PING-PONG, RANDOM, THIN held (in on the 1/16, let go back in phase on the ghost), GIRO - / + pressed (the playhead a step back / on). spl_threads out of the Bluetooth segment (the USB host's code compiled 240 B larger there). Tests: ui_test (ENV's chain of 3, SEQ's of 17, MUTATE compact, MELODY's OCT, the nav tasks 79), stepfx_test (LIVE compact), euclid_mel_test (ROLE's knob), gen_test (EBM), target_budget (tf_ms20 out); layout re-recorded (REPIN=keep: voice.c, seq_live.c)
2026-11-24 15:26:43 +00:00