Acoustic Diffuser 2D: Quadratic-Residue Wave Scattering

This 2D companion strips the rotatable 3D panel down to a flat cross-section so the physics reads directly: real quadratic-residue well depths (n² mod N), an animated incident plane wavefront, a live Huygens-summation polar scattering pattern, and a diffusion-vs-frequency curve that shows exactly where — and why — this diffuser's designed bandwidth begins and ends. Change the well count or max depth and watch the shaded working band on the response curve move with it.