Generic MIDI file player

Below is an example of a generic MIDI File player. It implements some of the basic functions in sequenceXtra, like Mute/Unmute tracks, Change Tempo, Transpose, Play and Stop. You choose MIDI files by clicking the up/down arrows beside the"SONG" label. The MIDI files that the player plays can be located anywhere on the Internet. The player locates the files by getting the value of the parameter "sw1" in the object or embed tag that embeds the dcr, by usingthe Lingo call externalParamValue("sw1").

The object/embed tags that contain this particular dcr looks like this:

         <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0"
id=MIDIPlayer width=406 height=71 name="MIDIPlayer">
<param name=sw1 value="bossa.mid,ballad.mid">
<param name="swLiveConnect" value="true">
<param name="SRC" value="MIDIPlayer.dcr">
<embed src="MIDIPlayer.dcr" sw1 = "bossa.mid,ballad.mid" width=406 height=71
swLiveConnect="true" type="application/x-director"
pluginspage="http://www.macromedia.com/shockwave/download/" name="MIDIPlayer">
</embed>
</object>
The doubled list of MIDI files is soley for compatibility reasons. Some browsers use the object tag while others use embed.