HTML Coding for Music
Files
Midi last updated:
December 27, 2007 10:16 PM
| MIDI
Files | Wav Files | Back to Gemelle's
Sailor Palace |
| HTML Coding for Music Files
|
Section
Contents:
1) Embedding Music Files
2) Backgrouind Music Files
3) Firefox Plug-In Tips and Troubleshooting
4) Other Troubleshooting Questions
Embedding gives your
visitors a chance to turn on and off the music.
If you
simply want to know how to embed your own midi, here's the HTML
code for it:
<embed src ="http://location
& name of your file.mid" LOOP="false" autostart="false"
height="30" width="145" controls="console"></embed>
Midi File Embedded My Only Love
Sample Code for "My
Only Love" :
<embed src="onlylove.mid"
loop="true" autostart="false" height="30"
width="145" controls="console"></embed>
I recommend that you put the
Height at LEAST 30 and WIDTH at LEAST 145. As for
August 02, 2007, it's gives your visitors a good visual control
box to work with.
"true" = "yes"
"false" = "no"
Loop = if you want the
music to repeat itself, choose true or false
AutoStart = music starts as soon as the page loads (like
background music), choose true or false
controls = allows your visitors to control the music with
their own console, choose true or false
That's it, start embedding
your own music!!! Oh by the way, you can't embed music at Neopets,
you can only use background music HTML coding (see below)
Back
To Top
Background Sound = Bgsound
<bgsound
src="http://location of your file & name of your file.mid"
LOOP="false">
Sample Bgsound Code
for "My Only Love" :
<bgsound src="onlylove.mid"
loop="false"></embed>
Loop = if you want the
music to repeat itself, choose true or false
The Bgsound tag only works
in Internet Explorer. If you're visitors are using Firefox or
other browsers, it may not work. An Embed tag works best.
Notice that in a bgsound tag,
it doesn't give your visitors an option to turn the sound on or
off.
Back
To Top
Firefox Quicktime
Plug-In Help and Troubleshooting Guide
I had
a difficult time getting my plug-in/add-on in Firefox to play
my midi files. I had Quicktime
already installed as a plug, my quicktime player would play mp3,
wav, etc ... EXCEPT MIDI files.
I scoured the internet for
info and I have compiled a list of instructions to help you out.
I had to tweak the original instructions a bit to make it work
for Quicktime
7.2.
Quicktime 7.2 (Original
Quicktime 6.5 Guide for Windows and Firefox)
Step 1:
* Close all instances of Firefox
* Launch Quicktime
* Go to Edit > Preferences > Quicktime Preferences
* Select "File Types" Tab
* Enable the file types you wish Quicktime to handle (such as
MP3, MIDI, WAV, etc.). Do not enable Flash.
* Click "OK"
Step 2:
* Select "Browser" Tab
* Click "Mime Settings"
* Enable the file types you wish Quicktime to handle (such as
MP3, MIDI, WAV, etc.). Do not enable Flash.
* Click "OK"
Step 3 (optional):
* Select "Streaming" Tab
* Choose the connection that best matches your current Internet
connection speed
* You may also check "Instant-On" if you wish. I found
that to be helpful.
* Click OK
I had to repeat the steps three
times to make sure my Quicktime Player saved the settings. (I
had McAfee running the background, so I had to repeat the steps
a bit)
A reboot of my computer also
helped confirm the settings.
I re-launched my Firefox and
now all is well.
If you're still having trouble,
open your FireFox browser and type the following in your Address
Bar Box: about:plugins
It should list all the plug-ins
available to your FireFox browser. It should also contain the
plug-in for MIDI:

Hope this helps. If you still
need more assistance, refer to the original instructions
by clicking here.
Back
To Top
Other Troubleshooting
Questions
"I
read over your embed tutorial, and when I embeded 'Alan's Flute
Music 1' from your midi section, the music came out nothing like
what you have. I do not have the Pro version of Quicktime to simply
download it: how may I obtain an embeddable version of which comes
out at your quality?" asked by Eric H. on September 21,
2007
My answer to Eric:
Hi Eric,
I only have the standard free quicktime on my computer. I didn't
buy the pro version.
I understand the issue you're having. That happens a lot when
I embed my own midi files. They just sound different when played
on a webpage plugin as opposed to hearing it with winamp, windows
media player, quicktime, etc.
The issue comes down to:
1) How the original author composed the midi file;
2) What type of browser your using (ie, firefox, opera, etc);
3) What version of quicktime or music plug-ins are being used
when a visitor plays the song on your webpage.
Any of those 3 issues could affect the playback of the song on
a webpage.
I have heard my midi files change over time as I upgrade from
Internet Explorer 3.0 to 7.0. The same midi files just sounds
different with each browser version. Just like the midi files
sound different from cell phone to cell phone as ringtones.
That's why I have so many different versions of the same song.
It's because I don't know which midi file will work for the most
popular browser and plugin as technology changes and progresses.
Hope that answers your question Eric.
Gemelle
of Gemele.com
Back
To Top