Adding Midi Files to your Webpage
Adding midi files to a webpage is an easy way to add music without using large files such as mp3 for background music.
How do I put midi files on my page? is a question I frequently receive. The code I use to embed midi files on some of my web pages is: EMBED src="midifile.mid" 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
loop=true causes the file to play over and over, you can also have loop=false to only play once
Your WWW Browser can access MIDI files (or any files for that matter) and play them within Internet Explorer, or other browsers. In Internet Explorer, you can determine which program will play a midi file on the web Look in the "Programs" tab (under "Tools", then "Internet Options..."). Select "Internet Programs/Set Programs/"Associate a File Type or protocol with a program". You will see a list, look for ".mid or .midi" in the "Name" column. From those entries, you can see the program in the "Current Default" column. This determines what program will be used to play your midi when you click on a MIDI file on a www page.
Also, for "zipped" files, If you have a recent version of "Winzip", 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!
Oh, and another tip: If you set up your Helper Apps to "play" 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 using the "Save Target as" to save the file to your hard drive. That way, you don't have to delete your "Helper apps" 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 "V0ONCDV4" or something). - 23806
How do I put midi files on my page? is a question I frequently receive. The code I use to embed midi files on some of my web pages is: EMBED src="midifile.mid" 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
loop=true causes the file to play over and over, you can also have loop=false to only play once
Your WWW Browser can access MIDI files (or any files for that matter) and play them within Internet Explorer, or other browsers. In Internet Explorer, you can determine which program will play a midi file on the web Look in the "Programs" tab (under "Tools", then "Internet Options..."). Select "Internet Programs/Set Programs/"Associate a File Type or protocol with a program". You will see a list, look for ".mid or .midi" in the "Name" column. From those entries, you can see the program in the "Current Default" column. This determines what program will be used to play your midi when you click on a MIDI file on a www page.
Also, for "zipped" files, If you have a recent version of "Winzip", 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!
Oh, and another tip: If you set up your Helper Apps to "play" 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 using the "Save Target as" to save the file to your hard drive. That way, you don't have to delete your "Helper apps" 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 "V0ONCDV4" or something). - 23806
About the Author:
Cliff Odenkirk is a well known internet musician and midi expert at Midicity.com music and entertainment news as well as an accomplished midi musician. You can find more music news and articles at Midicity.com music and entertainment articles