Commit Graph
4 Commits
Author SHA1 Message Date
Claude 10533c2978 FX layer: the GLITCHER (GLITCH 2, TAPE STOP + SCRATCH, SHUFFLE, FREEZE), one filter (the FILTER sweep gone)
GLITCH gets DENS / PITCH / SIZE / VARI while its key is down (repeats rising or
falling by PITCH, SKIP and CRUSH slices); TAPE STOP gets TIME / CURVE and, stopped,
KNOB 1 scratches the kept loop; SHUFFLE (C#5) plays the last bar's 1/16s in
another order from a 4-bit ADPCM ring in the same 32 KB; FREEZE (G#4) holds the
eighth after the press as grains. The FILTER sweep is gone (the FILTER macro is the
layer's one filter); SHUFFLE takes its key and lane code. Tests: perform_test
section 11, cpu_vg fx/* sections.

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