Files
JIANT/firmware
Claude d70d4e99b1 Predict the load at a note's start: give up a released voice past the budget
After LOOM-8's synth.c find_voice. A voice added for a new note costs its
part's measured block time (fx.c mc_tk, shared by the part's voices; a
part not yet measured, or the host: a small weight by engine) as a share
of a half, 60 % of it with both cores rendering. Added to the guard's
average load plus what the voices admitted since add (decaying over the
average's ~93 ms, bounded by what sounds), a prediction past LOAD_ADMIT
(90 %, ECO 70 %) does not add the voice: a released voice is given up for
it with the usual ~4 ms fade, the quietest of a POLY part's first (the
part's own restarted in place), else the oldest held of the part's own
but its bass. A MONO / LEGATO / UNISON part's released tail is never
taken while a voice is free, nor is any held lead; with nothing to give
up the voice is added after all. An extra UNISON voice past the
prediction is not started; a lead always is.

The guard (load_half) only sees a half once it has run late; a chord's
new voices could take it there within one block. voice_alloc keeps the
cpu3 order at capacity (own released slot in place before a cross-track
steal) and the cpu4 live-drum protection. Console: load_steals.
157 golden renders unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-23 07:37:17 +00:00
..
2026-10-08 19:18:55 +00:00