SOLVED IT
SORRY FOR MY ENGLISH, I AM FROM COSTA RICA, ONLY SPEAK SPANISH
CHANGE THE TWO FIRST LINES FOR THIS.. WORK IT
int buttons[6] = {2,0,0,0,0,0};
/*int buttons[0] = 2;
*/
int notes[] = {262,294,330,349};
void setup() {
Serial.begin(9600);
}
void loop() {
int keyVal = analogRead(A0);
Serial.println(keyVal);
if(keyVal == 1023) {
tone(8, notes[0]);
}
else if(keyVal >= 990 && keyVal <= 1010){
tone(8, notes[1]);
}
else if(keyVal >= 505 && keyVal <= 515){
tone(8, notes[2]);
}
else if(keyVal >= 5 && keyVal <=10){
tone(8, notes[3]);
}
else{
noTone(

;
}
}