int melody[] = {262,294,330,349,392,440,494,523};
int durasi=1000;
void setup() {
// put your setup code here, to run once:
pinMode(10, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0; i<8; i++){
tone(10, melody[i],durasi);
delay(durasi);
// noTone(8);
delay(1000);
}
}