Features Podcasts Family Video Comics Music Tech Science Books Film & TV Games ✚

Jill

Three-line WiFi Theremin

Cory Doctorow at 8:10 am Fri, Jan 17, 2003

— FEATURED —

Book Review

The Man Who Laughs: grotesque Victor Hugo potboiler was the basis for The Joker

Feature

Eurovision 2013: An American in London

Book Review

The Twelve-Fingered Boy - mesmerizing YA horror novel

— FOLLOW US —

Boing Boing is on Twitter and Facebook. Subscribe to our RSS feed or daily email.

 

— POLICIES —

Except where indicated, Boing Boing is licensed under a Creative Commons License permitting non-commercial sharing with attribution

 

— FONTS —

Tweet
Kindle
My colleague Seth Schoen has written a three-line script that turns a GNU/Linux box with a WiFi card into a Theremin.
This means that the 802.11 card can function as a rough proximity sensor for your hand. This evening I realized that that means you can make a wireless card into a sort of poor man's theremin -- you just need to map the signal strength to a tone, play the tone, and move your hand. You'll be able to play several discrete pitches or scales, although with much less precision than a real theremin.

I wrote a three-line shell script which implements this idea (using Linux setterm, all on a beta test version of the LNX-BBC, it so happens), and later improved it a little bit with a small C program which wraps the Linux KIOCSOUND ioctl. It works just fine -- you can easily bring the tone up and down by moving your hand back and forth. That's a lot of fun. The most obvious problem is the discreteness of the whole thing. A real theremin is plainly an analog device. (The analogy is between the pitch level and the position of your hand.) This system is very obviously quantized, at best like someone playing a poor piano scale (and it's distorted sine waves rather than piano strings with their nice harmonics).

Link Discuss

I write books. My latest is a YA science fiction novel called Homeland (it's the sequel to Little Brother). More books: Rapture of the Nerds (a novel, with Charlie Stross); With a Little Help (short stories); and The Great Big Beautiful Tomorrow (novella and nonfic). I speak all over the place and I tweet and tumble, too.

More at Boing Boing

Eurovision 2013: An American in London

The technology that links taxonomy and Star Trek

Comments are closed.