Skip to content

Wacky one-person band instrument I made for the Leap Motion controller and Web Audio

Notifications You must be signed in to change notification settings

lizacodes/leapjs-instrument

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#LeapJS instrument with Web Audio I made a one-person-band instrument for the Leap Motion controller comprised of sci-fi-ish sounds generated with the Web Audio API. I did this by associating these sounds with certain interactions and gestures.

I did a talk at MelbJS May 2014 to accompany the demo. It covers the basics of Leap JS, Web Audio and how you can combine the two: http://noogn.github.io/leapjs-webaudio-talk/

##How to play it

If you have a controller plugged in, try it out here: http://noogn.github.io/leapjs-instrument/

  • Weird laser - swipe gesture (left)
  • Weird laser 2 - swipe gesture (right)
  • Wobbulating theremin 1 - on the left side of the controller, move hand towards and past it
  • Wobbulating theremin 2 - on the right side of the controller, move hand towards and past it
  • Hihat - circle gesture
  • Piano - move fingers past the "piano zone" (the grey block on the page) and it will play a note corresponding to the visible fingers. Eg. 1st finger from the left plays C, 2nd: D, 3rd: E, etc.

On top of that, the "Play beat" button just plays 2 sounds at certain intervals, acting as a metronome of sorts, just for fun.

##Further reading

###Todo

  • Display note names when playing piano notes
  • Create a "play" method for the wobbulating theremin
  • Reduce instances of magic numbers - this will result in slightly more configurable sounds
  • Any upgrades/changes necessary for Leap Motion SDK 2.0

About

Wacky one-person band instrument I made for the Leap Motion controller and Web Audio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published