The tester (0.9.15): "CLOUD does not work at SIZE 100 %, it seems disabled".
- SIZE 127 is FREEZE (the line stops being written). Since 0.9.14's fx_rest the
line is cleared in any pause, so turning SIZE to max and then playing froze an
empty line: silence at any RATE (also true in 0.9.13 from a fresh start). Now a
cleared line first takes a line's worth of sound (~0.74 s, fx.cl_fill), then
holds; a line already filled freezes at once, as before.
- 0.9.14's overlap cap scaled the grains by (gl >> 2) x CL_WMAX / ws: past 2 grains
(RATE ~90 up) they fell 12 dB at once. Now gl x CL_WMAX / ws with the cap at 1.25
grains, so ROOM's allpasses under it still do not clamp at ROOM_CLEAN's send:
RATE 127 within ~5 dB of RATE 0 (was ~14 dB under), no runaway.
cloud_hot_test: SIZE 127 from a cleared line at RATE 0..127 sounds (within 6 dB of
126) and holds after the send; RATE 127 within 8 dB of RATE 0 (fails on main).
Golden renders unchanged; flash +48 B.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
rev_cloud's grains were summed with no regard to how many overlapped: the
windows' sum grows with RATE (up to 12 grains) and, times SIZE's feedback into
the line (up to 0.43), the loop gain passed 1 from RATE ~90 at any SIZE (RATE
127 even at SIZE 64): the line ran away into its int16 clamps (+23 dB, 35-50 k
clamped samples in 4 s, RMS 150 k forever) and the limiter / CLIP crushed it:
the crackle. Now:
- the grains' windows summed are capped at 2 grains' worth (CL_WMAX): the
loop's gain <= 0.43 x 2, it always dies away;
- the line is written through a soft knee (rv_knee: linear to -2.5 dBFS, tanh
above), not a hard clamp;
- the grains go into ROOM's network at half the level, x2 at its output: 6 dB
more headroom before ROOM's allpasses clamp (280 k -> 9 k clamped samples at
a 90000 send);
- a ~14 Hz low cut in the loop (ROOM's floors circulated a DC);
- AIR above ~+13 st with MOD: a grain's start span went negative (unsigned
underflow; a modulo by zero possible at the edge): grains read across the
write head, a click each (80 in 4 s at AIR +24). Those grains are shortened
to fit behind the write head.
ROOM, SPRING, SHIMMER, RESO untouched: the 157 golden renders unchanged.
tests/cloud_hot_test.c: stability map SIZE x RATE, 20 s at SIZE 126 RATE 127,
hot sends 16 k .. 200 k, clamps, FX_SANE trips, write-head crossings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh