Use "create" to create a sound object and in a routine specify
which sound to play and other manipulations.
To play a sound, it must be in mp3 format for maximum portability. Some browsers may have issues with sound fade effects.
_all rather than a sound name can be used for: play, mute, unmute, pause, and unpause.
create sound from "music1.mp3" as sndMusic1 where repeat=3 volume=0.4 fadein=500 end create sound from "music2.mp3" as sndMusic2 where repeat=2 volume=0.8 fadeout=1000 end create routine as ChangeMusic stop sound sndMusic1 where fadeout=1200 play sound sndMusic2 // no parameters supported pause sound sndMusic2 where fadeout=500 unpause sound sndMusic2 where fadein=500 mute sound sndMusic2 where fadeout=500 unmute sound sndMusic2 where fadein=500 end