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