Oli Yeates ·

An instrument made of light you can play in thin air

Air Strings is an instrument made of light. Turn your camera on, hold your hands up and play: 4 chords, a band that follows you, a harp and air drums, all in your browser.

An instrument made of light you can play in thin air

Remember playing air guitar in your bedroom? (Don't pretend you didn't.) We've been wondering what would happen if the air guitar actually played back.

So for our 23rd Labs experiment we built one. Sort of. Air Strings is an instrument made of light. There's nothing to hold, nothing to download and nothing to plug in. You turn your camera on, hold your hands up and play.

Have a go below. Watch her play first, then press Turn sound on.

Open it full screen to play with your own hands (your camera only works there, not inside this page).

What am I looking at?

4 glowing strings, hanging in mid-air. When the page opens, a short film shows someone strumming them, and you hear 4 chords: C, G, A minor and F. If that sounds familiar, it should. Those 4 chords sit underneath an enormous number of pop songs.

Then it's your turn. Press Use my hands, say yes to the camera, and the film dissolves into your own picture. The strings stay exactly where they were. Bring a hand down through them and you're playing.

No camera? It works with a mouse or a finger too. Sweep across the strings, or press the space bar to strum.

A woman in a dark studio with her hand raised beside four glowing violet strings of light that hang in the air
The opening film. The strings sit exactly where her hand travels.

How do I play it?

Start simple and work up. Here's everything it can do:

  • Strum: bring a hand down through the strings. Move slowly and a string catches on your fingertip, stretches and snaps back. The further you pull it, the louder it rings.
  • Choose your chord: hold up 1, 2, 3 or 4 fingers on your other hand for C, G, A minor or F. Now you can play an actual song.
  • Get a band: after a couple of strums, drums and a bass line come in. They take their tempo from you, so speed up and they speed up. Stop and they wind down.
  • Draw your own strings: pinch your thumb and finger together, hold for a moment, pull and let go. A new string appears between the 2 points. Shorter strings play higher.
  • Stretch one between your hands: pinch with both hands and a single string sings between them. Move your hands apart and the note drops.
  • Stop everything: close your hand into a fist, the way a guitarist damps the strings.
  • Keep a clip: press Record a clip and you get 10 seconds of yourself playing, with the strings and the sound, saved straight to your phone or laptop.

There's a harp and a drum kit too

Press Sound and you can swap the strings for a harp: 12 upright strings, low on the left and high on the right. Run a hand across it and it's very hard to make it sound bad (we tuned it that way on purpose).

Twelve upright strings of light in blues, violets and greens, tall on the left and short on the right, rippling after a hand has swept across them
The harp. Every note is in tune with every other, so any sweep sounds right.

Or swap it for a drum kit. 6 pads float in front of you: kick, snare, hat, tom, clap and crash. Tap them in the air.

Six glowing circles labelled Hat, Crash, Clap, Tom, Kick and Snare floating on a dark background, three of them lit up brightly
Air drums. Yes, really.

How does it know where my hands are?

Your camera picture goes into a hand tracking model that runs inside your browser. It finds 21 points on each hand (every knuckle and every fingertip) many times a second. That's all the page needs. When a fingertip crosses a string, the string plays.

The important bit: your video never leaves your device. Nothing is uploaded, nothing is stored and nothing is sent to us. The model runs on your own phone or laptop, and so does the clip recorder.

The same points tell it everything else. Thumb and finger touching means you're drawing. 4 fingertips tucked into your palm means a fist. Count the fingers that are up on your spare hand and you've got your chord.

The hard part was the first 5 seconds

The opening film looks like the simplest thing on the page. It was the fiddliest.

A film of someone strumming is easy to make. A film where every strum lands on a string, in time, with the right chord under it, is not. If her hand and the sound drift apart by even a fraction of a second, you notice straight away and the magic goes.

So we didn't try to line the sound up with the film at all. Instead we ran our own hand tracker over the finished film, worked out exactly where her hand travels, and hung the strings there. The page then plays her hand the same way it plays yours. Her fingertip crosses a string, the string sounds. It can't drift out of time, because there's nothing to line up.

It's a small thing, but it's the difference between "that's clever" and "wait, how is she doing that?".

Why does it sound like a real guitar?

Because it is one. The guitar, bass and harp are real recorded notes, and the page picks the closest one and nudges it to the pitch you need. The drums and the bass line that follow you are made on the spot, which is how they can keep up when you change speed.

Why build an instrument?

Because the best way to show what a website can do now is to make something you can't help but play with.

10 years ago this would have needed special hardware, an app and a very patient developer. Now it's a web page. You send someone a link and 10 seconds later they're waving their arms about in the kitchen. (Fair warning: it gets loud.)

And it's not really about music. The same idea works anywhere you'd like people to use their hands instead of a mouse:

  • A product you can pick up and turn round by reaching for it.
  • A window display or an event stand that reacts as people walk up.
  • A museum exhibit nobody has to touch.
  • A campaign where the thing you make is yours to share.

It follows Clicky Bot, a robot that copies every move you make. That one watches your whole body. This one listens to your hands.

Built by Sprint

Air Strings is an experiment from Sprint, the web development studio that's part of Clicky Group. It's one of a series we're building to show what's possible when a good idea, a small team and the latest tools get some time together.

Got an idea people should be able to play with?

That's our favourite kind of brief. Talk to us and we'll show you what it could look like.