Files
TempleOS-Rijn/Apps/MusicOrgan/Examples/wisdom.CPP
T
2018-09-08 21:46:02 +02:00

53 lines
1.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//7 has graphics
$SP,"<1>",BI=1$
$SP,"<2>",BI=2$
F64 t0=Beat;
U0 DrawIt(CTask *,CDC *dc)
{
F64 dt=Beat-t0;
Sprite3(dc,20,8,0,$IB,"<1>",BI=1$);
if (8<dt<8.5) {
Sprite3(dc,20,24,0,$IB,"<2>",BI=2$);
Snd((dt-8)*100);
}
}
U0 Song()
{
SettingsPush; //See $LK,"SettingsPush",A="MN:SettingsPush"$
Fs->draw_it=&DrawIt;
Fs->task_end_cb=&SndTaskEndCB;
music_tempo=2.5;
try {
while (!ScanKey) {
t0=Beat;
Play("3eBCsAGAGeAAetGAAsBBBBeCDqDeEA",
"Now, \0I \0su\0 \0u\0 \0ure \0 \0 \0 \0won't \0do\0o\0o\0o \0that \0a\0gain!\n\0 \0 \0");
Play("BCsAGAGeAAetGAAsBBBBeCDqDeEA",
"Now, \0I \0su\0 \0u\0 \0ure \0 \0 \0 \0won't \0do\0o\0o\0o \0that \0a\0gain!\n\0 \0 \0");
Play("2qG3etAAGBB2G3eEFCDqFeAGqC",
" \0 \0 \0 \0 \0 \0 \0Learn\0ing \0from \0 \0my \0 \0mis\0takes.\n\0");
Play("2G3etAAGBB2G3eEFCDqFeAGqC",
" \0 \0 \0 \0 \0 \0 \0Learn\0ing \0from \0 \0my \0 \0mis\0takes.\n\0");
}
} catch
PutExcept;
SettingsPop;
}
Song;
;
%!
!%
%"": Ä []Û¶m’$¥(I²µ¶]ÛçI’4IR)1Ø0lض͵mž$I’dD…I¢$Ù¶mÛ¶Í>OÒ$É@†mÛmóÖmílÛ6Ož$“$I’mÛmk]Û¶ýŸ$I’$I2Q’eÛmÛ¶ú<O’$I’$“dsmÛ&O’$I’a’$I‚mÛf×öO’$E1I Û¶­®m›$I’I’؆mÛmÛmÛæm¶Ïó$I’¤‰Â¶mÛ6¯Û¼Íum“$Ï“$I’¤¢d0lmÛmÛmëæm^mÿôIò$I’$&L¢lÛ¼º&I’$I’$I’$IRIn[·v�M“$I’d’$Ù¶mÛmÛºÎuM’$I’$™$Á 
Û†mÛmÛÚµmž'I’$É$Im›g›<I’$I’$I’T’$É6lÛ¶mÛ¶ÎÛlÛöIš$I’$I’$)RI’$¶­®mÛ$M’'I’$)&I°mÛmÝæš'I2I’`Ù¶mkm“çI’I’ ضmØmÛ:Ï'yž$É$L‚mØmÛm[×mÝæmOò$IŠ%Û6¯ë¼®-I’&I’$I&ذmØmÛm[WŸäIš4I’$I’$ÉdÛF’$I’$I’$I’$É“$`Û¶mÛmÛmÛmÛf*
“dÛn³ëÚ&O’"£0R’$Û¶mÛ¼uó¶nÞæÕ­=“$I’$I1 †mÛ¶mÛLž$I’$I’$“$I°µõ:×5