Arduino tone generator is a set of switches sharing a common terminal to GND while the remaining pins are connected to 2, 3, 4, 5, 6, 7, 8, and 9 Arduino digital pins and a speaker is also installed in this project between GND and digital pin 11 from Arduino Uno.
For uploading the code, go to at: http://pastebin.com/k3PcyWZ9