const byte buzzerPin = 9;
int nada[] = {262, 294, 330, 349, 392, 440, 494};
int durasi[] = {500, 500, 500, 500, 500, 500, 500};
void setup() {
}
void loop() {
for (int i = 0; i < 7; i++) {
tone(buzzerPin, nada[i]);
delay(durasi[i]);
noTone(buzzerPin);
delay(100);
}
delay(1000);
}