Top | Up (Music) | < Previous (PAGE NAME) | Next (PAGE NAME) >
Play music.
BGMPLAY song%
BGMPLAY track%, song% [, volume%]
BGMPLAY mml$
Parameter | Description |
---|---|
track% | 0-7. Default: 0 |
song% | Built in songs: 0-42. Custom songs: 128-255 |
volume% | 0 - 127. Default: 64 |
mml$ | MML to play. Equivilant to BGMSET 255,mml$:BGMPLAY 255 |
BGMPLAY 3
WAIT 60
BGMSTOP
BGMPLAY 0,26
BGMPLAY 1,42 'play 2 songs at the same time
WAIT 120
BGMSTOP
BGMPLAY ":0 CDEFG :1 @3 CCCCC" 'play MML
Fix volume when BGM variables are used 1
Volume 0 works 2
Fixed bug where only 4 tracks could be played at the same time 3
SB no longer crashes when a very long string is passed to BGMPLAY 4
1 SmileBoom, “Fixes in Ver. 3.0.2 (January 7, 2015)” http://smilebasic.com/en/debug/archive/
2 SmileBoom, “Fixes in Ver. 3.1.0 (March 4, 2015)” http://smilebasic.com/en/debug/archive/
3 SmileBoom, “Fixes in Ver. 3.2.0 (June 17, 2015)” http://smilebasic.com/en/debug/archive/
4 SmileBoom, “Bug Fixes in Ver. 3.5.2 (June 24, 2017)” http://smilebasic.com/en/debug/archive/
Top | Up (Music) | < Previous (PAGE NAME) | Next (PAGE NAME) >