Action: Music(filename)

Related Actions: sound
See also: FKiSS, Events, Actions

music(filename)

First defined in: FKiSS2
The music action begins playback of the MIDI filename.
If filename is an empty string, any currently playing MIDI is halted.
Some viewers will produce an error message if you attempt to play a MIDI while another one is already playing so it is a good idea to call music with an empty string before calling music with a MIDI filename.

filename

filename must be an empty string or a filename surrounded by quotation marks.

Example:

;@ music("")          ; First, turn off any music that might be playing.
;@ music("happy.MID") ; Now we can start playing "happy.mid".