//frekuensi : do 1915, re 1700, mi 1519, fa 1432, sol 1275, la 1136, si 1014, do 956 

int buzzerPin = 7;
int ledMerah = 0;

void setup() {
  pinMode(buzzerPin, OUTPUT);
  pinMode(ledMerah, OUTPUT);
}

void loop() {
  tone(buzzerPin, 1915);
  digitalWrite(ledMerah, HIGH);
  delay(1000);

  tone(buzzerPin, 1700);
  digitalWrite(ledMerah, LOW);
  delay(1000);
   
  tone(buzzerPin, 1519);
  digitalWrite(ledMerah, HIGH);
  delay(1000);

  tone(buzzerPin, 1432);
  digitalWrite(ledMerah, LOW);
  delay(1000);

  tone(buzzerPin, 1275);
  digitalWrite(ledMerah, HIGH);
  delay(1000);

  tone(buzzerPin, 1136);
  digitalWrite(ledMerah, LOW);
  delay(1000);

  tone(buzzerPin, 1014);
  digitalWrite(ledMerah, HIGH);
  delay(1000);

  tone(buzzerPin, 956);

  delay(1000);

  noTone(buzzerPin);

  delay(1000);

  // tone(buzzerPin, 100, 1000);
  // delay(2000);
}