Back to browse
I vibe coded a music box

I vibe coded a music box

by amenghra·May 17, 2026·1 point·0 comments

AI Analysis

●●SolidCozyEye Candy

Hand-modeled 3D parts drive real spatial audio, not just a visual loop.

Strengths
  • Web Audio API spatialization with 18 nodes creates genuine 3D sound positioning.
  • Hand-modeled Blender assets ensure mechanical accuracy that AI generation missed.
  • Smooth WebGL rendering of the crank and pinned drum mechanism.
Weaknesses
  • Single hardcoded tune limits replay value compared to configurable music boxes.
  • No source code repository linked for others to inspect the implementation.
Category
Target Audience

Web developers, Creative coders, Audio enthusiasts

Similar To

Chrome Music Lab · Incredibox

Post Description

It uses webgl to render a mechanically accurate music box and spatial web audio so the sound direction and volume changes as you move around the virtual world.

It was extremely easy for me to get a AI to generate most of the js/html/css. It was impossible for me to get an AI generate the 3D model so I did it by hand. It was very frustrating to get the tune right (still not 100% happy with the sound but I’m giving up trying to further improve it).

Best enjoyed with headphones!

Similar Projects

GamingMid

Purely Vibe Coded Asmongold Simulator

This is a focused gag-with-mechanics: on-stream vs off-stream loops, 3-second game hours, chatters with ban/non-ban outcomes, an action queue, and even an economy with brutal 65% projected taxes. It nails the specific streamer-parody niche with concrete systems (mini combat, passive heal scaling, random events like the Trump cameo), but it's more playful craft than technical novelty — the screenshot showing a 403 page also hurts first impressions and discoverability.

Niche GemRabbit Hole
spirodonfl
103mo ago
Other●●●Banger

loopmaster Beta – Code Music

Live audio coding in browser with visual widgets beats Supercollider setup friction and Sonic Pi's limitations.

Eye CandyCrowd PleaserZero to One
stagas
363mo ago