BGMSETD (Command)

is a command for specifying songs that can be played with the  command.

has two parameters. The first is the "song number", between 128 and 255 inclusive. The second is either a label, or a string which represents a label.

The system will effectively read string values from  lines following the label, until it encounters a numerical value. These strings will be concatenated and interpreted as MML. The resulting music will be saved to the specified song number.

For instance, the following program will play the first few notes of Mary Had A Little Lamb: