This works, but there's actually a much nicer way to make music in SmileBASIC!
Try running this:
BGMPLAY "CDEFGAB<C"
This uses Music Macro Language, or MML. If you type in "MML" and press the ? button, it will give you information on all the commands you can use.
You can also use BGMSET or BGMSETD to assign MML to a BGM number, and then play it back on demand with BGMPLAY #.
0そうだね 未プレイ