This needs a little help as you will see. Position this tag anywhere in the page that you like. I started out putting them at the bottom, just before the ending </BODY> tag. That way, the little hyphen that shows on the page is not too noticable. Since I discovered the CONTROLS= command, I've been placing the <EMBED> tag toward the top, right after the <BODY> tag. I usually use the "small console," and by putting it at the top, it is ready to be adjusted or turned off by anyone who surfs to your page. There is also a "large console" that I don't use much. I'm still playing with the <EMBED> tag to find out how far it will stretch. Other commands are --
VOLUME=(a number)
AUTOSTART=(true or false)
WIDTH=(a number that is the width of the console)
HEIGHT=(a number that is the height of the console)
LOOP=(true or false, or a number for how many times to play)
I usually set VOLUME=5 (and sometimes as high as 9 or 10). If you don't set the volume, or set it too high, the gentle reader may get blasted.
Remember, most 'puters are equipped with volume control; however, mine for example uses Mozart control, and I do not usually have the volume box loaded. So when I hit a page that is too loud, I have to back out and load Mozart. Meanwhile my teensy granddaughterbaby starts crying, and I feel like committing a grave act of felonious . . . well, you get the pic, Nick!
AUTOSTART=true will start the sound automatically whenever someone loads your page.
LOOP=false will allow the tune to play only once. Set LOOP=true, and the music will play over and over until the reader either leaves the page, or stops the music with the console. And if, for example, you set LOOP=3, your midi file will play three times, then stop.
So now your <EMBED> tag will look something like this --
<EMBED SRC="closetou.mid" CONTROLS=smallconsole WIDTH=144 HEIGHT=14 AUTOSTART=true LOOP=true VOLUME=5>
Note the WIDTH and HEIGHT for the small console. When you use the command, CONTROLS=largeconsole, your WIDTH=144, and your HEIGHT=60.
And now your <EMBED> tagged web page will sound like this --
AND NOW . . . for a neat little trick I'm still learning about. You can embed TWO midi files on a page! So far I have gotten it to work like this --
<EMBED SRC="bridgoer.mid" WIDTH=5 HEIGHT=1 AUTOSTART=true LOOP=true
VOLUME=7>
<EMBED SRC="closetou.mid" CONTROLS=smallconsole WIDTH=144 HEIGHT=14
AUTOSTART=false LOOP=true VOLUME=5>
And this is what happens --
Last but not least, you might want to know where to get some midi files. Almost all of mine came from this story page -- (I call it . . . )
Now, it's YOURS. Something for everyone there. Enjoy!