mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
- Fixed: at the longest TIME with MOD on, the modulated read (wow + the Hermite's older taps) wrapped onto the newest samples and the input leaked into the wet. Every read now stays DLY_EDGE (8 line samples) inside the line. tests/delay_test.c measures it (fails on the parent commit in 7 cases). - Adaptive-rate line (fx.c dly_lo): R = 1 / 2 / 4 chosen from the farthest read (TIME, PING-PONG x2, WIDE). A 55-tap half-band (Q14, DC exact) decimates the input and interpolates the output once each way. The loop (MOD, GRAIN, FEEDBK, TONE at the line's rate) runs at fs/R. A rate change fades out over 2.9 ms, clears the line, and restarts with the input faded in: no click. Hysteresis keeps a wavering clock from restarting it. - DLY_LEN one constant (params.c): 32768 (option b). Half rate: flat to 9.5 kHz, aliases/images under -75 dB; all 149 golden renders bit-identical. Free times appended to 2.95 s; every division real up to 2.97 s. - The FX gate holds for an echo still due when TIME > 1.5 s. - Pool 311236 -> 247584 B; flash +4216 B; CPU at full rate unchanged, half +158 / quarter +202 instr/sample (callgrind). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh