和《童话》一样,都是照着曲谱翻译的。
程序源代码如下:
print "----------------"
PRINT "PAL4 Music"
print "----------------"
PLAY "t200o4a2o4cd e1 egec d1 o4a2o4ce d2c2 o4a1 g1"
PLAY "a2o4cd mle2emsg agec d1 o4a2o4ce d2c2 o4mla1g1"
PLAY "p4p4mso4ed e2eo4a o4mld2dmsc8o4b8 mlaa8msb8ag e2eg o4c2o4eg b2ag"
PLAY "mla2amso4e d2ed e2eo4a o4mld2d msc8o4b8 mlaa8msb8ag e2eg o4c2o4eg"
PLAY "o4mldd8mse8do4g a1 mlb1 b2msgea1"
PRINT "Thank you!"
PRINT "PAL4 Music"
print "----------------"
PLAY "t200o4a2o4cd e1 egec d1 o4a2o4ce d2c2 o4a1 g1"
PLAY "a2o4cd mle2emsg agec d1 o4a2o4ce d2c2 o4mla1g1"
PLAY "p4p4mso4ed e2eo4a o4mld2dmsc8o4b8 mlaa8msb8ag e2eg o4c2o4eg b2ag"
PLAY "mla2amso4e d2ed e2eo4a o4mld2d msc8o4b8 mlaa8msb8ag e2eg o4c2o4eg"
PLAY "o4mldd8mse8do4g a1 mlb1 b2msgea1"
PRINT "Thank you!"
已编译的程序下载:
PAL4Music.rar
里面包含三个程序PAL4_1.exe,PAL4_2.exe,PAL4_3.exe,三种不同风格,其中PAL4_2和PAL4_3和上面的代码略有不同。