Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-20-2004, 05:36 PM   PM User | #1
suppaman
New Coder

 
Join Date: Jan 2004
Location: Malaysia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
suppaman is an unknown quantity at this point
Music for html(midi)

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!

Regards
Winson
suppaman is offline   Reply With Quote
Old 01-20-2004, 10:10 PM   PM User | #2
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
For IE you would do this...
Code:
<bgsound loop="0" src="something.mid" />
But it isn't w3c compliant. For Netscape, Moz, etc, you would do this...
Code:
<object data="soundfile.mid" codetype="audio/mid"> </object>
BTW, I got the answer here.

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...

-Rich
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-21-2004, 03:03 AM   PM User | #3
suppaman
New Coder

 
Join Date: Jan 2004
Location: Malaysia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
suppaman is an unknown quantity at this point
Thats great. So I must include both object tag and bgsound tag in order both to work right?

And
Where can I get midi sounds? Because I think it is small size, good for webpage supposed. If not, any other recommendations?

Regards.
suppaman is offline   Reply With Quote
Old 01-21-2004, 11:28 AM   PM User | #4
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
Yes, well, at least to work in most browsers...

As far as where to find files, I'm sure Google 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

Rich
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-21-2004, 11:48 AM   PM User | #5
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
If you do, please give the user an OFF button to that horrible cheap midi crud...
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 01-21-2004, 05:08 PM   PM User | #6
mely
New to the CF scene

 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
mely is an unknown quantity at this point
Try this for music

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.
mely is offline   Reply With Quote
Old 01-21-2004, 06:38 PM   PM User | #7
suppaman
New Coder

 
Join Date: Jan 2004
Location: Malaysia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
suppaman is an unknown quantity at this point
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.
suppaman is offline   Reply With Quote
Old 01-21-2004, 08:00 PM   PM User | #8
mely
New to the CF scene

 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
mely is an unknown quantity at this point
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...

http://www.dynamicdrive.com/dynamici...er/mplayer.htm


Hope this helps.
mely is offline   Reply With Quote
Old 01-21-2004, 11:53 PM   PM User | #9
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
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.).

-Rich
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-22-2004, 03:23 AM   PM User | #10
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
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.
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 01-22-2004, 08:55 AM   PM User | #11
mely
New to the CF scene

 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
mely is an unknown quantity at this point
Hey Zoobie!...

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)....
mely is offline   Reply With Quote
Old 01-22-2004, 09:43 AM   PM User | #12
suppaman
New Coder

 
Join Date: Jan 2004
Location: Malaysia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
suppaman is an unknown quantity at this point
Oh well. I guess. Btw, if those who dont have real plugin have to download rite?

How about windows media?
suppaman is offline   Reply With Quote
Old 01-23-2004, 02:24 AM   PM User | #13
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
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.
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 01-24-2004, 11:08 AM   PM User | #14
suppaman
New Coder

 
Join Date: Jan 2004
Location: Malaysia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
suppaman is an unknown quantity at this point
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
suppaman is offline   Reply With Quote
Old 01-25-2004, 07:29 PM   PM User | #15
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
Depends on which code you're using. This thread's all over the place. Let's look at what you have so far.
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:01 AM.


Advertisement
Log in to turn off these ads.