Star Wars Returns

This commit is contained in:
Adrien Bourmault 2019-05-07 17:14:13 +02:00
parent 4041ad4032
commit 64255d5fc7
1 changed files with 11 additions and 10 deletions

View File

@ -72,25 +72,26 @@ void IoDoTone(uint tone, uint time)
void IoDoStarWars(void)
{
struct Note {
uint tone;
uint time;
};
struct Note Score[36] = { {440, 200}, {110, 200}, {440, 200}, {110, 200},
{440, 200}, {110, 200}, {349, 140}, {110, 100},
{523, 60}, {110, 100}, {440, 200}, {110, 200},
{349, 140}, {110, 100}, {523, 60}, {110, 100},
{440, 200}, {110, 200},
struct Note Score[40] = { {440, 200}, {110, 200}, {440, 200}, {110, 200},
{440, 200}, {110, 200}, {349, 140}, {87, 100},
{523, 60}, {87, 100}, {440, 200}, {110, 200},
{349, 140}, {87, 100}, {523, 60}, {87, 100},
{440, 200}, {110, 200}, {440, 200}, {110, 200},
{659, 200}, {110, 200}, {659, 200}, {110, 200},
{659, 200}, {110, 200}, {698, 140}, {110, 100},
{523, 60}, {110, 100}, {415, 200}, {110, 200},
{349, 140}, {110, 100}, {523, 60}, {110, 100},
{440, 200}, {110, 200}
{659, 200}, {87, 200}, {698, 140}, {87, 100},
{523, 60}, {87, 100}, {415, 200}, {87, 200},
{349, 140}, {87, 100}, {523, 60}, {87, 100},
{440, 200}, {110, 200}, {110, 200}, {110, 200}
} ;
for (int i=0; i<36 ; i++) {
for (int i=0; i<40 ; i++) {
IoDoTone(Score[i].tone, Score[i].time);
}
}