Fandom

Petit Computer Wiki

BGMSETD (Command)

915pages on
this wiki
Add New Page
Comments0 Share

V1Edit

BGMSETD is not a command in SmileBasic V1.

V2Edit

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).

V3Edit

No information on SmileBasic V3.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.