const int crotchet = 100; //negra
    const int minim = 2*crotchet; //blanca
    const int semibreve = crotchet/2; //corchera
    const int seniQuaver = crotchet/4; //semicorchera
    const int deniSemiQuaver = crotchet/8; //fusa
    const int crotchetWithPoint = crotchet + quaver;
    const int minimWithPoint = minim + crotchet;
    const int crotchetSilence = crotchet;
    const int minimSilence = minim;
    const int seniBreveSilence = SeniBreve;
    const int quaverSilence = quaver;
    const int SeniQuaversSilence = seniQuaver;
    conts long DO = 523.25;
    conts long RE = 587.33;
    conts long MI = 659.26;
    conts long FA = 698.46;
    conts long SOL = 783.99;
    conts long LA = 880;
    const long SI = 987.77;
    const long PAU = 30000; 
    const int speakerOut = 8; //pin
    const int nextNote = 200; //siguiente nota
    const int nextBlock = 300;
    const int elements = 34;
    
    
    void setup(){
    pinMode(speackerOut, OUTPUT);}
    
    void loop(){
    int melody[]= {MI, PAU, MI, MI, MI, PAU, MI, PAU, MI, FA, PAU, SOL, FA, PAU, MI, PAU, MI, PAU, MI, FA, MI, FA, PAU, SOL, PAU, SOL};
    
    int duration[] ={crotchetWithPoint, nextNote, quarver, crotchet, nextNote, crotchet, nextBlock, ..., crotchet};
    
    for (int note = 0; note< elemnts;note++){
    tone (speakerOut, melody[note]);
    delay(duration[note]);
    noTone (speakerOut);}} 
    
    
// DO (C), DO#, RE (D), RE#, MI (E), FA (F), FA#, SOL, SOL#, LA (A), LA#, SI (B) //operacion en word (robotica) //C4 = es el DO central //latina es cuando el DO es la A //notaciĆ³ anotajoma () // teclado de 88 teclas y 7 octaves // C1 = 16.35Hz ....... B9 = 15804.26Hz