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