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, "How do I put midi files on my page?" Here is the code of an embedded midi file I have on one of my webpages.I use EMBED src="midifile.mid" width=145 height=30 autostart=true loop=true surrounded by brackets
midifile.mid is the name of the midi file in the same directory as the webpage. Width and height allow a console to display. If you do not want the player to display on the web page use a width and height of 1 or 2 (0 width and height has caused 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 and loop, loop=false plays a file once.
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 "Programs" tab (under "Tools", then "Internet Options"). Go to Internet Programs/Set Programs/Associate a File Type or protocol with a program/. In that displayed list of file extensions, look for ".mid or .midi" in the "Name" column. You can see the "Current Default" column and choose what program will be used when you click on a MIDI file on a www page.
Some midi files are "zipped" files to make then easy to download. If you are using "Winzip", or another file zip utility program the zipped file can be played without a lot of trouble. Make sure your unzip program is the default application to open .zip files. Then, you just click the mid file when your unzip program show the contents, and it plays!
Also, 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 choosing 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 "GK8DETHN" or something) - 18418
People email me with the question, "How do I put midi files on my page?" Here is the code of an embedded midi file I have on one of my webpages.I use EMBED src="midifile.mid" width=145 height=30 autostart=true loop=true surrounded by brackets
midifile.mid is the name of the midi file in the same directory as the webpage. Width and height allow a console to display. If you do not want the player to display on the web page use a width and height of 1 or 2 (0 width and height has caused 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 and loop, loop=false plays a file once.
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 "Programs" tab (under "Tools", then "Internet Options"). Go to Internet Programs/Set Programs/Associate a File Type or protocol with a program/. In that displayed list of file extensions, look for ".mid or .midi" in the "Name" column. You can see the "Current Default" column and choose what program will be used when you click on a MIDI file on a www page.
Some midi files are "zipped" files to make then easy to download. If you are using "Winzip", or another file zip utility program the zipped file can be played without a lot of trouble. Make sure your unzip program is the default application to open .zip files. Then, you just click the mid file when your unzip program show the contents, and it plays!
Also, 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 choosing 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 "GK8DETHN" or something) - 18418
About the Author:
Midi expert Cliff Odenkirk is a well known internet musician. Webmaster for 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


0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home