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 pulse
first beat of a pose: 0.55 × 45 mssecond beat: 0.2 × 25 msget ready: 0.9 × 90 ms, only on the hand that must move

Getting closer

a Geiger counter for your hand

Rewards

one-off pulses

The long buzz for a shared hit is how you feel that your partner made it too (Level 7).

The real code

coach.js

Three 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.


      
Full file: coach.js ↗ · the Haptic Fishing course has a whole level on vibration design: Fishing level 4 ↗

What you should be able to explain

  1. 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.
  2. 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.
  3. Density for distance. Inside 0.56 m of the target, acc rises from 0 to 1 as you get closer, and pulses come every 0.3 − 0.24 × acc seconds: from about 4 per second (at acc 0.2) to about 17 per second. The same idea as the tension pulses in Haptic Fishing.
  4. 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?