|
Left Click anywhere on a blank part of the page for a popup menu!
Mikey and Minnie's Website Obedience School teach your site to sit
Welcome to section 5.
If you've come this far along then you are beginning to realize that virtually anything is possible in writing a thoughtful webpage.
Not only will you be able to give your surfers some indepth info regarding any topic imaginable, but entertain them as well.
©2000 All rights reserved.
Section 5. Sounds, to Embed or not to Embed
A Controversy
When it comes to multimedia embedding on websites I take a cautious approach, and these are the reasons why:
- Copyright of the sound must be taken into account, whether midi, wav, mpeg, or realaudio encoded music. You can bet if the sound is not homemade my yourself it belongs to someone else.
- Automatic playing of most sound or video files takes a huge chunk of memory and cpu time, and will slow your site down to a crawl.
- The only reason to embed sound is to wow your visitor, and what you like for sounds, especially music styles, may directly influence people to stay or to leave.
- If pre-loaded, is there an option (in an obvious place) to turn it off? If not, the only course is to exit the site.
Browser Compatibility
Netscape and Internet Explorer use different html tags. If you are not concerned and want only to use the Netscape or MSIE statement then copy the appropriate one over. All people using "the other browser" will not hear a sound.
The width and height statements are for the console containing the play and stop controls. In this case, because the sound is only a couple of seconds long they are turned off and the sound is only played once (loop is turned off).For Netscape use the following:
<EMBED SRC="yoursoundfile.wav" AUTOSTART=TRUE LOOP=1 WIDTH=0For MSIE use the following:
HEIGHT=0></EMBED><bgsound src="yoursoundfile.wav" loop=1>The following is a script which will check the browser being used and it will load the appropriate tags (statement), forcing compatibility. It is done using Javascript and the logical arguments (if, and, or, equals.). However, it is now giving problems in our newer browsers and or plugins......but try it first...<SCRIPT LANGUAGE="JavaScript"> <!--// if (navigator.appName == "Netscape") { document.write('<EMBED SRC="yoursoundfile.wav" AUTOSTART=TRUEThe previous will also work for midi sound files. Be careful of the file's size, anything over 20Kbytes will slow things down, especially if looping the sound, playing it infinitely over and over ad infinitum. Please don't do that. For those who are having trouble with the javascript do the following...copy both the MSIE and Netscape codes over as one entity....the one which doesn't work will just be ignored, and to blazes with the javascript version.
LOOP=1 WIDTH=0 HEIGHT=0></EMBED>') } else { if (navigator.appName == "Microsoft Internet Explorer")
document.write('<BGSOUND SRC="yoursoundfile.wav" LOOP="1">') } //--> </SCRIPT><bgsound src="yoursoundfile.wav" height=54 width=200 autostart=true loop=1> <EMBED SRC="yoursoundfile.wav" autostart=true width=200 height=54 loop=0></EMBED>You can play with the height and width statements to size your console...MIDI or WAV files?
A MIDI file (.mid) is a small encoded file which tells your sound card how to play the music. The better quality your sound card (and its drivers), the better it will sound. All of the actual playing is done by YOUR computer. So far it is impossible to 'record' existing sounds in the MIDI format except with individual instruments plugged into sequencers (digital conversion of analog output information by the instrument).
A WAV file (.wav) is a digital recording of an analog sound or song. It is possible to play your records/cd's/tapes thru your input jack of your sound card and convert it to digital wav file, but not a midi file. Because it also records the ambient sounds and keeps the analog structure the information in a wav file can be as low as 20Kbytes for the word 'hello' to 100 Mbytes for a 5 minute song in stereo. Huge is an understatement. Because this problem of 'huge' has dogged the Web since the beginning several compression schemes have been developed to allow for true sounding music (and video) to be delivered over the internet. The 2 widely accepted schemes won out...Real Audio and MP3. (more on these two 'streamers' further down the page!)
Linking your sound files:
Here is where you give your loyal surfers a choice to listen, perhaps several tunes you want to showcase. I've given you just one example of a link...you must use your head to build your own 'list'.
<A HREF="breakfast.mid">Breakfast in Bed</A>If done correctly...the tune should play...like so...Breakfast in Bed...BTW (by the way...) all examples here are my own creations...one way to not get into trouble re: copyright infringement. Please don't lift without a request to me via email. Thanx.
Real Audio
The greatest asset of Real Audio is that the sound is compressed and can be made to "stream". That means it can play while it is being downloaded without having to wait for the complete file to be cached.
Sound files with the extensions .ram, .ra, .rm are all RealAudio.Please do not embed these file types. The computer will be too busy streaming or downloading to finish loading your site. Usually this format is used to play whole songs, or sound bytes from speeches, and is used mostly by musicians who want to give access of their music over the web. MP3 format sound files do the same, and are considered even better sounding, but are also much larger, usually 2 to 5 Mbytes in size and are prohibitive when being used at a website.
MP3 files are usually for listening/download only and the majority (if you are NOT visiting a musician's site where copyright ownership is openly stated) are ripped-off CD's open to prosecution for copyright infringement. Even you as a 'downloader' will be open to prosecution under the law.
My site contains RealAudio of the music of the Bizzarre Kazoobees, the Croakers, and my own music and have copyright clearance or ownership by these entities and used by permission.
To get the audio to "stream" commonly called (in real audio) "HTTP Livestream" one must build a ram file. This is a text file with the extension .ram. The only text it contains is the complete url of the rm or ra file. No page breaks, no tags whatsoever! Here is a working example:
This goes on your webpage and when clicked on calls the text file, the text file in turn calls the audio file to stream...(loads the RealAudio application)..
<A HREF="blues.ram">"Croaker Blues"</A>text file below (URLs are fictitious), is saved as blues.ram
http://www.fortunecity.com/skyscraper/y2k/500/blues.rm One does exactly the same for streaming mp3 files...save the actual sound file with the .mp3 extension, then build the m3u text file in exactly the same manner as a ram file but save it with the .m3u extension. Careful with mp3's..they are huge files, and for streaming you should make a copy of the high-grade file using 24 bit compression. This lower quality sound is known as lo-fi and streams much better.
<A HREF="fctrut.m3u">"Fortune City Strut"</A>text file below, is saved and uploaded as fcstrut.m3u
http://www.fortunecity.com/skyscraper/y2k/500/fcstrut.mp3 Be careful where you upload your RA or MP3 files, as not all servers are configured to stream these files. - (many can now stream RealAudio, but most are unable to stream mp3's - as in this example.)
The Rules Backgrounds Music Java Compatibility
Main Site Index Ratings System IconsCopyright © 2000 Ed Ladeur,
Eddie Dog2
Box 1353
150 Mile House, BC
Canada, V0K 2G0
ladeur@wlake.com