This project demonstrates how to play a random note or a random sound from a list when a key is pressed. Press N to play a random note and S to play a random sound using the first approach in the script. Press T to play a random sound using the second approach in the script. The difference between the first and second approaches to playing sounds is that the first picks one of the six available sounds, while the second stores the *value* of one of the six available *strings* in a variable and then plays the sound named by that variable. The second approach simply demonstrates that sounds can be specified by their names expressed as strings.
programmed by Jesse Heines, UMass Lowell Computer Science July 10, 2014, NSF-sponsored Performamatics Project