コンテンツにスキップ

2. オーケストラ指揮者ゲーム

公式デモ 2$15.8515分43秒カメラ使用

Webカメラに向かって指揮棒を振ると、オーケストラが「きらきら星」を演奏します。速く振れば速く、ゆっくり振ればゆっくり、手を下ろせば演奏が止まります。

  • Webカメラの映像から手の動きを検出し、振る速さからテンポ(BPM)を割り出す
  • 速く振れば加速、ゆっくり振れば減速。手を下ろす/動きが検出されないと演奏が止まる
  • コンサートホールのステージを表示し、音を出しているパートが光る
  • 自分のカメラ映像を左右反転で表示し、検出した動きを重ねて描画
  • 大きなBPM表示と、いま歌っている歌詞の行を表示
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.
項目トークン料金
入力870$0.01
出力214,528$10.73
キャッシュ書き込み342,853$4.29
キャッシュ読み込み3,327,559$0.83
合計3,885,810$15.85

所要時間 15分43秒 / モデル claude-fable-5-1