mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-05 12:24:36 +01:00
fmini_wave tested the polyBLEP residual's two bounds on every sample through osc_saw / osc_pulse. The step d and the bounds (lo, hi) are the same for the whole call, so they are computed once and each sample tests two constants; the pulse waves compute their two saws in one expression. The residual's arithmetic is the same as dsp.c's blep, bit for bit: an old-versus-new harness over 400000 random calls (every wave, steps from tiny to huge, phases at the wrap) gives identical output and phase. Static cost of fmini_wave 345 -> 323 (budget updated). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94