Adding Midi Files to your Webpage
You want a webpage with music that still loads fast? Adding a midi file to your webpage may be for you. People email me with the question, andquot;How do I put midi files on my page?andquot; Here is the code of an embedded midi file I have on one of my webpages.I use EMBED src=andquot;midifile.midandquot; width=145 height=30 autostart=true loop=true surrounded by brackets
In the example, the midi file (midifile.mid) is the name of the midi file you have saved on your server. Width and height determine the size of the media player displayed on the page. If you do not want a player to display on your web page but want the music to play, use a width and height of 1 or 2 (0 width and height sometimes causes problems with some players).
autostart=true starts the file playing when page is loaded, you can also have autostart=false
To have the music playing in a loop use loop=true – loop=false will play a file once, then stop
You can play midi files in Internet Explorer, or other browsers. You can also select which program will play the midi file. In Internet Explorer, this is controlled by the andquot;Programsandquot; tab (under andquot;Toolsandquot;, then andquot;Internet Optionsandquot;). Go to Internet Programs/Set Programs/Associate a File Type or protocol with a program/. In that displayed list of file extensions, look for andquot;.mid or .midiandquot; in the andquot;Nameandquot; column. You can see the andquot;Current Defaultandquot; column and choose what program will be used when you click on a MIDI file on a www page.
Also, for andquot;zippedandquot; files, If you have a recent version of andquot;Winzipandquot;, the zipped file can be played without a lot of trouble if you set up Winzip to be the application to start for .zip files. Then, you just click the mid file when Winzip show the contents, and it plays!
Also, If you set up your Helper Apps to andquot;playandquot; the midi song when selected with a particular program, you can always save it (download it) instead of playing it by right clicking on a file and choosing the andquot;Save Target asandquot; to save the file to your hard drive. That way, you don’t have to delete your andquot;Helper appsandquot; entry for .mid files if you want to save it or have to hunt through your Temporary Internet Files directory, to find the file (which might have a temp name, like andquot;GK8DETHNandquot; or something)