Playing the classic game of Pong using microphone input and live video tracking

Input from the computer’s audio system is routed through the UDP object in Max/MSP through a Java gateway on to a Flash file:

 

Same as above, but with live camera tracking added from built-in webcam routed through Jitter:

 

The modification was based on the original idea below, which uses a stereo signal and pitch tracking:

Thanks to Base42.nl

Here’s everything you should need to get it running on your OSX system:

Flash pong files and tutorials
Max/MSP
Jitter
Flash Open Sound Control (Flosc)
Setting up a java gateway
My Pong Patches used for the above examples

More info in the comments

  • Pingback: Voice controlled Pong - control Flash with audio, open source Max/MSP patch released

  • Sujhon

    The one that track colors..where is download link? how do u open it in Mac

    • http://www.jnote.org Jaems

      If you click on My Pong Patches used for the above examples above (right at the end of the post, there is a list of links), you will download two patches. The first one called NewPongControlClean is the one that tracks video. You will need Max/MSP to open it and read the help patcher. You can follow the instructions in the link above titled Flash files and tutorial. The only thing they don’t really describe very well is setting up the java gateway, but you can find that as well in, you guessed it, the link above titled Flash Open Sound Control (Flosc). For a good tutorial and walkthrough of the Java gateway you can go here:
      http://transmote.com/flosc/#tutorial

      You would then use the following line:
      java Gateway 7000 3000

      Where the tutorial specifies setting up the port numbers.