Music and sounds : Editing and inserting a MIDI file
Contents ]
Eric Chautrand

Embedding a MIDI File for Internet Explorer

Let's work on the son-a02-ie.htm page which will be displayed for Internet Explorer users. The possibilities are more limited.

To embed your MIDI file in your page, add the following instruction to your page between the <BODY> and </BODY> tags:

<bgsound src="Myfile.mid" loop="2">

  • Myfile.mid corresponds to the MIDI file.

  • Make sure you specify the complete path to the midifile if it is not located in the same directory as the HTML page that refers to it.

  • loop="2" demands that the playback occurs twice.

  • You can specify any value you want. With false the playback occurs only once, and with - 1 it loops indefinitely.

There you are! Now you just need to lead your visitor through the browser detection page before letting him appreciate your talents as a musician!