Comment-only (the built image is byte-identical). 112 files written new for JIANT FM (GEN gen.c / gen_tables.c /
gen_track.c / song_dice.c, fugue.c, sing_ext.c, ui_euclid.c, ui_scene.c, the STEMS and probe Android apps, the video
tools, JIANT's tests and tools, web/emu/stems.js) carried "SPDX-License-Identifier: GPL-3.0-only" and no copyright
line: they now say "Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant)". Checked against Felucca's fork base
like the previous commit; tests/fm6_env_compare.c (msfa envelope as ported in fm6_core.c) and web/emu/gen_bench.mjs
(lines of the emulator's test) are left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Previously these components forced legacy 100%, even on a step configured at 0%. Keep the destination probability before overwriting the rendered copy, including aliased C.LEN input. Test the production sequencer on ANALOG and DRUM at 0/25/50/100 percent. Leave punch-in FX unchanged per the user's verified emulator report.
Copy sections A-D, unsaved live edits, current globals, arrangement scenes, per-track sources and variations into a selected project. Confirm complete-song replacement, preserve the source, and keep the naming dialog on save failure. Validate NOR persistence and UI flows; build a candidate without deploying installers.
As main 9678bf3 + 7180629's poll skip, 1417f9e, eb9ee2d:
- uac_service on every 10 kHz TIMER5 tick (nested in the render or not), not every 5th: a STEMS+IN packet is on
the wire ~0.65 ms, the next one must be queued in the ~0.35 ms after it; the guard inlined, the SIE check
(ep4_tx) and the refill (ep4_fill) out of line; no SIE poll for UAC_SKIP ticks after a fill; the stall count 20 ms.
stems_usb_test models the bus time and TIMER5's drift (0.9.9's 2 kHz poll loses up to half the frames);
target_budget watches ep4_tx / ep4_fill.
- a USB mode switch keeps the FM-1 off the bus 500 ms (usb_replug, usb_retry_due): hosts saw the ~25 ms drop
miss; ui_test checks it.
- iProduct "JIANT" (was "JIANT FM") on string index 4 (Windows caches the name by VID, PID and index: Live kept
"Felucca"); the loader "JIANT Update" there too. The Stems app's USB filter takes "JIANT" too; install_test and
usb_desc_test cover the names; editor mock and EDITOR_PROTOCOL.md renamed.
Flash +80 B. FELUCCA_REPIN=1 (uac_service pinned, it runs in TIMER5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- FELUCCA_VERSION v0.9.8; README: one v0.9.8 section (clean USB stems, JIANT Stems 1.1, VOICE singing) above
v0.9.7, status line v0.9.8, memory: image 562700 B of 581564, .data + .bss 79556 B, pool spare 10816 B,
RAM code 22460 B.
- The stems fix ships in 0.9.8 (0.9.7 still had the 720-byte endpoint): the app's old-firmware message, the
manuals, android/README and the fix's comments say 0.9.8 / "0.9.7 or older".
- Navigation map and cheat sheets regenerated at v0.9.8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- usb.c: UAC_MAXP8 46 x 16 (uac_packet sends 45 + 1 while holding the ring's fill: the host dropped those
packets as babble and halted, the ring filled and uac_tap8 dropped whole blocks; TOMA_03: ~87 breaks/s in all
channels at once, 99.9 % on the 32-frame render grid); a static assert that every packet fits; STEMS / STEMS+IN
band +48 frames (UA_PAD_STEMS); an underrun's repeat made up by uac_squeeze (n + 1 frames into n), not a skip.
- fx.c / slicer.c: a part through the SLICER is its own sound at the gain the SLICER gave (traced copy
sl_seg_tr / slicer_bus_tr, only with the stems on), its repeats in the first such part's stem or, FX ON, in the
FX return: the eight sum to the mix (it was in its stem dry and again sliced in FX). RAM code -12 B; goldens,
target budget and cpu_vg unchanged; image 562,732 B.
- tests: stems_usb_test (8/10 ch, minutes, an app-like host: every frame once in its lane, no babble; 0.9.5's
720 B shown losing 11 % in blocks; starvation corners only the holds'), stems_test (DICE songs: each stem bit
for bit its solo render in FULL / LITE / ECO, CORES 1 / 2, ECO tail trimming; sum = mix; empty track zeros;
SLICER GATE / STUT / FX ON), uac_test 736 B; run_tests runs the app's C and JVM tests while it lives here.
- JIANT Stems 1.1: usbstream.c keeps whole frames (a cut frame no longer shifts every channel) and follows the
mic's drift by fractional reading; tells a 0.9.5 FM-1 in STEMS; a take being recorded is never recovered from
the list, Wav.repair keeps all the file holds; trim edges by their grip, relative, snapped to the ends;
Spanish INICIO AQUÍ / FINAL AQUÍ / SIN RECORTE; EXPORT says when trimmed; TakeLengthTest.
- manuals (EN / ES): what was wrong, what a stem is (DUCK, the shared voices, ECO), record again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Test 7 (firmware 0.8.0, USB STEMS+IN): our own driver sends the phone's mic
out to the FM-1 (isochronous OUT, 44/45 frames a ms) while the 10 channels
come in; with the phone near the FM-1's speaker the lag between the stems
and the raw mic is the whole latency, and a second WAV has the mic moved by it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Test 6 records the built-in mic while test 5 reads the FM-1's stems, the
mic as one more track in the app. Test 5 says when the FM-1 is in STEREO or
IN+OUT (2 channels) rather than STEMS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
On an S23 Ultra Android opened the FM-1's 8-channel USB input but passed only
T1 and T2 (the rest zero), and test 2 still reported success. Test 2 now
counts the channels that carry sound; 2b tries sources x 8/6 channels; 5
reads the stream itself (usbfs isochronous reads in a small JNI library, on
the USB permission the user grants). One debug key for every build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh