Earlier I talked about this project that I made with Patrick Brouwer. After all the positive response we got, we decided to make it available for everyone.
We wanted to make (multiplayer) flash games which could be controlled by your own voice. We first thought this would be very simple, since flash CS3 allows1 you to do a fft2 analysis on audio sources. However, this computeSpectrum3 function does not work on the microphone input (what a shame!).
We have created an alternative approach for this (worldwide4) known problem. We made a MaxMSP patch that does the FFT analysis and sends a OSC package5 to flash (with the help of a small java application). MAX/MSP6 sends the Amplitude and the pitch of a stereo signal (left and right). So, now we could use the input of the microphone to make a two-player game. If you only have one input they will both send the same data. In fact you will only get four paramaters in flash, you can do whatever you want with it (be creative)!
How to get this running.
First you have to download the package thats available here.
If you’ve got the package, unzip it and use your console to start the FLOSC server;
java Gateway 7000 3000
When this java server is running you can launch the MAX/MSP file that is located in the “maxmsp/Applications/” folder. It’s available for both windows and mac. We also included the MAX/MSP source code so you can change the patch like James Howard Young did.
When you launch the MAX/MSP patch it should look like this:

Also make sure that in your Flash Settings you can always access your microphone. You can do this by editing your global security settings and ‘add a location’. Fill in a slash (/) here.
Then it’s all set to run the pong game! You can find it in the swfs folder!
Please let me know if you have any trouble running it, or if you have created something with it.
The steps summarized:- Run the FLOSC server
- Run the application file (in “maxmsp/Applications/”)
- Run the SWF
- Give permission to access your microphone
- Play!
We released this project under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License, so please Share alike!

Flash Sound Controler by www.base42.nl is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.
1 Grant Skinner: Music Visualization Demos with computeSpectrum