This program starts a timer and listens for key press events. These key press events are mapped onto drum sounds. The drum sound is stored into one list and the timing value is stored into a parallel list, with both lists accessed by the same pointer/counter. Keys a and s trigger the different drum sounds. The user then should press the Spacebar to start the playback loop, which plays back the recorded claps at the volume level recorded and via the timer data recorded earlier.
Performamatics@NYU http://experiencingaudio.org/