From Dev.to
Web Audio visuals: calculate ring fades from event time, not frame count
A drum visualizer can feel late even when the two hits are on time. In a little Canvas sketch, we kept both sound onsets fixed and changed only how long each ring stayed visible. The result was an exa...
