Music Box Mechanism Simulator (2D)
Interactive 2D music box simulator: a pinned rotating cylinder plucks a tuned steel comb tooth by tooth, each tooth's pitch set by its physical length, while a ballerina spins in time with the crank.
This 2D simulator shows the working heart of a music box from the side: a pinned cylinder rotates past a fixed steel comb, each pin lifting and releasing one tuned tooth as it passes, while a ballerina figure spins in time with the crank the way a real mechanical automaton is geared to its cylinder. Every tooth's pitch is derived from its physical length using the same beam-frequency relationship as a real comb, so longer teeth ring low notes and shorter teeth ring high notes. Adjust the crank speed to change tempo and RPM, or swap the pin pattern to hear a different simplified melody plucked out note by note.
A 2D side-view simulator of a music box mechanism: a pinned rotating cylinder plucks a tuned steel comb tooth by tooth, each tooth's pitch set by its physical length via cantilever-beam frequency scaling, while a ballerina spins in time with the crank.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install