Root causes measured with tests/dice_metrics.c:
- power-on: GEN's SEED was 0001 until turned, so the first OCT+ made the same piece every session (5 power-ons:
10 of 10 pairs the same). session_dice now throws SEED from the power-on's entropy (ticks, battery ADC).
- gen_make set the random numbers to the piece's stream for the macros (rng_state = gq | 1) and left them so: every
dice after a GEN piece (EDIT / SEQ / LFO / FX + SELECT), MUTATE and CHANCE ran from the seed's state, the same after
the same seed in every session. The session's state is now mixed back after the macros (the routes still the
piece's). part_dice mixes the press's time in (it only did for SEQ).
- gen_new_seed: never one of the last eight seeds. EDIT + SELECT: never one of the last four presets an engine gave
(FM6 / PHASE: the press before's preset 4 times in 40).
- gen_sound took only the presets of the recipe's first word that matched anything: often one preset. Now every
preset any of its three words names (weights 3 2 1), one already on another track of the piece seldom. MICRO
HOUSE's lead: 7 -> 15 presets in 40 presses, the press before's preset 18 -> 5 times.
- the held chords (HOLD SWELL SPARSE) and the texture always on the chord's first step: the chord track the same as
one of the 8 presses before in 38 % (MICRO HOUSE 80 %), the texture 68 %. Now a piece's own place (on the change or
an eighth to a beat and a half late), a sparse chord held or a dotted quarter, the texture on the bar or a beat or two
in on the root, fifth, third or octave: 28 % and 44 %.
GEN's determinism kept: a SEED and settings make the same piece.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh