Commit Graph
62 Commits
Author SHA1 Message Date
Claude 62cde03949 JIANT Studio: install, edit, the screen, the emulator and recording in one page, for JIANT FM and JIANT BYTE
web/studio/ (published at /JIANT/studio/; .github/workflows/emulator.yml):
- One page in each firmware's look (JIANT FM: cream, violet and the heat gradient, Michroma, the horizon grid;
  JIANT BYTE: stars, synthwave stripes, pixel type), chosen by the firmware the FM-1 runs (INFO's engines: MATH is
  BYTE's) or by hand. Home in steps (connect, install, use it) after Melodee's installer, with the help that matters.
- A target for everything: the FM-1 over USB, or the emulator.
- Install / Editor / Emulator: the sites' own pages in frames (JIANT FM's from /JIANT/, BYTE's from /JIANT-BYTE/: one
  origin), dressed in the look, without their own headers. The editor connects by itself to the FM-1 Studio found.
- Screen: the FM-1's (78 SCREEN / 79 SCREEN_DATA) or the emulator's, straight to full screen; square, the width in
  portrait and the height in landscape, the controls beside; sharp or smooth pixels; the phone kept awake.
- Record: the FM-1's USB audio (stereo, or USB > STEMS's 8 channels: T1..T6, FX, the mix, as a ZIP) or the emulator's
  output, as WAV; what comes in over MIDI as a .mid; a song's offline stems through the emulator's panel.
- Install safety: on the jiant-midi channel like every MIDI page: lets the FM-1 go while an installer writes.
- dev_server.py: the published layout on this computer (local tools, the live site for the rest).
The emulator answers the whole editor (web/emu/editor-api.h: the firmware's editor.c, as the ports' core runs it; built
into felucca.wasm by web/emu/build.sh), so with target Emulator the editor edits the FM-1 in the browser; the emulator
lets Studio record its output and choose which MIDI input plays it.
editor.html: ?emu=1 inside Studio edits the emulator; the Screen button goes full screen at once.
Tests: web/studio/studio_test.mjs (screen frames as the editor's and the firmware's, WAV / ZIP / MIDI, the words),
web/studio/browser_test.mjs (Chromium: detection, the screen and full screen both ways, install safety, the editor on
the emulator, recording), in tests/run_tests.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
2026-11-23 17:21:49 +00:00
Claude ae9afc86e4 editor: SMK-37, the computer ports and the big CPUs' engines (SAMPLE, GRAIN, DRUM-X's samples)
- firmware (editor.c): INFO tags 'D' 1 board (SMK-37 Pro / Elite, a computer, the MPC Sample, the MPC plugin) and,
  FELUCCA_HOST_POWER only, 'H' 2 caps slots, both before 'Y'; on the big CPUs DESC / SET / TRACK_PARAM name the
  values beyond EDIT by the track's engine (hp_xdesc) and send enum names by value (DRUM-X's SLOT 112..). The FM-1
  binary is byte for byte as before (cmp build/felucca.bin, .fwsc), regress 0 golden changes.
- ports/core: the editor's SysEx (jiant_sysex, jiant_sysex_out, jiant_editor_poll, jiant_editor_host) through the
  firmware's own handler; felucca_hp.wasm leaves it out. JUCE standalone: SysEx in, replies out of its MIDI output
  (producesMidi only for the standalone; the plugins' buses unchanged); tests/sysex_check.cpp.
- web/editor.html: the device shown (tag, else port name), SMK-37 / MPC Sample port names, the structured layout for
  P_COUNT 123 (it showed a plain list) with a FILTER section, SAMPLE's TRIG REC, GRAIN's TRAVEL SOURCE PITCH and
  DRUM-X's SAMPLES pages on a device with 'H', SAMPLE sounds kept on such a device; the mock as a big CPU (?hp=1)
  or an SMK-37 (?board=1), its tables generated from and compared with descdump built with FELUCCA_HOST_POWER=1.
- tests: editor_test with FELUCCA_HOST_POWER, core_test, test_web devices section, web/editor_browser_test.mjs.
- docs: EDITOR_PROTOCOL.md "Device and big CPUs"; MPC Sample README: why its app does not answer the editor yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-21 17:15:04 +00:00
Claude 6b639aa241 tests: devices.html in Chromium (web/emu/browser_mpc_test.mjs): the MPC's samples end to end, FM-1 and SMK-37 still play
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-21 14:47:36 +00:00
Claude f8b2a77843 tests: run_tests.sh parses again (an apostrophe inside ${STOCK:+...} in the SMK-37 package step)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-21 04:31:08 +00:00
Claude 87f7c400f4 UI for the sample engines (ports/ only): their pages, the EDIT chain's SAMPLE group, the slot's picture
SAMPLE's TRIG and REC, GRAIN's TRAVEL SOURCE PITCH, DRUM-X's SAMPLES pages after the FM-1's
(their indices kept), in EDIT's chains as a SAMPLE group; ui_smpvis.c draws the slot's name and
waveform, the region, the playheads and the grains, EMPTY, LIVE, RECORDING. The UI render lint
built with FELUCCA_HOST_POWER=1 sweeps them: 0 findings (tests/run_tests.sh runs it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-21 03:45:14 +00:00
Claude 1ecc283aec SMK-37: the input HAL and the control mapping
hal/smk_input.h: Melodee's SMK-37 HAL as it is (velocity keybed, 18 buttons, 8
encoders, the button LEDs, pads, faders, wheels; the fm1_adc.h stand-ins, K5 as the
MASTER pot), with three no-op stand-ins for JIANT's dim / sweep LED calls. felucca.c
includes it instead of fm1_input.h and fm1_adc.h on the SMK (PB6 is the SMK's LCD
clock).

The mapping (panel.c, after Melodee's): FX=FX, SCALE=SCL, CHORD=ENV, NOTE REPEAT=LFO,
PARA=EDIT, GLOBE=GLO, PATCH=HOME, BT=SAVE, ARP, SEQ, SEQ PLAY=PLAY, SEQ REC=REC,
OCTAVE-/+ = OCT-/+; K1-K4 KNOB 1-4, K5 MASTER, K6 SELECT, K7 ALGORITHM, K8 PRESETS;
magic 'PNS5', validation against the SMK's 18 buttons / 8 encoders; HARDWARE
CALIBRATION asks by the printed names. ui_input.c: < and > one SELECT step, KNOB BANK /
FADER BANK nothing, the pad and outer-key queues drained, button loops over the SMK's
ids, an SMK ui_leds (button LEDs on/off, breathing = blink, the pads show their white
key's LED); ui.pg_down widened to 32 bits on the SMK. seq.c: a key struck again while
held (notes_retrig) sounds again. main.c: OCTAVE- + OCTAVE+ at power-on for the
calibration. console.c: no 'inp' on the SMK. lcd.c: the pad LED buffer in .bss.

Tests: tests/smk_map_test.c (the mapping), tests/smk_keys_test.c (Melodee's keybed
test, unchanged). The FM-1 build is byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 20:55:02 +00:00
Claude a46b68c086 SMK-37: the flash map and its guards; the store, OTA staging and loader on it (RAM-only by default)
hal/fm1_flash_map.h (after Melodee's): the SMK's windows (store A 0x9D000-0xBAFFF,
OTA 0xBB000-0xBFFFF, store B USRFLASH 0xC2000-0xE9FFF, store C 0xEB000-0xF3FFF), the
marker sector 0xEA000 (whole-sector erase only), and FL_PROTECTED: the head, BTIF /
USRTRIM 0xC0000-0xC1FFF, USR + 0xFE000, key_mac. The RAM driver (fm1_flash.h) refuses
on FL_GUARD = FL_RANGE_OK && !FL_PROTECTED, also under the loader's own range; on the
FM-1 FL_GUARD is FL_RANGE_OK (byte-identical build).

storage.c: an SMK st_sector table (78 sectors: 38 A/B pairs, the voice bank, the owner
tag 'SMK37DATAJIANT' at 0xAF000), st_owner_check and the stock-mapping marker release
(after Melodee's); storage_hw.c releases the marker before the first write into
USRFLASH. ota.c: staging 0xBB000 / record 0xBFF00 and a board check (-15 not an SMK
flash.bin, -16 region table not the device's, -17 USR place). Loader: app area
[0x4000, 0x9D000) and the OTA area only; the record scan never leaves the OTA area; a
package whose region table is not the device's is refused (-14).

project.c: on the SMK, flash only with FELUCCA_SMK_FLASH=1 and only for JEDEC
0xEB6014 (FL_JEDEC_OK); the default SMK build stays RAM-only.

Tests: tests/smk_flash_test.c (every protected sector / page / byte refused by every
allow-list and the driver net; straddles, wraps; the table; a simulated SMK: first
boot, every object saved and loaded, the marker released once, forbidden erases and
programs refused, protected bytes identical), tests/smk_ldr_test.c, ota_test.c SMK
build; wired into run_tests.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 20:55:01 +00:00
Claude 7950dca52a SMK-37: package layout per board (fm1pkg_make --board smk37) and its host test
fm1pkg_make.py gets REGIONS / BOARDS / MODELS / set_board (after Melodee's): for the
SMK-37, flash.bin is the stock PRCT (0x9D000) and the app area carries the stock v016
region table (VM, PRCT, BTIF, USRTRIM, USRFLASH, USR). The FM-1's table and package
are unchanged. tests/smk_pkg_test.py checks an SMK package (identity, sizes, table,
app.bin, no record look-alike) and, given a stock v016 package, the table's bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 20:55:01 +00:00
Claude a659154658 [private-preview] Installer: the Bluetooth part checked after the install, written once more when missing; no JIANT through another loader
- After the install's restart the installer asks the FM-1 for its Bluetooth part: INFO's tag 'X' (firmware protocol
  1.3), else VEL op 4's length (protocol 1.2, V10.6z7 .. V10.7.21), else not checked. Missing: Install once more (from
  JIANT its own loader writes the part), asked again; still missing: 'btmissing' with what to do. COPY REPORT has a
  "bluetooth part:" line.
- Update mode with a loader that is not JIANT's (ota-FM-1_900): Install does not resume JIANT through it
  ('foreignLoader': finish Return to official with Resume ticked, then Install); Return to official without the box
  says 'stockNeedResume' instead of sending to Install. tip_stockNeedBackup reworded (es/en/ja).
- tools/patch_installer_downloads.py also brings the published installers fm1diag.js's flows and report and the
  texts' block from this checkout; tests/patch_installer_test.py runs it on pages built from this checkout and from
  e6bf12cd / 1d13ffc0, as built and as the previous tool patched them (idempotent, node --check); the workflow runs
  the test before patching.
- web/test_web.mjs: the simulated FM-1 tells its Bluetooth part (tag or VEL), the new flows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-12 22:29:38 +00:00
Claude dbb74f8967 Merge rolls-bug (a live hit into a RATCH / ECHO step plays once: LM_ONCE) into voice-theme for 0.9.17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-20 00:41:51 +00:00
Claude dcbbbabf31 DRUM-X: a hit recorded live into a RATCH / ECHO step plays once (Danil's "random rolls")
Finger drumming at OCT 0 with REC armed over a beat whose steps carry a step RATCH x2..x4 or an
ECHO (DICE and GEN write them on random hat steps, fills): rec_drum put the key's hit into the step
and the step's remaining repeat parts (seq_ratchet -> seq_step SEQ_REP re-reads the step) struck it
again at once, so one press sounded x2..x4, and every pass after played it as that roll. Independent
of OCT and present in 0.9.14 too (the code is unchanged since 0.8.5); nothing in the 0.9.15 diff
(scan build flags, FX layer) touches the live key path, and host simulations of fast / overlapping /
short taps at OCT 0 give exactly one hit per press on both versions.

Fix: the free lane-mode code 7 becomes LM_ONCE. A plain hit recorded on a lane the step did not
play, into a step that repeats, gets LM_ONCE; seq_step leaves LM_ONCE lanes out of the repeat
parts. The step's own hits still roll; a lane already in the step rolls with it as before; a step
without repeats records exactly as before (no mode). step_lmode reads 7 as none (so do older
firmwares: there the hit rolls with the step, as it always did); FUNC keeps it.

Test: drumx_oct_test ONCE: early and late presses into RATCH x2/x3/x4 steps (once live, once on
the next pass, the hats still xN), again on the same step, a hat into its own step, ECHO, a plain
step, FUNC round trip. Fails without the fix. Flash +176 B (44 B free).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 21:26:43 +00:00
Claude 6f63989e01 0.9.17: dice-variety's tags (was 0.9.18); the DRUM-X octaves' test line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 21:14:53 +00:00
Claude 58496bce3e Merge dice-variety (GEN/DICE variety, SEQ+SELECT on GEN's generator, sounds, longer leads) into voice-theme for 0.9.17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 21:13:05 +00:00
Claude c3db1e9215 tests/run_tests.sh: GEN's line names the dice's checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 20:58:38 +00:00
Claude c430a18c91 Fonts: S and M at 2 sub-pixel phases (were 4): 12912 B of flash
The small and medium UI faces were rasterised at four horizontal phases
(+0, +1/4, +1/2, +3/4 px); now two (+0, +1/2), as the large face has been
since 0.5. Glyph data and tables of S and M go from 32176 B to 19269 B; the
image from 584116 B to 571204 B (13132 B free in the slot).

A glyph still sits within 1/4 px of its true place and a gap between two
neighbours within 1/2 px (S 0.43 px max, rms 0.19; M 0.40, rms 0.16; with
four phases 0.20 / 0.24). tests/text_spacing_test.py now holds every face to
a phase step (1 / phases px) instead of a fixed 0.25 px for S M. The renderer
(gfx.c text_run) is unchanged: it reads the phase count from the face.
UI renders: 0 lint findings, 0 alignment findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 19:44:37 +00:00
Claude ca2d6c1ad0 v0.9.16: version, README entry, what's new, comments' tags; ABOUT screen and navigation map regenerated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 19:44:37 +00:00
Claude db430f5dde WIP: silence path bit-exact (DRIFT's clock and the engines' block work go on); tests/hush_test.c both ways 2026-10-19 16:10:19 +00:00
Claude 9cf57932dc CLOUD: the loop can no longer run away (the tester's crackle when pushed)
rev_cloud's grains were summed with no regard to how many overlapped: the
windows' sum grows with RATE (up to 12 grains) and, times SIZE's feedback into
the line (up to 0.43), the loop gain passed 1 from RATE ~90 at any SIZE (RATE
127 even at SIZE 64): the line ran away into its int16 clamps (+23 dB, 35-50 k
clamped samples in 4 s, RMS 150 k forever) and the limiter / CLIP crushed it:
the crackle. Now:
- the grains' windows summed are capped at 2 grains' worth (CL_WMAX): the
  loop's gain <= 0.43 x 2, it always dies away;
- the line is written through a soft knee (rv_knee: linear to -2.5 dBFS, tanh
  above), not a hard clamp;
- the grains go into ROOM's network at half the level, x2 at its output: 6 dB
  more headroom before ROOM's allpasses clamp (280 k -> 9 k clamped samples at
  a 90000 send);
- a ~14 Hz low cut in the loop (ROOM's floors circulated a DC);
- AIR above ~+13 st with MOD: a grain's start span went negative (unsigned
  underflow; a modulo by zero possible at the edge): grains read across the
  write head, a click each (80 in 4 s at AIR +24). Those grains are shortened
  to fit behind the write head.
ROOM, SPRING, SHIMMER, RESO untouched: the 157 golden renders unchanged.
tests/cloud_hot_test.c: stability map SIZE x RATE, 20 s at SIZE 126 RATE 127,
hot sends 16 k .. 200 k, clamps, FX_SANE trips, write-head crossings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 14:42:37 +00:00
Claude fa1422e4bf Merge remote-tracking branch 'origin/main' into explore-cpu 2026-10-19 10:31:32 +00:00
Claude 64ee3b0fa4 Flash: the app slot grows to 0x8EA90 (+2772 B), the region ending at 0x92FFE, no loader change
The encrypted app region (app_area_head block + cfg_tool.bin + the cfg directory) now ends 2 B short of 0x93000,
inside flash.bin [0, 0x93000) that every Felucca/JIANT loader already writes whole (it was 0xFF padding). The loader
binary is byte-identical to 0.9.12's; the package is the same size. fm1pkg_make asserts the region stays inside
flash.bin and that no 4K-256 slot of the image reads as an update record; build.py checks app.ld's XIP LENGTH against
APP_SLOT. ldr_test decrypts the installed app area (app.bin slot, CRCs, region end, 0xFF after it) and checks
[0x93000, 1 MiB) byte-identical but the two record sectors; run_tests installs an app that fills the whole slot with
today's loader, and checks the packager refuses one byte more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 00:39:25 +00:00
Claude ba816ffdc1 Interactive manual (web/manual), published at /JIANT/manual/
The owner: "con tantas versiones ya me olvidé de cómo usarlo; un manual interactivo, y lo ponemos en la web".
One static page, Spanish first with an English toggle, in the front page's look:
- The FM-1 drawn on the landing's proportions (8 knobs, 14 buttons, 27 keys): touching a control shows what it does
  alone, held and in combinations, with the firmware's real screen (on the drawing's LCD too); a layer picker writes
  each layer's key functions on the keys (FX, GLO, SEQ, SAVE, EDIT, REC, LFO, SCL, MANO, NAME), as the firmware's MAP.
- "¿Cómo hago…?": 114 commands and 17 task recipes, searchable (accents ignored, either language) and filtered by
  section; each shows the emulator's keys for it.
- The navigation map from the firmware's chains (tools/gen_manual.py reuses gen_nav_map.parse() and its rules /
  layers): every page opens its screen, breadcrumb and four knobs.
- What's new 0.9.12 back to 0.8.0; the emulator embedded on demand.
- shots/: 117 renders of tests/ui_render.c (AIR skin, JIANT palette), copied by tools/gen_manual.py; a service worker
  keeps the manual offline.
Wired: web/make_site.py manual OUT (checks the screens), the workflow's front-page step, links from the landing page and
the README. web/test_manual.mjs (in tests/run_tests.sh): every control has an entry, every combo names real controls,
both languages, every linked screen a 240 x 240 PNG, nav.js current, the search, and the page in Chromium (desktop and
390 px, offline fonts, no errors, no horizontal scroll).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 00:26:56 +00:00
Claude ebcefb24d2 Merge branch 'skiff-bits' into rel-0912
# Conflicts:
#	README.md
#	docs/MANUAL.es.md
#	docs/MANUAL.md
#	docs/navigation-map.es.png
#	docs/navigation-map.es.svg
#	docs/navigation-map.png
#	docs/navigation-map.svg
#	firmware/src/menu_items.c
#	firmware/src/ui_menu.c
#	tests/editor_test.c
#	tests/ui_test.c
2026-10-18 20:44:36 +00:00
Claude 7180629b0b 0.9.12 (draft): safe by default on FM-1s that crash; the sound's flash layout pinned (0.9.10 crackle candidate)
Stability (users' random "FELUCCA/JIANT CRASH" screens since the dual-core 0.6.x builds):
- MENU > SYSTEM > CPU 2 CORES / 1 CORE and CPU CLOCK 360 / 320 MHZ (settings byte favorites.factory[15][17],
  editor ids 23, 24), from the next start. A crash or a watchdog hang while both cores ran, or the second core
  given up (misread / no answer / fault), turns 2 CORES off for good (was: until power-off) and says
  "2 CORES OFF AFTER A CRASH - MENU > SYSTEM > CPU" / "CORE 2 FAILED: 1 CORE"; ABOUT: CORES 1 (AFTER A CRASH).
- 320 MHz: curist's fm1-clk320-probe switch (MIT, hal/fm1_clk320.h, unchanged; LICENSES/MIT-fm1-clk320.txt), at
  boot before the scan, core 1, audio and USB; a reset during it: no failed boot, no retry until power-off.
- Crash screen: version, the faulting core and how many ran, a short code (cpu_safe.c crash_code) and the five
  numbers labelled (VEC PC EMU DBG RETS, same order as every older screen). The last crash (or watchdog hang) is
  logged as 32 characters in the settings record (SLICE's retired favourites row 13): MENU > ABOUT > LAST CRASH,
  the editor's settings backup, console `crash`. tools/crash_decode.py maps a photo's numbers to functions (ELF).
- Fixed race: every flash erase/write/read turns XIP off with IRQs off; the 48 kHz USB resampler job (0.8.9)
  runs on core 1 past the audio ISR, so a core-1 fault then would fetch the vectors from a disabled flash.
  irq_save now parks core 1 first (fm1_mc_park, FL_PARK hook).
- One core: the load governor's budget at 55 % (was 65 %) so peaks have room without core 1.
- MENU > AUDIO > LOAD (was SYSTEM's; a bottom tile holds 7 rows), RAMTEXT 1 KiB larger (from the pool's spare).

Crackle since 0.9.10 (owner's unit: 0.9.9 clean, 0.9.10/0.9.11 up to 94 % load on every output, host counts equal):
- 0.9.9 -> 0.9.10 changed no sound code and left the RAM code byte for byte, but the +6 KB of new drawings came
  before the engines in the image: every engine render (flash/XIP, shared cache) moved +6178 B (analog +9414)
  while the effects, master and ISR stayed put. Now everything an interrupt reaches (347 functions, 244 tables)
  is placed first in name order (build.py audio_sections, app.ld .text.a.* / .rodata.a.*): UI changes can no
  longer move it (verified: this commit's +2.3 KB of UI moved the renders by 48 B, sound-side edits). Same size.
- TIMER5's USB refill (0.9.10, every 10 kHz tick, also nested in the render): no SIE poll for 0.6 ms after a
  packet is queued (it cannot have left yet): ~4 polls a ms instead of ~10. tests/target_budget.py watches
  ep4_tx / ep4_fill.

Image 578540 B (+2348 over 0.9.11). ./build.sh && tests/run_tests.sh: ALL HOST TESTS PASSED (new
tests/cpu_safe_test.c; settings, ui, editor tests extended).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 20:40:33 +00:00
Claude 329aff53fa 0.9.12 draft: 12 voices with the second core, sound types + PRESETS by type, MIDI LEARN (MENU > MIDI), FM6 bank sector guard, copyright lines
- voice.c voice_cap: VOICES_2CORE 12 while the second core takes parts (fx.c mc_two: CORES 2, not REC at
  power-on, not given up); one core 8, LOAD ECO 6; a track still NVOICE 8 (no RAM). After Skiff by illuminus5.
  cpu_vg: mix/v12 (both cores 3924 instr/sample), mix/v12.c0 (core 0 1949), mix/v12.one (one core, 8 voices 3241);
  regress.c chk_budget_2core; the dual-core equivalence test at one budget (mc_host_v12).
- Sound types (PT_BASS..PT_FX) on all factory presets in preset_t.mono bits 1..4 (no format change); PRESETS LIST
  ALL / FAV / BASS LEAD PAD KEYS PLUCK BELL VOX DRUM FX across engines, saved in favorites.factory[15][18];
  gen.c keeps PT_BASS sounds off the other roles (was a name match). After Skiff by illuminus5.
- MIDI LEARN ported from Felucca 1.5 (midi_learn.c): 10 CCs, 3 bytes each in DIGITAL's favourites row, reserved
  CCs and the standard map refused, any channel, USB and TRS; MENU > MIDI tab (MIDI OUT, LEARN, LEARN CLEAR);
  state in the pool.
- fm6_vbank.c: 0xE7000 holding foreign data (Skiff's pattern bank) reads as no bank and is never erased at
  power-on; only a bank the user sends replaces it. fm6bank_test foreign_test.
- Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) in JIANT's files ("Portions" in mostly-Felucca ones),
  README / LICENSING.md / MENU > ABOUT credits (Felucca, Skiff).
- Docs: MANUAL.md / MANUAL.es.md, README v0.9.12 draft, EDITOR_PROTOCOL.md (tabs), cheat sheets, nav map.

Flash 576192 -> 577712 B (+1520), .data+.bss unchanged, pool +8 B (spare 10528 B).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 18:50:07 +00:00
Claude 5c5e97627a 0.9.11 draft: GLO > LIVE, the six sequences in parallel with live modifiers (MANO + RIELES)
A new first group in GLO (LIVE · MIX · GLOBAL · SYSTEM; at power-on GLO still opens MIXER), from the approved mock-up
secuencias.html (V3 MANO, V1 RIELES):
- MANO: the keys are a performance board on that page only (seq.c keyboard_block, song.grid 3): black 1-6 pick tracks
  while held (several; none / A#4 = all), white keys momentary modifiers (/2 x2 3/2 2/3, LOOP 8 4 2 1, REV, PING,
  RATCH x2 x3, THIN 50 %, OCT+-, G5 RETURN), G#4 LATCH, C#5/D#5 GIRO, F#5 RND; K1-K3 RATE LOOP THIN, K4 the DJ FILTER.
- RIELES: six rails (loop, playhead, ghost, window); K1 PISTAS ALL, T1..T6, SYN, DRM; K2 RATE /4..x4 (on the beat);
  K3 CORTE; K4 DENS (THIN <- -> RATCH x2-x4).
- seq_live.c: per-track non-destructive modifiers with a ghost playhead, quantized in the ISR (live_q: RATE on the beat,
  the rest on the 1/16, RETURN on the beat, BYPASS at once); the next step as a JUMP (no new hot-path branch); THIN a
  deterministic roll; RATCH capped (no part < 64 samples); recording at the ghost's step.
- ui_live.c: both pages drive one latched layer per track with MANO's keys on top; OCT- tap RETURN, held BYPASS; OCT+
  twice COMMIT into DIV / STRETCH, LEN, ROTATE, CHANCE with UNDO (GLO + G4). Never saved.
- Flash +7108 B (568940 -> 576048), .data+.bss unchanged, pool spare 10784 -> 10528, RAM code 22460 -> 22512.
  cpu_vg song/cputest 3079 -> 3082; seqtick/plain 119 -> 121, seqtick/live 135 (new sections).
- tests/live_test.c, ui_render scenes live_*, nav map and cheat sheets regenerated, MANUAL (EN/ES) § 11, README draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 16:36:28 +00:00
Claude ef887a5afa JIANT Stems leaves the public repository: a separate product
- android/stems removed (it lives on privately under its own license); the android workflow builds only the probe;
  the site no longer publishes app/jiant-stems.apk; run_tests drops the app's checks.
- README, manual, landing (EN ES ZH JA) and android/README: the app named as a separate product, coming soon, no
  download link. The firmware's USB STEMS / STEMS+IN and their tests are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 12:13:01 +00:00
Claude 6968b20ed1 0.9.9: DRUM-X, VOICE, ANIMAL first: power-on tracks and the engine order
- Power-on, INIT SYSTEM and NEW PROJECT (engines.c TRK_DEF, ui.c power_sound_of / power_on_parts): T1 DRUM-X (the
  factory kit), T2 VOICE SINGER EN (sings words), T3 ANIMAL CMOS BIRD, T4 LOFI BYTEBEAT, T5 ANALOG FAT BASS,
  T6 FM6 TINE EP, each its preset's sound, dry (no DIST CHOR DLY REV send). INIT SOUND unchanged.
- The display order (ENGINE_ORDER, a table over the append-only ENGINES[] indices): DRUM-X VOICE ANIMAL LOFI ANALOG
  FM6 PHASE WHEEL NOISE (DIGITAL last in FELUCCA_FM4 builds) on PRESETS, KNOB 2 ENG, the web editor's lists and the
  cheat sheet. Engine numbers never renumbered; PROGRAM CHANGE keeps 0.9.8's numbering (ENGINE_PC_ORDER).
- Old projects: the tracks an old format lacks still load as 0.9.8's power-on sounds (TRK_OLD); everything saved
  loads unchanged. GEN genre recipes unchanged; drums found by drum_track() wherever they are.
- Tests: new ui_test checks (power-on engines/presets in order, dry, each sounding, DRUM on T1 alone, HOME key and
  MIDI note on T1, NEW PROJECT identical; selector place <-> engine round trips; ENGINES[] indices; PROGRAM CHANGE
  order; a 0.9.8-track project unchanged after the new power-on). Updated old-order / old-power-on assertions (KNOB 2
  steps, ENGINE_ORDER names, NEW PROJECT sounds, PROGRAM CHANGE expected sound, web editor lists and mock, project
  tests on old formats -> TRK_OLD). UI tests, renders and CPU sections keep 0.9.8's tracks as fixture (TRK_OLD).
  Goldens, cpu_vg and target budgets unchanged.
- FELUCCA_VERSION v0.9.9; README v0.9.9 section, manuals (EN / ES), EDITOR_PROTOCOL; navigation map, cheat sheets
  and README hero (HOME render now on the power-on tracks) regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 06:21:57 +00:00
Claude 414aac8cd4 0.9.8: clean USB stems (and JIANT Stems 1.1) + VOICE sings softer, merged with 0.9.7
- 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
2026-10-18 05:07:54 +00:00
Claude fc6a33f811 0.9.7: clean USB stems: the 8-channel endpoint fits its 46-frame packets (736 B, was 720: babble, stalls, ~100 blocks a second lost in every stem), a ms more in hand and made-up frames spread over a packet, the SLICER's parts once in the stems; JIANT Stems 1.1: whole frames only, the mic's drift without slips, the trim and the take's length
- 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
2026-10-18 02:25:55 +00:00
Claude 8d3e75f12d 0.9.3: merge the navigation map (EN/ES) into README, manuals and landing; the map shows SEQ+D5 REVERT and GLO+B4 REVERT ALL; tests check the map against the firmware's chains
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 19:57:24 +00:00
Claude c5f9b17255 0.9.1: REC off the grid 4 x finer: a step's MICRO in 64ths (-32 .. +31), recorded, played and saved
- core.h ST_MICRO / ST_MICRO_SET (inline now): the sixteenth below stays in cwhen's bits 4-7 as always, the 64ths above
  it (0..3) in two free bits of the flags (SF_MFINE, bits 5-6): step_t is still 20 bytes, no struct or static moved
  (its 6 x 64 in trk[], cvs / cva / cvp / rh_bak, the project scratch, the section stage, tl_src, gen_keep, dxo_bak,
  the stack copies: 0 B; a byte more would have been ~478 B of main RAM and shifted track_t after step[]).
- seq.c: live recording with REC Q under 100 % writes 64ths (rounded; REC Q 0 % where you played, 50 % half way);
  playback in 64ths (a late step's queue, the early end of the step before). Flags written whole keep the 64ths
  (rec_hold, load_pat16, GEN, the dice, the editor's STEP_SET); gen.c's sixteenths x 4 (its pieces as before).
- SEQ > NOTE's KNOB 4 a 64th a detent (accelerated), the card "+5/64", the big step's chip, the piano roll.
- FUNC: the 64ths in a block after the others ('M' 'F': the tracks, 2 bits a step), only when a step has some; a
  project of before plays and saves exactly as with 0.9.0 (its sixteenths x 4); firmware before 0.9.1 loads a newer one
  and plays each step at the sixteenth at or below (up to 3/64 sooner).
- Tests: micro_test.c (every value; an old project sample for sample and byte for byte as 0.9.0; recording within
  1/64 of a step at 72 / 120 / 174 BPM on 1/8 1/16 1/32 16T and swung, worst 0.0088 of a step; playback within a
  sample of MICRO's place; REC Q 50 % / 100 %; save / load and the block missing); ratchet_test's TIMING in 64ths;
  editor_test (STEP_SET keeps MICRO); ui_render sweeps every MICRO. Manuals, README, protocol, cheat sheets.
- CPU / audio: goldens, cpu_vg and target budgets as before. Image 548444 B (+564), RAM unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 16:10:55 +00:00
Claude 700d893a84 0.9.1: a master DJ FILTER on GLO > MIXER KNOB 4 (was the track's MUTE): LP / HP, out of the chain in the middle
- fx.c djf_block: one bipolar knob on the whole mix just before CLIP and the leveler. 0: not run at all (the mix bit
  for bit 0.9.0's, the CPU too: one test a block). Below 0 a low-pass sweeping down (~15 kHz .. ~70 Hz), above 0 a
  high-pass sweeping up (~30 Hz .. ~6 kHz), on CUTOFF_HZ's log scale, Q 0.72 near the middle to 1.1 at the ends. A
  trapezoidal SVF in 64-bit products, Q28 coefficients, the mix 16 x finer in its states (tsvf's Q13 left a -31 dB
  floor of highs through the closed low-pass); the cutoff glides (~6 ms), coefficients ramp every sample; ~5.8 ms
  crossfades into / out of the chain and between sides: no click crossing the middle; the knob stops there once.
  Its state in its own .bss section, so the merged statics the ISR reads keep their places (no codegen change in
  any hot function: only mix_block's call and motion_step's branch).
- G_DJF in G_NAME's slot (17: "--", 0..0, never set): saved in the header, every older project loads it OFF;
  autosave and saves keep the knob's value, not its automation's.
- Automation: MOT_DJF (motion id 127) records on the selected track while recording, plays at its step, a stop or
  the loop's restart brings the knob's value back; no lock. FUNC keeps those records in a block after the lyrics
  ('M' 'G'), so firmware before 0.9.1 loads the project without them. AUTO LIST and the web editor name them.
- The card: "2.0k LP" / "400 HP" / "OFF" and a small response curve where the bar was (BOTTOM / HUD: 5 rows).
- Mutes stay on the GLO layer's black keys (all six tracks, latched); the MIXER keeps the MUTE badge.
- No MIDI CC: no GLO parameter has one. The editor's SET of global 17 records like the knob; its web page.
- CPU: centred nothing (goldens, cpu_vg, target budgets as 0.9.0); on: target djf_block 200, song/cputest.djf
  +1.7 % on the host. RAM +52 B (79124 of 98304), image 547880 B (+2876).
- Tests: djf_test.c (centred bit for bit 0.9.0's render, LP / HP responses, clicks, automation round trip, old
  projects); ui_test MIXER K4; ui_render sweeps every value; ui_test's HUD beings check no longer depends on how
  the tests before moved them. FELUCCA_VERSION v0.9.1; README, manuals, protocol, cheat sheets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 15:56:41 +00:00
Claude 92be89d2ad 0.8.9: USB audio never drops a packet; cheaper on the render core; a late half no longer loses the next one
The 0.8.7 field test (FM-1, CORES 2, LOAD FULL, a heavy 160 BPM song, USB CONSOLE captured at 48 kHz): USB audio
on raised CPU 65.5 -> 77 %, late halves 15 -> 50 /s, ~230 underruns /s, captures 10-20 % short.

- Root cause (audio.c): the ALNK0 ISR acknowledged a half after rendering it, so a render that ran past its half
  cleared the next half's pending flip and that half was never rendered (the DAC replayed 2.9 ms of old audio; USB got
  128 frames fewer). Every "late" half lost the next: ~14 % of the audio with USB on, the ring always dry (adj_down
  saturated, ~230 underruns /s). Now the half is acked first: a late render is followed at once by the next, which
  catches up glitch-free (the DMA reads the half behind the render); a half is lost only past ~1.7 halves, counted in
  the console's new audio_lost.
- usb.c, the packets: every packet still carries n +- 1 frames (an underrun repeats the last frame, never drops or
  shortens it); the repeated frames are now owed and made up (one ring frame skipped a packet while the ring is
  healthy, uac_repeats_made_up), so a capture keeps the music's length and timing. Bands 0.7 ms higher for renders that
  now start up to ~1 ms late (44.1: 112..160, 48: 128..176).
- usb.c, the resampler: uac_rs_run, in RAM (.c1_text) calling nothing, its 160 phases in a RAM table (pool, 15 KiB)
  built from the flash's, four taps a pass: bit for bit 0.8.8's. With CORES 2 each half goes to core 1 at the render's
  end (uac_render_end) and enters the ring when the next half starts (uac_collect; mix_block's first job queues behind
  it, so its wait covers it); one core: per block in the ISR as before. Core 0's share at 48 kHz: ~21 instructions an
  input frame (the 16-bit store) against ~270 (resampling) before: ~11 CPU points -> ~1 (estimate, to confirm on the
  device); CORES 1 ~20 % fewer instructions and no flash table reads.
- uac_fir.h (tools/gen_uac_fir.py): the 80 phases stored as each tap's third differences (int16), summed back exactly
  (UAC_FIR_CHK): 7680 -> 3984 B.
- voice.c / console: voices_given_up counts each voice once (one already fading not again) and splits into
  voices_trimmed (load-budget tails under -50 dB: inaudible, most of the field test's 670 /s), voices_stolen and
  voices_shed.
- Tests: tests/uac_sched_test.c (new; one core and CORES 2): 3 min against a simulated 48 kHz host at +-500 ppm, renders
  as the heavy song's (~17 late /s, up to 131 %): every IN token finds a packet, sizes 47..49, no underrun / overrun /
  jump, frames sent = frames resampled exactly, no latency drift; starvation bursts (renders 150..190 %, halves lost):
  underruns repeated and all made up; IRQs off 4 ms: ~3 empty frames each, recovered. LEGACY=1 shows the 0.8.8 order:
  ~245 underruns /s, 12.4 % of the music missing at ~43 late /s (the field test's figures). uac_test: the RAM table
  exactly the generator's, bit for bit 0.8.8's resampler (10 s at +-2x full scale), THD / aliasing spurs < -98.9 dB
  (1 k .. 22 kHz). audio_test: the ack before the render, audio_lost.
- Image 568320 -> 565384 B (-2936 B); RAM code +328 B (22440 of 24576), pool +16 KiB (36 KiB spare). Goldens, CPU
  baselines unchanged; target budget: uac_tap48 -> uac_rs_run (static 558: the unrolled body).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 11:26:59 +00:00
Claude c524e3c45f 0.8.5: merge DRUM-X octaves (ratchet / short / ghost / flam per sound)
Merge drumx-octaves-085 (a05a190, c3435e4) on top of the VOICE words in the new skin.
- editor INFO tags in order J, O (DRUM lane modes, 4F 01 07), Y (LYRIC, the last tag: the web editor reads it at
  the trailer's end); editor_test checks both, the web mock sends both (lanes inside the ratchet caps, Y last).
- README: the status line's DRUM-X note; one 0.8.5 section (VOICE words, DRUM-X octaves, then the skin and lenses)
  with one cost line measured on the merged build.
- app.ld: LOWBUF's comment (undo and the section stage there; the project scratch and the decode tables in the pool).
- tests/ui_render.c: DRUM grid HIT x4 / GHOST, the OCT messages (RATCHET x8, FLAM), COMP TOUCH and ECHO EVEN scenes,
  linted in every palette: the HIT values fit the square cards, the OCT message the header's middle.
- Cheat sheets regenerated.
Image 555928 B of 581564; .data+.bss 88340 of 98304; LOWBUF 18232 of 28672; pool spare 52096 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 02:19:38 +00:00
Claude a05a1909ba 0.8.5: DRUM-X octaves: ratchets x2 / x4 / x8 above the kit, SHORT / GHOST / FLAM below, recorded as played
On a DRUM track the keys keep the kit on the same keys at every OCT (drum_keys no longer adds the octave); OCT says how
they play and the screen names it on each press (RATCHET x2 / x4 / x8, SHORT, GHOST, FLAM, DRUM-X KIT). OCT 0 is the
kit exactly as before (bit for bit: every golden render unchanged).

Above (seq.c dxo_*): the hit, then again x2 / x4 / x8 a step while held: playing on the step's RATCH grid (each step's
start, then every step/n, swing included), stopped every step/n of the track's DIV from the press; the release ends it.
Below (eng_drum.c DXO_*, per-hit modulation of the DRUM-X voice, no new voice type): SHORT -14 DECAY (half the decay
time), GHOST -14 DECAY -24 TONE and ~45 % velocity, FLAM a grace hit at ~45 % then the hit itself DXO_FLAM blocks later
(~20 ms, tempo-independent, a retrigger of the same lane).

Live REC stores what was played, played back identically (tested to the block): the hit plus the step's RATCH x2 / x4;
x8 (past RATCH's x4) as ECHO x8 with the new EVEN flag (carg bit 7: every repeat at the step's level); below, the new
step component TOUCH (carg SHORT / GHOST / FLAM). A ratchet held over several steps writes each step before the
sequencer plays it (the held note is silent there); an early release in the last one puts that step back, as a held
synth note's TIE. The count-in keeps the octave too. They show and edit on SEQ > COMP like any step (TOUCH: HIT
SHORT / GHOST / FLAM; ECHO: x8 EVEN, KNOB 3 keeps EVEN). They are the step's: everything on that step plays with them; a
centre-octave hit leaves them alone.

MIDI: 35..81 the GM map exactly as before. The notes around it, which played their octave of 36..47 plain, are now the
octaves' bands by pitch class: 23..34 SHORT, 11..22 GHOST, 0..10 FLAM, 82..93 x2, 94..105 x4, 106..127 x8; the keys
send those notes to MIDI OUT. Compat flag: songs / MIDI setups sending drum notes below 35 or above 81 now hear these
variations (move them into 35..81 to keep the old sound); stored step notes play as before whatever their number;
keys with OCT moved no longer reach GM 56..81. No format change: TOUCH is a comp value (firmware before 0.8.5 refuses
a project holding one, as any unknown component), EVEN a bit older firmware reads as a fading ECHO.

Installer (web/index_pkg.html): before writing 0.8.5 the preview installer (its version ends -preview) shows a notice in
English / Japanese (its languages) and Spanish: the feature, that existing songs / MIDI setups may change, how to keep
the old sound, back up first (editor backup); install asks to confirm. The public installer (web/STABLE, 0.7.4) never
shows it; web/STABLE untouched. The notice keys on the package version v0.8.5: FELUCCA_VERSION is still "v0.8.4".

Cost (on 0.8.4): callgrind every entry within 0.3 % (song/cputest 3079 -> 3082, seq/heavy 2786 -> 2788, eng/DRUM
1579 -> 1581); target loops unchanged (drum_render 33, dx_run 419; perf_block 522 -> 528, layout); flash image
498108 -> 498260 B; .data+.bss 84848 -> 85600 B (held ratchets 4 a part, their recording backup, 3 bytes a lane);
RAM code 21676 -> 21768 B; LOWBUF 28064 B and the pool 247584 B unchanged.

Tests: new tests/drumx_oct_test.c (centre bit for bit and recorded plain; x2 / x4 / x8 stopped and playing on the
grid; SHORT / GHOST / FLAM length, level, brightness and the grace hit measured; live REC both ways played back as
heard, early release, late press; MIDI bands, MIDI REC, a FUNC round trip; the OCT message, COMP TOUCH and ECHO EVEN);
web/test_web.mjs: the installer notice (preview only, 0.8.5 only, EN / JA / ES). Manuals EN / ES, cheat sheets
regenerated, README v0.8.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 01:17:17 +00:00
Claude 1a124b8c48 0.8.5: VOICE sings words: ES / EN / JA lyrics, typed, sent or diced, automatable
EDIT > WORDS > LANG (OFF ES EN JA) turns a VOICE track into a singer (src/sing.c): each note sings the next
syllable of its lyric (held note holds the vowel, TIE holds it on, the release sings the coda at the note's
level; legato glides, a chord sings together). LANG OFF is VOICE as before, bit for bit (goldens unchanged).

Articulation per track, block rate: 46 phonemes as formant targets with voicing, aspiration (into the
cascade) and frication (high-passed noise into F4 tuned to the consonant); plosives closure / burst /
aspiration, affricates, nasals, liquids, tap and trill, glides. Spanish by rules, Japanese romaji to morae,
English through a 2095-word CMU-derived dictionary (tools/gen_lyrics.py, BSD-2-Clause notice in
LICENSES/). LYRIC: TEXT (63 chars, NAME screen via OCT+ on WORDS with a KNOB 3 dice, or editor cmd 39
LYRIC), W1-W16 generated phrases from themed banks (306 ES, 272 EN, 169 JA words) as long as the pattern's
notes, S1-S8 scat. Word-mode EDIT values: POS THEME ARTIC SHIFT | BUZZ BREATH Q LOOP (POS lockable /
automatable). Lyrics saved in FUNC's optional 'L' 'Y' block (older projects load without). The VOICE pages
show word, phonemes and a moving vowel chart (sing_view for the CT head). 8 new presets appended.

Cost (on 0.8.4): flash image 498108 -> 540824 B (+41.7 KB; app slot 581564 B, 40740 B free), .data+.bss
84848 -> 85584 B (+736), RAM code +8 B, no per-voice state. The lyric text (6 x 64 B) lives in the pool
(LOWBUF had 608 B free); the project scratch's copy (+384 B) stays in LOWBUF, so the fonts' decode tables
(hc_tab, 1.5 KB, main loop only) move LOWBUF -> pool: LOWBUF 28064 -> 26900 B of 28672 (1772 B free), pool
247584 -> 249568 B (spare 72928 -> 70944 B). CPU: callgrind 4 voices VOICE vowels 1611 -> 1605, words 1743
(ES) / 1726 (EN) vs ANALOG 2314 at 8 voices; worst case song/cputest 3079 and every other section unchanged;
target loop formant_render 312 -> 315, formant_word_render 326 (analog_render 603). New tests/voice_test.c;
project, editor, web, ui_render, cpu_vg and target budget extended (existing entries untouched); ui_test's
LARGE HOME probe reads the old panel row over 16 px (a mote of HOME's moving dust landed on its one pixel
with the new presets' frame count); manuals EN/ES, protocol notes, cheat sheets regenerated, README v0.8.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 00:00:58 +00:00
Claude 719e06057e 0.8.4: the long delay: the line at half / a quarter rate past 0.74 / 1.49 s (to 2.97 s), the read kept inside it, 64 KB back
- Fixed: at the longest TIME with MOD on, the modulated read (wow + the Hermite's older taps) wrapped onto the
  newest samples and the input leaked into the wet. Every read now stays DLY_EDGE (8 line samples) inside the line.
  tests/delay_test.c measures it (fails on the parent commit in 7 cases).
- Adaptive-rate line (fx.c dly_lo): R = 1 / 2 / 4 chosen from the farthest read (TIME, PING-PONG x2, WIDE). A 55-tap
  half-band (Q14, DC exact) decimates the input and interpolates the output once each way. The loop (MOD, GRAIN,
  FEEDBK, TONE at the line's rate) runs at fs/R. A rate change fades out over 2.9 ms, clears the line, and restarts
  with the input faded in: no click. Hysteresis keeps a wavering clock from restarting it.
- DLY_LEN one constant (params.c): 32768 (option b). Half rate: flat to 9.5 kHz, aliases/images under -75 dB; all
  149 golden renders bit-identical. Free times appended to 2.95 s; every division real up to 2.97 s.
- The FX gate holds for an echo still due when TIME > 1.5 s.
- Pool 311236 -> 247584 B; flash +4216 B; CPU at full rate unchanged, half +158 / quarter +202 instr/sample (callgrind).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-16 21:54:48 +00:00
Claude c612539e61 0.8.3: ANIMAL, a new engine of animal calls (CMOS PULSE WHSTL WING GLOTT), engine 14
From the bioacoustic synthesis report: a source that oscillates or strikes exciting a resonator, with a call's
rhythm on top. MODE picks the source and relabels the knobs (desc): CMOS, the owner's 40106 / 4093 circuit
(Schmitt-RC relaxation oscillators, exponential charge, fractional-edge polyBLEP; a slow one gates and sweeps the
fast one, a third groups phrases; C5 chirps at ~1.05 kHz with rising hooks, 2.4-4.5 a second, or a trill of 8-10);
PULSE, an escapement into a tuned SVF (crickets, katydid, cicada, frogs); WHSTL, a Hopf oscillator in polar form
(born by bifurcation, Podos-limited sweeps); WING, a polyBLEP flight tone with drift and Doppler fly-bys; GLOTT, a
glottal pulse into two formants with period doubling and a logistic map. Pattern layer in amp(): RATE, GROUP
(HOLD TRILL n+m), TEMP in degrees C (Dolbear). 24 species presets. All integer, 32-bit products.

Cost: the voice state fits voice_t's ph[3] + s[8] (no RAM: .data+.bss 95092 B and the pool unchanged), +7616 B
flash, no RAM code. Callgrind per voice (instr/sample): CMOS 103, PULSE 92, WHSTL 86, WING 67, GLOTT 167, against
ANALOG's 193: eight voices on every mode. ANIMAL comes after DRUM in ENGINE_ORDER so every existing sound keeps its
PRESETS place and PROGRAM CHANGE number. New tests/animal_test.c; cpu_vg sections per mode; target budget, goldens
and the editor mock extended (existing entries untouched); protocol notes, manuals (EN, ES), cheat sheets, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-16 17:17:47 +00:00
Claude 3788f0d7a8 0.7.1: stems over USB (8 channels) and stems from a backup in the browser (WAV + ZIP)
- MENU > SYSTEM > USB: CONSOLE / STEREO / STEMS (was USB SERIAL ON / OFF).
  STEMS re-enumerates the device as an 8-channel USB audio input at
  44.1 kHz: the six tracks mono (LEVEL, DIST, SLICER routing and mutes in,
  PAN out) and the FX return in stereo (DELAY, REVERB, CHORUS, the SLICER's
  bus when on), all before the master. fx.c taps each part as it is mixed
  (one core or the other) and the return after the buses; usb.c gets an
  8-channel configuration (720-byte packets, bcdDevice + 0x40), four words
  a frame in the ring, the priming, packets and underruns in frames. The
  ring moved into the pool (8 KiB). uac_test checks the descriptors and
  the framing; ui_test the row; editor and web tests the names.
- The emulator page renders a backup's song or live section as separate
  WAV tracks (each part alone with its own share of the buses, fx.c
  mix_skip) plus the MIX, in a ZIP (web/emu/stems.js: a module Worker,
  WAV and stored-ZIP writers; felucca_web.c: the backup's objects into a
  fresh device, the song's rows, bars and end, the part mask). A node
  test (stems_test.mjs) renders the generator's piece both ways; the
  suite runs it with the emulator.
- The RAM-code reach margin 12 KiB (was 16): the image grew and RAMTEXT
  has moved up twice already. Docs: README, MANUAL EN/ES, cheat sheets.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-15 17:34:14 +00:00
Claude 3c94e0a557 GEN: the song generator rewritten with a screen (HOME + SELECT): 43 genres, seed, energy, form, the parts' amounts, complexity, swing, human; 0.6.91
A new firmware/src/gen.c and gen_tables.c replace DICE ALL's piece: a deterministic generator (a seed, a stream a part)
driven from the GENERATOR screen under CF_DICE_ALL (three pages: GENRE SEED ENERGY FORM; DRUMS BASS CHORDS ARP; LEAD
COMPLEX SWING HUMAN; OCT+ makes, again a new seed; OCT- done). Drums from priority maps a genre (Grids-style: ghosts
first to go, the kick's anchors last; ghost ranks, hat cells, variations, fills, the snare laid back), the bass from
~50 archetypes written against the kick (the root at the changes, semitone approaches, the kick doubled / answered /
interlocked; acid by the 303's rules), chords with a quality each voiced in C3..G5 and led (or planed), arps as orders
over the voicing (cycles of 3 / 5, trance gates), a motif in four-bar phrases with one variation operator a bar (or
ostinato, sparse, tintinnabuli, machine, hook), sounds by recipe a role (WHEEL used at last), kits as offsets on the
factory kit, mix and HUMAN by role, the genre's space; FORM LOOP / PARTS / SONG (intro build drop break with a filter
sweep and a delay throw as motion). song_dice.c keeps dice_seq (SEQ + SELECT) and the helpers. tests/gen_test.c
measures every genre; web/emu/gen_bench.mjs renders every genre to WAV from the wasm; web_gen exported. The GEN screens
in the render lint. README, manuals EN / ES, cheat sheets.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-15 05:18:14 +00:00
Claudeandworkeffortwaste 48cd0f8e2c Startup test from #134 (ARRANGE survives power-on and the idle save); Sponsor points to JIANT's author
tests/startup_test.c boots the real felucca_init in fresh processes (empty flash, a saved arrangement with RESTORE
LAST OFF and ON) and checks rows, bars, END, scenes and flash through the automatic save. It fails without the
0.6.81 fix in main.c and passes with it. Written by @workeffortwaste in #134, whose fix the 0.6.81 one already
covered. FUNDING.yml: the Sponsor button is JIANT's author's (Felucca linked in a comment).

Co-authored-by: workeffortwaste <49479599+workeffortwaste@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-14 18:19:00 +00:00
Claude be985e6444 CHORD records whole in step recording; the keys light every note sounding; TOOLS 6 CPU TEST; CPU watched under valgrind; 0.6.84
Step recording took a CHORD key's note alone (it now writes the chord the key sounds, as live recording does). The
key LEDs show every note the selected track's voices hold, a chord's whole shape included. SAVE > TOOLS 6 CPU TEST
builds the heaviest song to measure on the device (UNDO brings the music back). tests/cpu_vg.c / cpu_vg.py count
the audio path's instructions under callgrind (engines, reverbs, a full mix, the sequencer, the CPU TEST song)
against tests/cpu_baseline_vg.txt, so the CPU is watched on Linux too; the reverb test's SPRING / ROOM limit follows
what the device's own code measures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-14 17:39:48 +00:00
Claude 0f0352b090 v0.6.11: FM6 voice bank B1..B32 (from Felucca 1.5.1)
- fm6_vbank.c from Felucca 1.5.1: 32 voices in flash at 0xE7000 (free in JIANT), staged in the
  autosave's older copy, committed last: a power cut leaves the old bank or the new one. Its
  record type is 64 here (Felucca's 32 is a song object in JIANT's store)
- eng_fm6.c / params.c: SLOT F1..F8, OWN, B1..B32 (9..40); the knob skips empty bank slots,
  elsewhere a B slot without a voice is refused; never stored as a bank slot (param_fit: OWN,
  the patch comes with the project / preset); the bank voice's name on the chart
- storage.c st_crc32_add, fm1_flash.h FL_VBANK, up_fm6.c's 7/8-bit packing shared (Felucca's)
- editor: cmds 74..77 (FM6B_BEGIN / WRITE / END / LIST) as Felucca's, INFO 56 01 32
- web editor: the bank sender (fm6Bank: a 32-voice .syx sent whole with its CRC, the device's
  bank shown) in the 6-OP FM tab; the mock device's bank; EDITOR_PROTOCOL.md
- tests: Felucca's fm6bank_test (power cuts at every byte, CRC, SLOT, stored values; also
  under ASan/UBSan), its web bank test, FM6 SLOT range, the INFO tag; README, cheat sheets

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-11 00:32:26 +00:00
Claude 3aff2d438e Retire SAMPLE, GRAIN and SLICE: 140 KB of flash and 32 KB of RAM freed
The sample engines go with their factory samples (and the build's sample
generator). Their engine numbers stay reserved (ENG_GONE, named "-", as
PHYS): a sound of theirs that arrives -- a project, a user preset, the
editor, a backup -- plays as ANALOG's first preset (core.h eng_gone; its
engine motion dropped), a SAMPLE PERC sound still as DRUM-X (converted
first). Image 433 -> 293 KB; RAM -4.5 KB, pool -28 KB, left for DRUM-X,
the effects and the punch-in FX. Goldens: 0 renders changed, the 10 of
the retired engines gone. Web editor and emulator follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-09 13:26:31 +00:00
Claude aca4f4c3ad Remove CHORD keys; SEQ > SHIFT: automatable sequence offsets
The chord keys (chord.c, the CHORD page and graph, kb/MIDI chord
bookkeeping) are gone (-2 KB flash, -320 B RAM). Their two track
parameters become OFS (-32..32 steps: the sequence plays later,
wrapping inside LEN; live recording writes where it is heard) and PIT
(+-24 semitones, not on kits), both automatable, on SEQ > SHIFT and the
SCL layer's KNOB 3/4. Playheads mark the step that sounds. Projects
written before carry no SHIFT mark and load both at 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-09 10:27:38 +00:00
Claude 6d9d987c56 DRUM es DRUM-X: se retiran los kits de Felucca
Fuera drum_voice.c (STD y los kits 80 10 66 55 77): DRUM toca solo DRUM-X.
Las perillas quedan en el mismo lugar del proyecto: MRPH (donde estaba KIT,
ahora KNOB 1), TUNE, TONE, DECY, NOIS (donde estaba SNAP: mueve el ruido de
todos los sonidos), ACC (acento hasta +3,5 dB), DRV; el lugar de KICK queda
libre. El mapa GM toca cada nota en su lane (congas en TOM, claves en RIM,
platillos en BELL). Las páginas SOUND / SOUND 2 aparecen en todo track DRUM.

Libera 12,3 KB de flash (426 KB) y 7 KB del pool.
Tests, goldens de batería, editor web y protocolo actualizados.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-09 01:52:12 +00:00
Claude 8f22ff287b DRUM-X phase 1: KIT X plays a Microtonic-style drum voice with MORPH
- drumx_voice.c: a tuned oscillator (SINE / FM 1:1 / METAL / BELL) with a
  pitch envelope, noise through an LP / BP / HP filter, their envelopes;
  each sound two patches A and B of five values (PITCH PMOD DECAY NOISE
  COLOR) and a mode, mixed by MORPH every block (it can move while a hit
  rings). Fixed point, 32-bit products, one loop each for the oscillator
  and the noise.
- DRUM's KIT X plays the factory DRUM-X kit on its 8 lanes: SNAP shows as
  MRPH, TUNE / TONE / DECY move every lane, the closed hat chokes the open.
- tests/drumx_test.c (lanes, MORPH, PITCH, choke, demos); dx_run in the
  target cost budget; editor tables; docs/TONIC-DRUMX.md with the phases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-08 20:32:12 +00:00
Claude 5535e1c642 Song 4d (1/2): remove user samples
- SAMPLE / GRAIN lose USR1..3 (stored 5..7 clamp to the PIANO alias);
  SLICE SRC 1..3 become aliases of BREAK, DIV MAN is gone (a stored MAN
  plays AUTO). Factory sets, BREAK and PIANO stay; the missing-sample sine
  stays for builds without the CC0 samples.
- Gone: slice_store.c, ui_slice.c and the EDIT > SLICES page, the AUTO
  scan of user slots, the editor's SMP_* commands (11..15 reserved),
  backup ids 32..34, tools/fm1_sample_upload.py, the web Samples tab.
- Older backups with sample entries still restore (those entries skipped).
- Flash 0xA0000..0xDBFFF is free for the songs; app image -9 KB, RAM -6.5 KB.
- Tests rewritten for BREAK / PIANO only; README and plan updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-08 19:18:55 +00:00
Claude 588f897bdf TONIC: la capa FX conserva solo los REPEAT (stutter de audio) y los filtros
Se quitan REVERSE, TAPE STOP, FREEZE y OCT UP / DN (el armonizador). Las teclas
quedan F3 G3 A3 = REPEAT 1/8 1/16 1/32, B3 = LPF, C4 = HPF; las teclas negras
1..4 siguen siendo los mutes. KNOB 4 es siempre DEPTH (el nivel del REPEAT).
El SLICER por track no cambia. App: 438360 -> 436216 B.
Tests de host, web y emulador pasan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-08 15:56:44 +00:00
Claude c829374160 TONIC: retirar el engine PHYS (libera 50 KB de RAM del pool)
El número de engine 9 queda reservado, como DIGITAL: ENG_PHYS_GONE no tiene
presets y no se ofrece (eng_ok). Un sonido PHYS que llegue (proyecto, user
preset, PRESET / G_ENGSEL del editor, backup) suena como el primer preset de
ANALOG (eng_live, proj_phys_gone, set_engine_of, la red de ui_input). Un PHYS
DRUM de antes de 1.0 sigue cargando como DRUM.

Se borran eng_phys.c, phys_dsp.c, phys_symp.c, sus tests y las licencias MIT
de DaisySP y Rings. Pool: 331204 -> 279652 B; app: 447596 -> 438360 B.
Tests de host, web y emulador pasan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-08 15:45:44 +00:00