Commit Graph
8 Commits
Author SHA1 Message Date
Claude a91b8dc8bd Copyright headers: name Juan Jiant on JIANT's own files that had only the SPDX line
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
2026-11-11 18:08:16 +00:00
JUAN JIANT e147a989f6 Preserve the complete FIT candidate source alongside the probability correction 2026-11-04 15:36:07 -03:00
JUAN JIANT 4d23857b9f Preserve per-step probability through SEQ and STUTTER replacements
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.
2026-11-04 15:34:37 -03:00
JUAN JIANT 635effe287 Restore complete V10.6c source tree around the song-save changes
Keep all unmodified public firmware, build tools, assets and web files in the candidate tree.
2026-11-04 07:30:19 -03:00
JUAN JIANT 243258059e Add SAVE SONG AS to copy complete songs between projects
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.
2026-11-04 07:28:45 -03:00
Claude caa8b2557b ctl64 (0.9.9): the control block 64 samples, notes at their sample inside the block
core.h CTL 32 -> 64 (tools/gen_tables.py; the half buffer 128 frames: two mix_block passes a half, not
four), so the fixed cost of a block (events_block, mc_split, the core-1 handshake, buffers cleared and
summed, sends, buses, master) is paid half as often. Everything that counted blocks of 32 counts in CTL:
envelope / LFO tables, glides, fades, the steal fade, the leveler's (its peak still read over 32) and
DUCK's followers, DRUM-X FLAM / PUNCH / pan slew / group fade, the FX gate, DJF crossfade, SPRING / RESO
glides, WORDS' phoneme timing, the FX layer's LPF / HPF sweep (perform.c PF_CSTEP), the mod matrix's
NOISE and STEP eases.

The sequencer did not get coarser: a note inside the block carries its sample (core.h ev_off; voice.c
voice_begin / voice_off_at / track_render render the sounding voice up to it and the new one from it;
every engine but FM6, which renders whole blocks and keeps the nearer edge). tests/ctl64_timing_test.c:
on a MICRO-shifted pattern every rendered onset is within 2 samples of the sample-at-a-time sequencer
(ANALOG POLY worst 2, ANALOG MONO cuts worst 2, DRUM kit hits worst 1); the 32-sample build placed them
-22 .. +5 samples off.

Host CPU (tests/cpu_vg.py, exact instructions / sample, 32 -> 64): mix/idle 516 -> 426 (-17.5 %),
seq/mono4 1514 -> 1188 (-21.5 %), eng/DRUM 1477 -> 1156 (-21.7 %), eng/FM6 1710 -> 1507 (-11.9 %),
eng/VOICE 1500 -> 1337 (-10.9 %), VOICE.EN 1783 -> 1619 (-9.2 %), ANALOG / PHASE / LOFI / NOISE / WHEEL
-6 .. -9 %, reverbs and delays -7 .. -8 %, mix/full 2671 -> 2505 (-6.2 %), seq/plain 2381 -> 2158
(-9.4 %), seq/heavy 2783 -> 2485 (-10.7 %), song/cputest 3016 -> 2742 (-9.1 %), peak/VOICE.EN6
3304 -> 2937 (-11.1 %). Firmware: image 567896 B, .data+.bss 88276 of 98304 (+9 KB: the CTL-long
buffers), RAM code 21848 of 24576; the render loops' target cost as before (tests/target_budget.txt).
docs/CPU3_PERFORMANCE.md, README (the dual-core section), CPU5_PERFORMANCE.md.

Goldens: tests/golden.txt, cpu_baseline_vg.txt, target_budget.txt regenerated (GOLDEN_UPDATE /
BUDGET_UPDATE: the sound changes through the buses' one-block lag, now 1.45 ms, and the leveler's
reading); djf_test / micro_test reference hashes of the 0.9.0 renders redone at CTL 64. Host tests that
counted blocks count in CTL (reverb DUCK 3 / 20 ms, voice glide 163 blocks of 32 and 1/8 st a block,
click_test, drumx_oct_test); drumx_test's HANDS and PUNCH checks reset the kit's noise generator before
each compared strike (they compared different noise realizations: up to x5 strike to strike on the
32-sample build too, measured). Full host suite: every section passes but gen_nav_map's stale
docs/navigation-map.svg, which the base reports as well.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-23 17:07:04 +00:00
Claude 4fe0cf4635 0.9.0: VOICE's English words resolved in the main loop: the ISR no longer searches the dictionary
The Huffman-coded dictionary (ab60368) made a lookup ~3x the old one's instructions, and the audio ISR looked words
up: at every word start (sy_word_next) and again at every syllable (sy_take reads the word again). Now:

- sing_init (felucca_init, at boot): every word the generator can sing in English (the bank's 268, SCAT_EN, the
  vocable) resolved once into the pool (lyb_at / lyb_ph, 1773 of 1856 B), published last (lyb_ok). sy_gen_word
  returns where its word sits in it.
- lyr_set (the main loop: NAME, the editor, a project load): each track's TEXT lyric's words resolved with the text
  (lyc[]: per word its end, n, ns, the phonemes; 192 B a track), under a seqlock (odd while written: core 1 sings
  too); the token scan shared (sy_tok).
- sy_word_next takes the word's phonemes from there; sy_take from the word's, kept per track (sing_w, the pool: sing[]
  and the RAM region keep their layout, so no other audio code changes). A word not there (a cache not built yet, a
  lyric past 192 B, its text changing that moment) is looked up as before: the same result.

Cost, tests/cpu_vg.c's new peak/VOICE.EN6 (TRACKS 6: six VOICE EN tracks, three TEXT of one-syllable words, W1 W9
S3, each starting a word in the same block, 24 rounds; the instructions of that whole block, callgrind, x86-64; the
same test built on each tree):
                                worst     mean
  0.8.9 (front-coded bytes)     162664   155512
  ab60368 (Huffman, in the ISR) 199747   184869   (+23 %)
  now                           146604   141990   (-10 % against 0.8.9)
added to tests/cpu_baseline_vg.txt (cpu_vg.py: peak/* the worst block of a section's rounds, not per sample).
tests/target_budget.txt: formant_block (sing_block inlined) 296 -> 297 loop instructions (sy_tok and sy_take_entry
kept calls); every other render loop, the RAM code (22408 B) and the RAM region (79024 B) as before.

Same sound: tests/voice_test.c checks every cached word against sy_word (the 283 generator words, 79 words of nine
TEXT lyrics: apostrophes, joins, melismas, capitals, long words, non-words), and renders a VOICE EN track (TEXT, W1, W7,
W16, S1, S5; 54 notes each) with the caches and without, sample for sample identical (with the generator's entries
corrupted it fails); hostsim / ui_test build the generator's words as the firmware does, so every golden render, demo and test
runs through them: all bit for bit as before.

image 540840 -> 541640 B (+800); pool 295812 -> 300016 B (spare 24672 -> 20480 B); RAM region, LOWBUF, RAM code
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 14:19:47 +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