const byte n = 7;
int masF[n] = {261, 293, 330, 348, 391, 440, 495};
int pin = 7;
void setup() {
// put your setup code here, to run once:
for (int i = 0; i<n; i++)
{
pinMode(pin +i, OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
for (int y = 0; y<n; y++)
{
digitalWrite(pin + y, HIGH);
tone (3, masF[y], 500);
delay(500);
digitalWrite(pin + y, LOW);
}
}