Skip to content

2. Orchestra conductor game

Official demo 2$15.8515 min 43 sUses camera

Wave a baton at your webcam and the orchestra plays “Twinkle Twinkle Little Star”. Wave faster and it speeds up, wave slower and it slows down, and lower your hands and it stops.

  • Detects hand movement in the webcam image and derives a tempo (BPM) from how fast you wave
  • Wave faster to speed up, slower to slow down. Lower your hands, or stop moving, and the orchestra stops
  • Shows a concert-hall stage where the sections that are playing light up
  • Shows your own camera view mirrored, with the detected motion drawn over it
  • A large BPM readout and the lyric line currently being sung
Create an "orchestra conductor simulator game" in HTML/JS. I'd like for it to use the webcam to detect my hand movements to understand how I'm waving a conductor wand. I'd like to conduct the orchestra through the song Twinkle Twinkle little star. As I speed up my hand movements, the orchestra should speed up and vice versa if I slow down. When I put my hands down or motion is not detected, the orchestra should stop playing. Keep it to a single self-contained HTML file with no external libraries: detect the motion by comparing successive webcam frames, and synthesize the instruments with the Web Audio API. Make it beautiful and stage-worthy: show a concert-hall stage where each section of the orchestra visibly lights up as it plays its notes, my mirrored webcam view with the detected motion drawn over it, a big live tempo (BPM) display, and the current lyric line.
ItemTokensCost
Input870$0.01
Output214,528$10.73
Cache write342,853$4.29
Cache read3,327,559$0.83
Total3,885,810$15.85

Time taken 15 min 43 s / model claude-fable-5-1