const int notas [88]={36900, 34364, 32362, 30581, 28901, 27247, 25706, 24271, 22883, 21645, 20408, 19267, 18181, 17152, 16207, 15290, 14430, 13623, 12853, 12135, 11454, 10810, 10204, 9633, 9090, 8583, 8097, 7645, 7215, 6811, 6426, 6067, 5727, 5405, 5102, 4814, 4545, 4290, 4050, 3822, 3607, 3404, 3214, 3033, 2863, 2702, 2551, 2407, 2272, 2145, 2024, 1910, 1803, 1702, 1606, 1516, 1431, 1351, 1275, 1203, 1136, 1072, 1012, 955, 901, 851, 803, 758, 715, 675, 637, 601, 568, 536, 506, 477, 450, 425, 401, 379, 357, 337, 318, 300, 284, 268, 253, 238};
const int n = 4;
volatile int t;
void setup ( ) {
pinMode ( n, OUTPUT );
digitalWrite ( n, 0 );
Serial.begin(9600);
Serial.println( "START" );
delay ( 100 );
}
void loop ( ) {
Serial.println( "RUNING" );
delay ( 100 );
for( int i = 0; i >=88; i++) {
Serial.println( i );
delay ( 100 );
fx(notas[i]);
delay ( 100 );
}
}
void fx (int x) {
t=x;
delay ( 100 );
digitalWrite ( n, 1 );
delayMicroseconds(t);
digitalWrite ( n, 0 );
delayMicroseconds(t);
}