Petit Computer Wiki
Advertisement

V1[]

BGMSETD is not a command in SmileBasic V1.

V2[]

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

BGMSETD 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 DATA 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:

@SONG
DATA "EDCDEEE"
DATA 0
BGMSETD 128,@SONG
BGMPLAY 128

See also BGMSET (Command).

V3[]

No information on SmileBasic V3.

Advertisement