Online theremin — play it with your hands and a webcam: right hand pitch, left hand volume, in your browser

~/online-theremin hand synth violin piano ☕ Support me apps ← about me
// online theremin · webcam hand tracking · six sounds · scales · recorder · no download · no signup
Play the theremin in the air — right hand pitch, left hand volume
Press Start camera, hold up both hands and play without touching anything. Your right hand sets the pitch, your left hand the volume. The tracking runs in your browser and the video never leaves your device. No camera? Use the mouse or a finger.
Note—
Frequency—
Volume0%
Hands—
Cameraoff
EnginePress start

Browsers only allow sound after a click, so you start here. The camera asks for permission first, and your video stays on your device.

Choosing a sound also sets its own vibrato, echo and reverb. Change them afterwards as you like. Keys 1 to 6 switch sound.

Guide — play a theremin with your hands in five steps

No download, no account and no samples. Works with a webcam, or with the mouse or your finger.
1Press Start camera

Press Start camera and allow the camera when your browser asks. The video stays on your device. The first time, a hand tracking model of a few megabytes is downloaded. No camera? Press Use mouse or touch instead.

2Raise both hands

Stand or sit about an arm and a half from the camera, with a plain background and good light. Hold both hands up so the camera can see them. The page shows you as in a mirror.

3Right hand: pitch

Move your right hand left and right. Further to the right is a higher note. The green line and the note name show where you are. Turn on the scale magnet if you want to land on the right notes more easily.

4Left hand: volume

Move your left hand up and down. Up is louder, down is quieter, and a closed fist is silent. If you hear nothing, raise your left hand: the volume bar on the left edge shows the level.

5Shape and record

Pick one of six sounds, add vibrato, echo and reverb, then press Record to save what you play as an audio file. Press F for full screen.

What you can play with

HANDSTwo hands, two jobs

The page tells the hands apart by their place on the screen.

Right side
the hand furthest to the right sets the pitch
Left side
the other hand sets the volume: up is louder
One hand
a single hand does both: left and right for pitch, up and down for volume
Fist
a closed volume hand is silent
MOUSE & TOUCHNo camera needed

Press and drag on the stage.

One finger
left and right is pitch, up and down is volume
Two fingers
the right one sets the pitch, the left one the volume
Release
the sound fades out
PLAY IN TUNEScale magnet

Free gliding is the real theremin way, and hard to play in tune.

Scale
choose a scale and a key on the Pitch tab
Magnet
0% glides freely, 100% jumps from note to note
Range
two octaves is easiest to control
KEYSShortcuts

Active while no field has focus.

F
full screen (Esc leaves)
M
mute
R
start or stop recording
1–6
choose a sound

An instrument you play without touching it

This free online theremin turns your webcam into the two antennas of a theremin. Your right hand sets the pitch, your left hand sets the volume, and the sound is made live in your browser. There is nothing to install and nothing to sign up for. If you have no camera, you can play the same instrument with the mouse or a finger.

What is a theremin?

The theremin was invented in the early 1920s by the Russian physicist Léon Theremin (Lev Termen), and it is one of the first electronic instruments. It is the only common instrument that you play without touching it. A real theremin has two antennas: a vertical rod for the pitch and a loop for the volume. The player's body changes the electrical field around each antenna, and the instrument turns that tiny change into a note that glides smoothly, with nothing to press and nothing to hold on to. Because there are no keys or frets, the player must hear the note in their head and find it in the air. That is why a theremin is hard to play in tune, and why a skilled thereminist, such as Clara Rockmore, is so remarkable to hear. The eerie, singing sound became a favourite for film music from the 1940s onwards.

How does the camera version work?

A real theremin measures electrical capacitance. A webcam cannot, so this page does something else that feels similar: it looks at your hands. A hand tracking model (MediaPipe Hand Landmarker) finds 21 points on each hand in every camera frame. The page takes the middle of the palm of each hand and uses that as the position of the hand. The image is mirrored, so it behaves like a mirror: when you move your right hand to the right, the dot on the screen moves to the right.

The sound itself is made with Web Audio: an oscillator with a chosen waveform, a filter, optional vibrato, echo and reverb. There are no recordings. The pitch follows your hand with a short glide, so it moves smoothly like the real instrument.

Tips for good tracking

Playing in tune

On a real theremin, finding the right note takes years of practice. This page gives you a few helpers. On the Pitch tab you choose a range (two to four octaves, and the lowest note), a scale and a key, and then you set the scale magnet. At 0% the pitch glides freely and every position is a valid note, as on the real instrument. At higher settings the pitch lingers on the notes of the scale, and at 100% it steps from note to note. The vertical lines on the stage show the notes of the scale, and the C lines are brighter. A narrow range, such as two octaves, is also easier to control than four.

ScaleNotes (semitones above the key note)Sound
Chromaticevery notefree gliding, no help
Major0 2 4 5 7 9 11bright, familiar
Natural minor0 2 3 5 7 8 10sad, serious
Major pentatonic0 2 4 7 9open, folk-like, hard to play wrong
Minor pentatonic0 3 5 7 10bluesy, hard to play wrong
Blues0 3 5 6 7 10minor pentatonic with a passing note
Harmonic minor0 2 3 5 7 8 11dramatic, a little exotic
Dorian0 2 3 5 7 9 10minor with a lifted sixth
Whole tone0 2 4 6 8 10dreamy, no clear key

The six sounds

Each sound sets a starting point for vibrato, echo and reverb. You can change them afterwards on the Sound tab. Vibrato adds a small regular wobble in pitch, as thereminists create by shaking a finger; Glide sets how quickly the note follows your hand; Tone makes the sound darker or brighter.

Mouse and touch

You do not need a camera. Press and drag on the stage: left to right sets the pitch and up and down sets the volume, with the top being the loudest. With two fingers, the finger that is furthest to the right sets the pitch and the other finger sets the volume. When you let go, the sound fades out. This also works on phones and tablets, and it is a good way to learn the layout before you try it with your hands.

Recording

Press Record (or R), play, and press it again to stop. A download link appears with your performance as an audio file (WebM or Ogg, or M4A in Safari). Only the sound is recorded. The camera image is never recorded or saved. A recording stops by itself after ten minutes.

Keyboard shortcuts

KeyWhat it does
FFull screen on or off. Esc also leaves full screen.
MMute or unmute.
RStart or stop recording.
1 to 6Choose Classic, Vocal, Cello, Space whistle, Sci-fi or Pure sine.

Privacy: what happens to the camera image?

The video from your camera is processed on your device. It is not uploaded, not recorded and not stored. To do the tracking, the page downloads the MediaPipe library from the jsDelivr network (with unpkg as a fallback) and the hand model from Google's storage host, so those hosts see an ordinary file request from your browser. Your settings (sound, range, scale and so on) are saved in this browser only, under the key jb-theremin. Your browser asks for permission before it turns the camera on, and you can switch it off again with the Stop camera button.

Phones and tablets

The front camera of a phone or tablet works. Put the device on a stand or lean it against something, a little way away, in landscape. A phone is smaller, so keep your hands close together in the picture. If the camera does not work, mouse and touch mode always does.

Honest limits

This is a simulation of the way a theremin is played, not a real theremin. A webcam sees you about thirty times a second, and the tracking takes a little time, so there is a small delay between your hand and the sound, and it is not as precise as the electrical field of a real instrument. The pitch is not perfectly steady: small tracking noise is smoothed out, and that smoothing adds a slight lag. The sound is a synthesis and not a model of the circuits of a real theremin. Tracking works best with clear light and an uncluttered background, and it can lose a hand that is hidden or turned. For serious practice, a real theremin is a better teacher, and this page is a quick, free way to try the idea.

More music tools

Try the hand tracking instrument for a webcam synth with chords and drums, the virtual violin, the virtual piano or the trackpad music page. All of them are in the music tools overview.