Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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

  • #3
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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( ! )">

  • #6
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #7
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #8
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #9
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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( ! )">

  • #11
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)....

  • #12
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh well. I guess. Btw, if those who dont have real plugin have to download rite?

    How about windows media?

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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( ! )">

  • #14
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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( ! )">


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •