The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to add midi
calvin
post Sep 15 2006, 11:03 AM
Post #1





Group: Members
Posts: 9
Joined: 15-September 06
Member No.: 137



How do i add a midi file to an html document?
i tried this in notepadd ++ but it didnt turn colors like valid codes and i tried it but it did nothing
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 15 2006, 11:11 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Hi smile.gif

You can link to a sound file the same way as you link to any file.
<a href="calvin.mid">Listen to...</a>

If you want it to play in the background you have to use the non standard EMBED.
http://www.htmlhelp.com/faq/html/effects.html#bg-sound
http://www.webreference.com/js/column20/embed.html
I wouldn't bother with BGSOUND that the FAQ mentions though. The last browser that needed it was IE 2 IIRC.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 15 2006, 12:13 PM
Post #3


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



QUOTE


That's a pretty funny page, I get a popup telling me my browsers can't play sound . . . ha ha ha imagine that. I'd stay away from those intricate javascript approaches unless you want to make work for yourself.

---------

For a midifile you might consider something simple like this. Note this will not validate because embed tags uselful as they are have become politically incorrect.

midi with controller
midi with hidden controller

Note: you'd have to test this on MS platforms.
Note2: May throw off scary IE7 activeX warnings.



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 15 2006, 12:17 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



The page itself may use JavaScript but the article is about EMBED.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 15 2006, 12:21 PM
Post #5


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



I just can't take it too seriously when it gives me that warning mad.gif ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 15 2006, 03:29 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You just want an excuse to use more smilies, don't you? tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 15 2006, 04:09 PM
Post #7


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



I'm sorry pandy, I would have responded sooner, but I was busy designing my animated avatar.

Gotta go now, need to work on my karaoke eminem perfomance.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 07:24 PM