Creative coding and music: why canvas still wins
Beat Visualizer team
Canvas 2D and iteration
Canvas 2D is enough for rich, full-frame visuals when you batch draws and avoid per-pixel work in hot paths. Beat Visualizer’s modes are hand-authored sketches that share one audio analysis pipeline — that keeps the codebase shippable without a shader graph.
Why not WebGL everywhere?
WebGL is powerful but adds context loss, asset pipelines, and debugging overhead. For a browser tool that should load fast and run on common hardware, 2D canvas plus careful effects is a pragmatic default — you can always add WebGL modes later.
Growing the library
New modes can be added as new draw functions that read the same _audio snapshot. Consistent naming and grouping (hypnotic, cosmic, …) help both UX and SEO landing pages.
Explore free music visualizer pages for how we structure long-tail content.