Imperial March Tones on a simon

Nearly done with the UI on a Simon game… my next step is an array.
[R,R,R, G,Y, B,… 66 etc]
that contains the 66 tones to play the Imperial March.
Apparently, there are more than four tones, but I know I’ve heard it played before. Hasbro is even releasing a new Vader addition. My question is, does anyone know the correct sequence of tones… this link may give me a guide for timing, but it has more than just four tones, so I’m not sure what to translate them to.

http://processors.wiki.ti.com/index.php/Playing_The_Imperial_March
I think this is Arduino, but I’m working in javascript, just a good reference point and best I could find so far.
just need like
Red
Red
Red
Blue
Yellow
Blue

{
    beep(a, 500);
    beep(a, 500);
    beep(a, 500);
    beep(f, 350);
    beep(cH, 150);
    beep(a, 500);
    beep(f, 350);
    beep(cH, 150);
    beep(a, 650);
 
    delay_ms(150);
    //end of first bit
 
    beep(eH, 500);
    beep(eH, 500);
    beep(eH, 500);
    beep(fH, 350);
    beep(cH, 150);
    beep(gS, 500);
    beep(f, 350);
    beep(cH, 150);
    beep(a, 650);
 
    delay_ms(150);
    //end of second bit...
 
    beep(aH, 500);
    beep(a, 300);
    beep(a, 150);
    beep(aH, 400);
    beep(gSH, 200);
    beep(gH, 200);
    beep(fSH, 125);
    beep(fH, 125);
    beep(fSH, 250);
 
    delay_ms(250);
 
    beep(aS, 250);
    beep(dSH, 400);
    beep(dH, 200);
    beep(cSH, 200);
    beep(cH, 125);
    beep(b, 125);
    beep(cH, 250);
 
    delay_ms(250);
 
    beep(f, 125);
    beep(gS, 500);
    beep(f, 375);
    beep(a, 125);
    beep(cH, 500);
    beep(a, 375);
    beep(cH, 125);
    beep(eH, 650);
 
    //end of third bit... (Though it doesn't play well)
    //let's repeat it
 
    beep(aH, 500);
    beep(a, 300);
    beep(a, 150);
    beep(aH, 400);
    beep(gSH, 200);
    beep(gH, 200);
    beep(fSH, 125);
    beep(fH, 125);
    beep(fSH, 250);
 
    delay_ms(250);
 
    beep(aS, 250);
    beep(dSH, 400);
    beep(dH, 200);
    beep(cSH, 200);
    beep(cH, 125);
    beep(b, 125);
    beep(cH, 250);
 
    delay_ms(250);
 
    beep(f, 250);
    beep(gS, 500);
    beep(f, 375);
    beep(cH, 125);
    beep(a, 500);
    beep(f, 375);
    beep(cH, 125);
    beep(a, 650);
    //end of the song
 
}

]

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.