To embed a single Midi file,
Insert the following HTML code in the <BODY> section of the page:
<embed src=”your_midi_file.mid” autostart=”true” hidden=”true” loop=”true“>
With a WAV or MP3 file:
<embed src=”your_wave_file.wav” autostart=”true” hidden=”true” loop=”true“>
or
<embed src=”your_mp3_file.mp3” autostart=”true” hidden=”true” loop=”true“>
The sound file starts on page load, it’s hidden and repeats. To change this so that it only plays once, change:
loop=”true” to loop=”false“
Allowing users to control the music (using the control console)
With Midi files:
<embed src=”your_midi_file.mid” height=”24″ width=”145” autostart=”false” controls=”smallconsole” loop=”true”>
With WAV or MP3 files:
<embed src=”your_wave_file.wav” height=”24” width=”69” autostart=”false” loop=”true”>
<embed src=”your_wave_file.wav” height=”24″ width=”275” autostart=”false” loop=”true“>