01-20-2004, 06:36 PM
Hi Guys. I thought of puting a little music in my webpage. Still creating tough. Can anyone give me ideas about coding it?
In addition. do you guys know how to convert mp3/wma to midi? Thanks a lot!
01-20-2004, 11:10 PM
For IE you would do this...<bgsound loop="0" src="something.mid" /> But it isn't w3c compliant. For Netscape, Moz, etc, you would do this...<object data="soundfile.mid" codetype="audio/mid"> </object> BTW, I got the answer here (http://webdesign.about.com/cs/multimedia/ht/htbgsound.htm).
As far as converting mp3 to midi, you can't really-- mp3 is a digital compressed audio format, while midi only carries information (note type and length) and needs some form of note generator (such as your computer sound card's synth) to work.
Hope this helps...
01-21-2004, 04:03 AM
Thats great. So I must include both object tag and bgsound tag in order both to work right?
Where can I get midi sounds? Because I think it is small size, good for webpage supposed. If not, any other recommendations?
01-21-2004, 12:28 PM
Yes, well, at least to work in most browsers...
As far as where to find files, I'm sure Google (http://google.com) can help you there. And for recommendations, I recommend you don't use background music-- the majority of browsers (myself included) find it very annoying ;)
01-21-2004, 12:48 PM
If you do, please give the user an OFF button to that horrible cheap midi crud...:rolleyes:
Um, How about this for music:
------> <p align=center><font size=1><span style=background:black></span><embed align="top" src="http://xsexy1angelx.tripod.com/fabolous_cantletyougo.ram" width="190" height="100" type="audio/x-pn-realaudio-plugin" loop="</htpdiv" autostart="true" controls="all" border="0"> <----
The part where it says :src="http://xsexy1angelx.tripod.com/fabolous_cantletyougo.ram"
just upload your favorite music file to your web and put in the source ...like -http://yourusername.tripod.com/yourmusicfile.wma or mp3 or ram-
an example of what it looks like is at: www.melyrap.com it's at the bottom, and the quality is pretty good, at least its not crappy ringtone sounding.
(I just started this, so it looks like "blah" right now, plus I"m just getting the hang of doing this)
Also, the webpage where I took the music from is pretty good, she has a lot of cool music, but check that it works first.
Hope this helps.
01-21-2004, 07:38 PM
Wow. Thanks. Great man guys
For the play sound how to put controls play and stop only? I don't really know how to put them. Including when the browser when minimise and maximise. (I dont know there is a way or not)....
For mely's point of view, I think it required real player plugin rite? I think? Well his idea is good too.
Ha Ha.... Mely is a "she" not a "he".... :)
Well, yeah, I believe you need real player plug-in, but I'd rather do that than have a midi sounding in the background (midis hurt my ears). With the plug-in you can listen to actual, normal music.
Although , if you need to midi still try this link, it shows you how to put the buttons though using DHTML, but at least it's already written there for ya. Also it includes some songs, and it lets you skip from one song to the next easily and stop and play, etc...
Hope this helps. :thumbsup:
01-22-2004, 12:53 AM
Mely- the only thing with using real audio is that some hosting services (including mine) charge extra to have streaming media. So it's cheaper and just as easy to have an mp3, the problem there being that it takes a little longer to load.
As far as the <embed> tag, it's now depreciated, use the <object> tag instead... it's pretty much the same function.
And suppaman, I think unless you use flash, you're at the mercy of the browser's plug-ins when listening to embedded music (as far as controls like stop/start, etc.).
01-22-2004, 04:23 AM
Your user must have real audio nstalled to here...and even then, it may not work. For example, I went to the page posted above and it said I was missing a plugin to hear the real audio. This is the trubble with real audio...They keep changing their codecs and name every few months. As mentioned, flash is probably the best overall.
If you have the real player plugin and it didnt work when you went to www.melyrap.com, its probably because I was editing back and forth, plus that and the fact that I'm borrowing it from another site because I'm too lazy to upload it. My cheap lil dial up connection takes forever. :)
Though try it now, it should work if you have the plug-in. Still, if it doesn't, oh well.....I'd rather no music than a long slow midi with sentimental music. ha ha.
And Rich, thanks for the info. I have no idea what I'm doing, so any little bit of info here and there helps. Last time when I was doing this kind of stuff was when I was an 8th grader (way back when)....
01-22-2004, 10:43 AM
Oh well. I guess. Btw, if those who dont have real plugin have to download rite?
How about windows media?
01-23-2004, 03:24 AM
Without learning flash, here's what I would do. Since most users surf with IE hands down, I'd use .wav's for a seemless playing of music. Because they're high quality and huge, I'd cut a small section and loop it so it plays over and over. Goldwave is a free editor you can use.
01-24-2004, 12:08 PM
By the way, you guys said that there should be a stop button right? How to make it? The codes? I just wan a simple one that can play and stop midi
For wavs is will the code be the same???
Thanks for your help :)
01-25-2004, 08:29 PM
Depends on which code you're using. This thread's all over the place. Let's look at what you have so far. :D
02-02-2004, 06:01 PM
I see. But anyone can give suggestions?