/*
Musique Pac-Man
Mettre un "task main()" dans ce programme avec Precedes(piste1,piste2);
ou faire un #include de ce programme
*/
#define VOL 1
task piste1() {
PlayToneEx(494,50,VOL,0);
Wait(150);
PlayToneEx(988,50,VOL,0);
Wait(150);
PlayToneEx(740,50,VOL,0);
Wait(150);
PlayToneEx(622,50,VOL,0);
Wait(150);
PlayToneEx(988,50,VOL,0);
Wait(70);
PlayToneEx(740,60,VOL,0);
Wait(230);
PlayToneEx(622,200,VOL,0);
Wait(290);
PlayToneEx(523,60,VOL,0);
Wait(150);
PlayToneEx(1046,60,VOL,0);
Wait(150);
PlayToneEx(784,60,VOL,0);
Wait(150);
PlayToneEx(659,60,VOL,0);
Wait(150);
PlayToneEx(1046,60,VOL,0);
Wait(80);
PlayToneEx(784,50,VOL,0);
Wait(220);
PlayToneEx(659,210,VOL,0);
Wait(300);
PlayToneEx(494,60,VOL,0);
Wait(150);
PlayToneEx(988,60,VOL,0);
Wait(150);
PlayToneEx(740,60,VOL,0);
Wait(150);
PlayToneEx(622,60,VOL,0);
Wait(150);
PlayToneEx(988,60,VOL,0);
Wait(80);
PlayToneEx(740,50,VOL,0);
Wait(220);
PlayToneEx(622,210,VOL,0);
Wait(300);
PlayToneEx(622,60,VOL,0);
Wait(80);
PlayToneEx(659,50,VOL,0);
Wait(70);
PlayToneEx(698,60,VOL,0);
Wait(150);
PlayToneEx(698,60,VOL,0);
Wait(80);
PlayToneEx(740,50,VOL,0);
Wait(70);
PlayToneEx(784,60,VOL,0);
Wait(150);
PlayToneEx(784,60,VOL,0);
Wait(80);
PlayToneEx(831,50,VOL,0);
Wait(70);
PlayToneEx(880,60,VOL,0);
Wait(150);
PlayToneEx(988,130,VOL,0);
Wait(150);
}
task piste2() {
PlayToneEx(247,130,VOL,0);
Wait(450);
PlayToneEx(494,130,VOL,0);
Wait(150);
PlayToneEx(247,130,VOL,0);
Wait(450);
PlayToneEx(494,130,VOL,0);
Wait(150);
PlayToneEx(262,130,VOL,0);
Wait(450);
PlayToneEx(523,130,VOL,0);
Wait(150);
PlayToneEx(262,130,VOL,0);
Wait(450);
PlayToneEx(523,130,VOL,0);
Wait(150);
PlayToneEx(247,130,VOL,0);
Wait(450);
PlayToneEx(494,130,VOL,0);
Wait(150);
PlayToneEx(247,130,VOL,0);
Wait(450);
PlayToneEx(494,130,VOL,0);
Wait(150);
PlayToneEx(370,130,VOL,0);
Wait(300);
PlayToneEx(415,130,VOL,0);
Wait(300);
PlayToneEx(466,130,VOL,0);
Wait(300);
PlayToneEx(494,130,VOL,0);
Wait(150);
}