AI CHOREOGRAPHY / STUDY / LEVEL 4 OF 7
Rhythm
by touch.
You cannot watch the coach and your own hands at the same time. So the controllers do some of the watching for you: they tick on every beat, warn the hand that has to move before the pose changes, and pulse faster as a hand gets close to its target, ending with a click when it counts.
A desktop has no vibration, so this page plays each pulse as a low hum: louder means stronger, and the left hand plays in your left ear. Headphones help. Sound plays only when you press a button.
Eight beats, felt
four poses of the routine, pulse by pulseGetting closer
a Geiger counter for your handRewards
one-off pulsesThe long buzz for a shared hit is how you feel that your partner made it too (Level 7).
The real code
coach.jsThree places in the frame loop call buzz (highlighted): the beat, the proximity pulses, and the shared reward. This page runs a copy of the same rules.
What you should be able to explain
- A metronome in your hands. Every beat, both controllers tick; the first beat of each pose is stronger. You can keep time without looking, the way a musician feels a click track.
- A cue ahead of time. On the second beat, the game looks one pose ahead (
poseAt(k + 1)). If a hand's target will move more than 0.4 m, only that hand gets a strong 90 ms buzz: "this one, next". Look at the list under the timeline, though: in the current routines almost every pose change moves both hands more than 0.4 m, so both usually buzz and the cue rarely singles one out. A higher threshold, or routines that move one hand at a time, would make it more informative. - Density for distance. Inside 0.56 m of the target,
accrises from 0 to 1 as you get closer, and pulses come every0.3 − 0.24 × accseconds: from about 4 per second (at acc 0.2) to about 17 per second. The same idea as the tension pulses in Haptic Fishing. - A limit of this design. The proximity pulses are only 20 ms and fairly weak (0.25 to 0.65). The fishing game found that pulses under about 50 ms are hard to feel, so these may be too subtle in a real headset. Something to test.
Exercises: ① Play the 8 beats in both modes. Which hands get a "get ready" cue, and why those? Check the distances listed under the timeline. ② Hold "listen" and drag the distance from 0.6 m to 0: at what distance do the pulses start? Compare with acc > 0.2. ③ If you redesigned the proximity pulse, what strength and length would you choose, and why?