Sketch for MIDI in to control Tone Function

Also that long list of notes is useless, you need to be able to match those numbers to a MIDI note number. This means they need to be put in an array who's index is the MIDI note number or some simple function of it.
Possibly this is beyond what you can do yet, but keep working through the tutorials and IDE examples and you will get there.