~/hand-tracking-instrument 👋 hand chords 🎹 piano 🎮 8bit ♾️ endless music ☕ Support me apps ← about me

hand tracking instrument — play music with your hands_

Your webcam sees 21 points on each hand, and your fingers become the instrument. 6 play modes — jam band · air harp · air keys · chord conductor · theremin · drum pads · gesture looper · 15 synthesised instruments · 12 scales in any key · 10-finger polyphony · record video + WAV · fullscreen. Free, no signup — and the camera feed never leaves your browser.
🖱 No webcam, or on a phone? Press Play with mouse / touch on the stage — every mode works without a camera.  ·  🆕 I've created a simpler hand tracking instrument V2.0 with the top 20 chords — Simple Hand Tracking Chords →
MODE AIR HARP KEY C major pentatonic VOICE Concert Harp HANDS 0 -- fps 0:00
sweep your fingers through the strings · pinch = sustain · fist = mute
🖐️

Play notes with your hands in the air

Allow the camera and your hands lead a backing band, or become strings, keys, chords, a pitch ribbon or drum pads. Works best about an arm's length from the camera with both hands in frame and a light source in front of you.

🔒 100% local — frames are analysed in this tab and never uploaded
LEFT HAND
voicing

Play mode 1–6

Jam Band B start / stop

82
The instrument you pick below plays your melody. Each style brings its own drums, bass line and chord sound.

Looper L record · U undo

82
Works in every mode: loop a drum groove, switch to Air Harp and play over it. Recording starts on the next bar, after a one-bar count-in when nothing is playing yet. Hands busy? Hover a fingertip over ● LOOP at the top of the stage.

Instrument 15 voices

Notes

3
10
2
More rows stack extra octaves up the frame — the top row is the highest.

Sound

72
38
18
22

Record

0:00
Captures the canvas exactly as you see it — camera, hand skeleton, strings and ripples — with the synth audio mixed in. A clean 16-bit WAV of the audio is written at the same time.

Tracking & display

45
55

Guide — how to play music with your hands

Two minutes from "allow camera" to making music. Nothing here needs musical training.
1Allow the camera

Press Start camera and accept the browser prompt; the hand model downloads once and is then cached. No webcam? Press Play with mouse / touch instead.

2Set yourself up

Sit or stand about an arm's length back so both hands fit in the frame. Put the light in front of you, not behind: a window at your back turns your hands into a silhouette.

3Start the band

In Jam Band, hold up one finger on your left hand. Drums, bass and chords start in time. Show 2, 3, 4 or 5 fingers to change chord; the change lands on the next beat.

4Play a melody

Pinch thumb and index on your right hand and move it up and down. Every lane is a note of your key, so there is no wrong note. Make a fist for a breakdown.

5Loop it and record

Press L or hover a fingertip over ● LOOP to loop what you just played, then layer more on top. ● Record saves a video and a WAV.

What is in here

MODE 6 · NEW Jam Band

A drummer, a bass player and a keys player who follow your left hand. Pick a style, show a chord, and the band plays it in time; your right hand plays a melody over the top. The last chord keeps going when you drop your hand, so you can rest.

Left 1–5 · 🤘 · 🤟
Chord I–V · VI · VII of the key
Left hand height
Low = triad · middle = 7th · high = 9th
Right pinch 👌
Melody note; move up and down for pitch
Right fist ✊
Breakdown: the band filter closes until you open
Styles
Lo-fi 82 · House 122 · Synthwave 100 · Funk 104 BPM
EVERY MODE · NEW Gesture Looper

Records what your hands play for 1, 2 or 4 bars and loops it on the beat, then lets you add another layer on top, up to six. Loop a drum groove in Drum Pads, switch to Air Harp and play over it.

L or ● LOOP
Record a layer from the next bar
U or ↶ UNDO
Remove the last layer
Hover a fingertip
Presses the on-screen buttons, hands-free
Count-in
One bar of clicks when nothing is playing yet
Click
Metronome only you hear; never recorded
MODE 1 · EASIEST Air Harp

Vertical strings across the frame, one per note of your scale. Any extended fingertip that sweeps through a string plucks it, up to ten at once. The mode to show someone who has never done this before.

Sweep sideways
Plucks every string you pass through
Move faster
Louder, brighter pluck
Rows
1 to 3 rows; upper rows are higher octaves
Fist
Silent, travel back without playing
Pinch
Sustain, like a piano pedal
MODE 2 · SUSTAINED Air Keys

A keyboard strip in the lower part of the frame. A note sounds while a fingertip rests in its key and stops when you lift out, so this is the mode for held chords and slow pads. Three fingers on three keys is a chord.

Finger in a key
Note on, held until you leave
Several fingers
Several notes at once
Depth into the key
Deeper is louder and brighter
Pinch
Latch the notes so you can move away
MODE 3 · HARMONY Chord Conductor

The left hand chooses the chord of the key and whether it is major or minor; the right hand voices it and sets how loud it is. Each gesture has to settle for about a tenth of a second before it commits, so the harmony never flickers. Tick Left hand only to play one-handed.

Left 1–5 · 🤘 · 🤟
Degree I–V (thumb counts) · VI · VII
Left tilt in / out
Major ⇄ minor
Right 1–4 fingers
Triad · 1st inversion · maj7 or m7 · dom7 or dim7
Right height · tilt
Volume · filter
Right thumb out
Octave down; a fist on either hand stops the chord
MODE 4 · CLASSIC Theremin

The 1920s original, without the antennas. Moving right raises the pitch and raising the hand raises the volume. With scale lock on it snaps to your key; turn it off for the sliding glissando the real instrument is known for.

Move right
Pitch rises across the range
Raise the hand
Louder; drop it to fade out
Second hand height
Filter brightness
Glide slider
How smoothly sustained sounds slide
S
Scale lock on or off
MODE 5 · RHYTHM Drum Pads

Nine pads in a three-by-three grid. Punch a fingertip into a pad and it fires; how fast you were moving sets how hard it hits. All synthesised, so there is nothing to load.

Top row
Crash · open hat · closed hat
Middle row
High tom · clap · low tom
Bottom row
Rim · snare · kick
Hit speed
Ghost notes to full hits
Any fingertip
All ten fingers trigger on their own
ALWAYS ON Universal gestures and keys

These work in every mode, so learn them first. The on-screen hand changes for each gesture, so you can check it while you play.

Pinch 👌
Thumb to index, latches sustain (plays the melody in Jam Band)
Fist ✊
Mutes that hand at once
1–6
Switch play mode
B · L · U
Band on/off · loop a layer · undo layer
F · R
Fullscreen · start or stop recording
Space
Stop everything (loops are kept)

A hand tracking instrument you play in mid-air, in a browser tab

A violin needs years before it sounds like anything and a piano needs to be in the room. This instrument needs a webcam. The camera watches your hands, a landmark model returns 21 points per hand (four joints on each finger plus the wrist), and those points are read as musical intent: which fingers are out, where they are, how fast they move, whether the palm is tilted or pinched. A fifteen-voice synthesiser does the rest. There is nothing to install, no account and no extension.

It is closer to a theremin than a keyboard, because you play in space rather than against a surface. Unlike a theremin it can be locked to a scale, which removes the thing that makes gesture instruments frustrating: with C Minor Pentatonic selected, C Minor Pentatonic is all the air contains.

Six play modes for different music

Most webcam music demos implement one idea. This one gives you six, because different music wants different gestures. Jam Band puts a backing band behind you: you choose the chords and solo, it keeps time. Air Harp turns the frame into strings you sweep through, plucky and immediately satisfying, and the best mode for a beginner. Air Keys puts a keyboard strip under your hands for held notes and chords. Chord Conductor splits the work the way an accompanist does. Theremin is continuous pitch with optional scale snapping. Drum Pads gives you nine synthesised drums to punch in the air. Air Harp and Air Keys follow all ten fingertips, so you can hold a chord with one hand while the other picks out a melody; up to sixteen notes sound at once, and past that the oldest note is faded out to keep the audio clean.

How the Jam Band follows your hands

Pick a style and the band knows its part. Lo-fi (82 BPM) is a lazy swung beat with electric piano chords, House (122 BPM) is four-on-the-floor with off-beat bass and piano stabs, Synthwave (100 BPM) is a big backbeat, a pumping octave bass and a warm pad, and Funk (104 BPM) is a syncopated kick, ghost-note snare and short guitar chops. The tempo slider runs from 60 to 170 BPM and you can mute the drums, bass or chords separately.

Your left hand picks the chord with the same finger counts as Chord Conductor: one to five fingers, the thumb included, for chords I to V of your key, 🤘 for VI and 🤟 for VII. The band only plays chords that belong to the key, so C major gives C, Dm, Em, F, G, Am and Bdim, and a pentatonic or blues scale borrows the chords of its parent major or minor key. Height adds colour: hold the hand low for a plain triad, in the middle for a seventh chord and high for a ninth. Where a ninth would clash, as on III and VII of a major key, the chord stays a seventh. The ladder on the left of the stage always shows which chord each finger count will play.

With Snap to beat on, a new chord waits for the next beat and the drums, bass and keys change together, so a slightly late gesture still sounds deliberate. Every voicing is moved to the inversion closest to the previous chord, the way a keyboard player would, so changes glide instead of jumping around. Hold chord keeps the last chord going when you drop your left hand; switch it off and the band stops a second after your hand leaves.

Your right hand plays the melody. Pinch thumb and index together and a note sounds on the lane nearest your fingers, a little over two octaves of your scale with the notes of the current chord highlighted. Move up and down while pinching to play a line; release to stop. The melody uses whichever of the fifteen instruments you pick, and its notes snap to the next sixteenth so runs stay in time. A right fist is a breakdown: the backing band is pulled through a closing low-pass filter, and opening the hand drops it back in.

Loop your own layers

The looper records only what your hands play, not the backing band, for 1, 2 or 4 bars at the current tempo. Press L, the ● Loop button, or hover a fingertip over the ● LOOP air button at the top of the stage for about two thirds of a second. Recording starts exactly on the next bar; when nothing is playing yet you first get a one-bar count-in. The take is captured sample by sample in an AudioWorklet, so it lands on the beat grid, and it starts looping the moment it ends. Press again to add another layer, up to six; U removes the last one and Clear removes them all. The tempo is locked while loops exist, because a loop is audio and would drift at another tempo.

Loops keep playing when you switch mode, which is the fun part: loop eight bars of drums in Drum Pads, add a chord loop in Air Keys, then play Air Harp over both. The optional metronome click goes straight to your speakers and never into a loop or a recording. Loops live in memory only, so they are gone when you close the tab; press Record to keep the performance as a video and WAV.

How Chord Conductor works

Your left hand chooses the chord. One to five extended fingers, the thumb included, select scale degrees I to V; index and pinky together (🤘) give VI; index, pinky and thumb (🤟) give VII. Tilting the left hand inward makes the chord major, outward makes it minor, with a dead zone in the middle so a relaxed hand does not waver. Your right hand shapes it: one to four fingers step through the plain triad, its first inversion, a major or minor seventh and a dominant or diminished seventh. Palm height sets the volume, tilt opens or closes the filter, and sticking the right thumb out drops the chord an octave. A closed right fist silences it and a closed left fist stops the chord. With Left hand only ticked, voicing, volume and filter stay fixed.

Both hands are tracked at once. Roles follow where the hands appear on screen: the hand further left in the mirrored view is your left hand. With only one hand visible the app uses the model's own left or right label. The image is mirrored by default so that moving right moves the on-screen hand right; you can switch Mirror off in the panel.

Scales and keys: no wrong notes

Pick a key and a scale and every string, key and theremin position is locked to it. There are twelve scales in all twelve keys: Major Pentatonic, Minor Pentatonic, Major (Ionian), Natural Minor, Harmonic Minor, Dorian, Phrygian, Lydian, Mixolydian, Blues, Whole Tone and Chromatic. To jam along with a track, set the key of the song and choose Major or Natural Minor to match; Minor Pentatonic and Blues are the safest choices for soloing over almost anything. The octave slider (1 to 6) moves the range, and you can have 5 to 18 strings or keys in up to three rows.

Fifteen synthesised instruments, no samples

Every note is built live with the Web Audio API, using the synthesis method that suits the sound. Pads, strings, choir, brass and leads are subtractive: detuned oscillators through a resonant filter with its own envelope. The electric piano and vibraphone are two-operator FM, which is how those sounds were made in the 1980s. The struck piano and music box are additive with deliberately inharmonic partials. The nylon guitar and concert harp use Karplus-Strong: a burst of noise recirculating in a delay line one wavelength long, losing a little energy each pass, which is a real physical model of a vibrating string, rendered per note and cached. The organ is a drawbar stack and the flute is filtered noise. Switch sounds with [ and ].

The sound panel has volume, reverb, delay and glide. There is no MIDI input or MIDI export here; this instrument is about the hands, and it records audio and video. For MIDI, the online virtual piano records what you play as a .mid file.

Settings worth trying

Recording video and WAV

Press Record and the page captures two things at once. A WebM video of the canvas (camera view, hand skeleton, glowing strings, ripples and the heads-up display, exactly as you see them) with the synth mixed into the audio track: the file you post. And an uncompressed 16-bit stereo WAV straight from the synth, with no lossy compression: the file you drop into a DAW. Switch the record button to AUDIO ONLY if you only want sound. After stopping you can preview the take and download both files.

WebM is what browsers can record natively. It plays in Chrome, Edge and Firefox and uploads fine to YouTube, Instagram and TikTok, which convert it on their side; some older iOS apps do not preview it, so convert it to MP4 if you need to. Recordings are held in memory until you download them, so a few minutes is comfortable and very long takes on a low-memory device may stall; download an important take before starting the next. Recording in fullscreen looks better because the canvas is larger. What you play is your own work: no watermark, no attribution required, commercial use fine.

Where the video goes: nowhere

The camera stream goes into a canvas and a model running inside your browser tab. It is not sent to a server. The band, the looper and every sound are generated in the same tab. The only recording that exists is one you start yourself, and it stays in memory until you download it or close the tab. In mouse / touch mode the camera is never opened at all. The page never asks for your microphone, which is also why the recorded audio has no room noise. Mode, instrument, key, scale, octave, string count, effect levels and display toggles are saved in your browser's local storage. The site counts page views with cookie-free analytics. After the first visit the model and code are cached and the sound is generated locally, so it largely works offline; the first visit needs a connection to fetch the model.

No webcam? Play with a mouse or touchscreen

Press Play with mouse / touch on the stage and the pointer takes over from your hands. It drives the same virtual hand the camera would, so every mode, the looper, the band and the recorder work the same way. A bar of chord buttons under the stage stands in for your left hand: I to VII pick the chord (each button shows its name in your key), triad / 7th / 9th replaces the hand-height zones of the Jam Band, and in Chord Conductor major / minor and voicing 1–4 replace palm tilt and right-hand fingers. Press a chord again to let go of it.

A mouse gives you one "finger", so ten-finger polyphony and two-handed gestures still need the camera. On a phone the chord buttons and the stage can be used with two thumbs at once. Press 📷 use camera to switch to hand tracking at any time.

Hand synth, gesture synth or theremin?

People search for this kind of instrument under many names: hand synth, hand gesture synth, hand synthesizer, hand sign music. They all mean the same idea: a synthesizer whose notes and controls come from the shape and position of your hands instead of keys and knobs. A classic theremin does it with two antennas and electric fields, and only for pitch and volume. A camera-based hand synth sees the whole hand, so finger counts can choose chords, a pinch can start a note and a fist can mute the band. That is why this page has six modes instead of one.

Getting good tracking and low latency

Tracking quality is mostly a lighting problem. Face a window or lamp rather than having one behind you, avoid a background the same colour as your skin, and keep whole hands inside the frame: once fingertips leave the edge, the model guesses. If jitter triggers notes you did not mean, raise Smoothing (steadier, slightly later) or lower Sensitivity; if gentle movements are ignored, raise Sensitivity. Some delay is unavoidable because the camera has to capture a frame and the model has to read it before a note can start. Good light, fewer open tabs competing for the GPU and wired headphones instead of Bluetooth keep it as short as possible. Fullscreen (F, leave with F or Esc) hides the page around the instrument and keeps the screen awake while you play.

Camera, sound and browser problems

If nothing happens on Start camera, the browser blocked the camera or another app is using it; while you sort that out, Play with mouse / touch works without it. Allow the site via the camera icon in the address bar, close any video-call app, and on macOS check System Settings → Privacy & Security → Camera, then reload. If the hands track but you hear nothing, click the page once (browsers only start audio after an interaction), check the volume and that the tab is not muted. Chrome and Edge run the model fastest because they can use the GPU; Firefox and Safari work too. The page needs https. On a phone or tablet use the front camera in landscape, propped up so both hands are free, and on older phones stick to Air Harp or Theremin with fewer strings.

More music tools

For chords with simple finger counts, try Simple Hand Tracking Chords or the 4 Chord Song Player. Build a beat to play over with the free online drum machine in Drum Loop Studio, which exports seamless loop WAVs, edit your recordings in the audio editor, or browse all the free music tools. It is free, with no account, no ads and no watermark.

Online Virtual PianoPlay piano with your computer keyboard · MIDI export Drum Loop StudioOnline drum machine & beat maker · WAV export 8-Bit Studio6-channel chiptune loop machine Guitar TunerChromatic mic tuner · 18 tunings Audio EditorTrim, effects and export in the browser Live Loop PedalRecord and overdub four tracks from your mic All 166 toolsEverything on jasperbernaers.com

Quick guide