Camera
— fps
Waiting for the camera
Glowing strings on your camera. A fingertip that crosses one plays a note, in the browser, with tract and WebAudio. The picture never leaves your machine.
Pinch thumb to index finger to drag a control point. In draw mode that pinch lays down a new string, up to 12. At the limit, the new stroke replaces the last one. The slider lays out a fresh set.
— fps
Waiting for the camera
— ms
Waiting for a frame
Six strings open as C3 through C8, one octave each. Where you cross a string picks the scale degree; how fast the fingertip is moving picks the loudness. Major pentatonic is the default. The voice is a handful of detuned partials with a short hammer noise, so nothing is downloaded to play a note. tract runs Google's MediaPipe hand models in WebAssembly: a palm detector finds each hand, then a landmark model reads a square, rotated crop around it and places 21 points. While a hand stays in view, its landmarks give the next frame's crop and the detector rests. The models are the float16 Hand Landmarker bundle, fetched from Google on first load. Models © Google, Apache-2.0. Pinch is thumb tip to index tip. Drawing fits those points to a cubic. The strings are a canvas overlay on the camera picture. Source code