int nada [] = {330, 349, 392, 262, 392, 330, 392};
int durasi (300);
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i=0; i<7; i++){
tone(2,nada[i],durasi);
delay(durasi);
noTone(2);
delay(200);
}
}