On 0.9.12 songs past four tracks went over the FM-1's CPU. Host callgrind, a six-track scene (DRUM VOICE ANIMAL LOFI
ANALOG FM6, chords, CLOUD, delay, chorus) and a heavy one (DRUM FM6 PHASE WHEEL NOISE FM6): one core 2258 / 2509
instructions a sample; two cores' longest path (core 0 or core 1) 1642 / 1593 with 12 voices, against 0.9.9 / 0.9.10's
2306 / 2593 in all with 8 (12 voices: +14 / +22 % work). Now audio.c gov_tick, every half: over the load budget 6
halves in a row, one voice less for all parts (voice.c gov_cap, 4 at least); a shed two less; 0.5 s under it one
back; two sheds in a second, LOAD LITE of its own (CLOUD / SHIMMER as ROOM, RESO as SPRING, the GRAIN delay plain, FM6
two voices; LOAD_EFF) until 5 s calm. The six-track scenes at a cap of 8: 1229 / 1434 on the longest path (-25 / -10 %),
at 6: 1066 / 1218. The host's renders are untouched (the governor runs in the audio ISR only). audio_test: the
governor's steps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- 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
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
MENU > SYSTEM > USB > STEMS+IN: the stems and IN+OUT's audio output together.
The host's audio (the phone app's mic) comes into the last live track as in
IN+OUT (LEVEL, PAN, MUTE, the sends, the FX) and 10 channels go back: T1-T6,
the FX return L R, the input as the track mixed it in a stem of its own (the
app moves it by the latency; the track's own stem without it) and the input
as it came (the latency reference). 920-byte packets; the ring keeps its
8 KiB (409 frames of five words, a modulo by a constant). Tests: uac_test,
audio_test, ui_test, editor_test. Manual EN/ES, README, cheat sheets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The FM-1 is the host's USB audio output as well as its input (UAC1, stereo
16 bit 44.1 kHz on EP4 OUT, isochronous adaptive; re-enumerates with
bcdDevice + 0x80, no console). What the host plays comes into the last live
track: into the dry mix with its LEVEL and PAN (balance), its CHORUS /
DELAY / REVERB sends from the sum, DUCK, MUTE and the mute layer, on top of
the track's engine. TIMER5 takes each packet into a 2 KiB ring (pool); the
audio ISR reads it at the I2S clock with a linear interpolation whose step
follows the ring's fill (~3.6 ms behind, steady within 0.01 %); a host that
stops fades out and is primed again; only the reader moves the read index.
Tests: uac_test (duplex descriptors; fast and slow I2S clocks: no glitch,
1 kHz sine at 65 dB, steady step; a gap; a new stream drops the old ring),
audio_test (LEVEL, PAN, MUTE, LEVEL 0, REVERB send), ui_test (IN+OUT row).
tools/build.py: the RAM-code reach check measures the calls RAM code makes
(farthest callee master_out, ~400 KB to spare) instead of the image's end.
Manual EN / ES, README changelog, version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- env_tick stage 4: six blocks of a half cosine (voice_t.kfade); FM6 (own envelopes),
DRUM and LOFI STEP (own amplitude) follow the fade instead of holding full.
- Fading voices stay out of the budget; tests count the sounding ones and check no fade
lasts past 6 blocks; new regress check: a 55 Hz bass given up (24 x -> 3.5 x).
- Golden: the two renders with steals updated on purpose. README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- GLO > SYSTEM KNOB 2: TRKS 4 LOW / 6 HIGH (the MENU's TRACKS setting); going to 4, T5/T6 fade out.
- Overload guard: shed after two overloaded halves in a row again; the load budget on render time only and
taking only tails under -50 dB.
- A track let go from a mute / solo, silent: its mute gain opens (the FX layer stayed busy every block).
- GRAIN delay: each grain clamps its own read point (grain 0's spray moved grain 1 mid-window); the FX gate
opens / reopens with a ramp and stays closed until something is sent.
- drum_bus: the sum held before DRV's multiply (int32 wrap); DRUM-X lane's upsampling state reset when a
group mute ends it.
- LATCH: leaving LATCH, CLEAR and CLEAR ALL release the latched notes (and MIDI OUT's) from events_block.
- MENU > ABOUT's AUDIO LOAD redraws live.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- dx_run at 22 kHz (the hit is low-passed at ~8 kHz anyway), linearly back to full rate; the noise
filter an octave up the table, its noise x1/sqrt2 (the same level), the 8 kHz pole re-tuned:
the kit ~45 % less work (35.5 M vs 65 M on the 6-track song)
- load budget from 65 % (was 70); over 80 % a voice is shed after a single block (was two)
- MENU > ABOUT: AUDIO LOAD (NOW, PEAK, LATE, SHED) since power-on (voice.c load_diag)
- tests: the audio guard's new timing, DRUM-X FM test's threshold (the hat's partials past 11 kHz)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Parameter locks: hold a step on SEQ > STEP and turn a knob; SEQ > AUTO
LIST lists and edits the locks and automation; lock edits undo.
SEQ TOOLS (SEQ held on the SEQ pages): CLEAR, REVERSE, SHIFT, RANDOM,
COOK, BEAT and the DRUM lane tools.
REC layer (REC held): CLEAR, CLICK, COUNT-IN, CLICK LEVEL.
Metronome and count-in (MENU > AUDIO), never in USB audio.
MIDI CC map (5, 7, 10, 71..75, 91, 93, 94); DRUM lane levels (EDIT >
LANES, LANES 2; projects FUN9).
USB audio input at 44.1 or 48 kHz.
Step recording at the cursor (SEQ > STEP, REC while stopped); restore
the last session at power-on (MENU > SYSTEM > RESTORE LAST).
Eight more ARP modes; MENU > CONTROL > SCALE LEDS; MENU > DISPLAY >
SCREEN OFF.
The header in three parts with a metronome; the new splash; the
power-on LED sweep; DRUM grid beats on the key LEDs.
Fast knob turns keep every click; KNOB ACCEL up to x8, on the FX and
GLO layers too (#126).
MASTER read from the pot before the audio starts, keys silent under
the splash (#137).
The update loader checks the whole package before erasing anything;
robustness against damaged packages and stored data; sanitizer and
fuzz runs in tests/run_tests.sh.
Smaller icons in flash.
MENU, now a scrolling list: STYLE (FLAT / LINE, #57), ANIM (#46), KNOB ACCEL
(#52), FX LATCH (#40), BPM LOCK (#58), USB LEVEL (MASTER / FIXED), LEDS
OFF / DIM LO / DIM HI / INV; SPEAKER is SPEAKER EQ (FLAT / LOWCUT /
BASS+, #42). Palettes: GREY (the former MONO), a black-and-white MONO
and NIGHT (#50, #57). Tracks numbered 1-4 on cushions (#50); the motion icon
on the cards MOTION drives (#63). Divisions listed by length (#48).
Fixed: knob turns as a layer is let go no longer edit the page under it
(#39); FX DEPTH turns the right way (#40); BASS+ no longer cancels the
mids (#42); live sync keeps pending pushes on WATCH and no longer echoes
the editor's own loads as RELOAD (#64, #65). SAMPLE's PERC kit is
retired: its sounds load as the DRUM engine's kit.
Big New Features. Engines: FM6 (6-operator FM, replaces DIGITAL; old sounds
convert), SLICE in the standard build with manual slices, DRUM, NOISE; PHYS
membranes and sympathetic strings. 13 engines in one display order.
Sequencer: piano roll, drum grid, songs (patterns A-D), motion recording,
per-step chance, divisions to 4 bars, ARP REPEAT and beat LED; chord keys.
Effects: FX hold layer with a harmonizer, spring reverb, modulation matrix.
Quick layers, undo, on-device naming, new UI (Inter Tight, Fukiai icons,
8 palettes). USB audio input; TRS MIDI in, clock, bend, sustain. Web: full
backup and restore, sample recording and trim, return to the official
firmware. Build: font, icon, keycap, palette and FM6 patch generators;
release folder with the licence texts. Licences: LICENSES/ (Inter Tight
OFL, Fukiai MIT, DaisySP MIT, Rings MIT, msfa Apache-2.0, JieLi SDK
Apache-2.0). Removed: the bitmap font and icon atlas, their generators.
Co-authored-by: ChanceTheMaker <471816+ChanceTheMaker@users.noreply.github.com>