473,387 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MIDI Files in HTML/Javascript

How exactly does HTML/Javascript handle playing midi files?

Does it have a player imbedded in it?

Or does it borrow from the computer's midi player?

How could you make a webpage play certain chosen notes via midi?

Is there an existing library for such a thing?

Sep 12 '06 #1
9 3462
TC

outstretchedarm wrote:
How exactly does HTML/Javascript handle playing midi files?

Does it have a player imbedded in it?

Or does it borrow from the computer's midi player?

How could you make a webpage play certain chosen notes via midi?

Is there an existing library for such a thing?
Google?

http://groups.google.com/group/comp....t=0&scoring=d&

TC (MVP MSAccess)
http://tc2.atspace.com

Sep 12 '06 #2
ASM
outstretchedarm a crit :
How exactly does HTML/Javascript handle playing midi files?
Browsers can't play midi files, they need a plug-in.
Only NetsCape (in old versions) came with an AudioLife plug-in
you could address to it via JS.
(only to start, stop, pause sound and/or play a file or an other one,
all files embedded in the page)

Today you have to do with a lot of plug-ins able to play midi.
One of them is QuickTime (with it's own js functions working sometimes).
Does it have a player imbedded in it?
No player in javascript.
(nothing at all in javascript to act on physical element (HD, system,
cook, car, boat, children, dog ...))
Or does it borrow from the computer's midi player?
Which computeur's midi player ? what does that mean ?
(hope you don't mean sound card ?)
How could you make a webpage play certain chosen notes via midi?
muy mucho difficult

I suppose you can create a special midi-file for this note
(which instrument ?)
then to play it in loop
(don't forget the console for pause start stop buttons)

Something not too much update :

<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
Is there an existing library for such a thing?
You have to know with what application (or plug-in) you want to work.
--
Stephane Moriaux et son [moins] vieux Mac
Sep 12 '06 #3
I'm trying to write a pretty basic HTML based application.

I would like to user to be able to push a button that says "C minor"
then have the browser sound the three notes in that chord: C, Eb, and G

or, if they want to put their own chords together, they could, then
press a button to audition the chord they have created.

What plugin would you recommend that could enable me to embed little
buttons in my page that could do this?

Sep 12 '06 #4

ASM написав:
outstretchedarm a écrit :
How exactly does HTML/Javascript handle playing midi files?

Browsers can't play midi files, they need a plug-in.
Only NetsCape (in old versions) came with an AudioLife plug-in
you could address to it via JS.
<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
IE also can play MIDIs using <bgsoundtag.

Val Polyakh
http://trickyscripter.com

Sep 12 '06 #5
sc********@gmail.com wrote:
ASM написав:
>outstretchedarm a écrit :
>>How exactly does HTML/Javascript handle playing midi files?
Browsers can't play midi files, they need a plug-in.
Only NetsCape (in old versions) came with an AudioLife plug-in
you could address to it via JS.
<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
IE also can play MIDIs using <bgsoundtag.
Although - if you're seriously considering playing background sounds on
your webpage, I'd recommend using history.back() instead. The end result
is the same, and your users will be far less annoyed.

--
Trond Michelsen
Sep 12 '06 #6
ASM
sc********@gmail.com a écrit :
ASM написав:
><embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
IE also can play MIDIs using <bgsoundtag.
Only IE <4.5 needs <bgsoundtag

<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
<bgsound>loop=true</bgsound>

<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true
name="s_la" javascritEnabled MASTERSOUND
mime-type="x-audio/midi" bgsound>

And never a tag could be enough to play a sound :-)

Perhaps tomorrow in html 7 and IE.19/Fx.25
<guitar lang="fr">la</guitar>
<piano lang="fr" style="forte: 4$;">si</piano>

? ? ?

--
Stephane Moriaux et son [moins] vieux Mac
Sep 12 '06 #7

ASM написав:
sc********@gmail.com a écrit :
ASM написав:
<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
IE also can play MIDIs using <bgsoundtag.

Only IE <4.5 needs <bgsoundtag

<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true>
<bgsound>loop=true</bgsound>

<embed src="la.mid" height=60 width=154 autoplay=false
autostart=false control=true controller=true loop=true
name="s_la" javascritEnabled MASTERSOUND
mime-type="x-audio/midi" bgsound>

And never a tag could be enough to play a sound :-)
It is enough for any IE to use only bgsound tag:
<bgsound src="/music/kelise.mid" loop="-1" />

And I'me sure Flash is the best solution to play sounds (but not MIDI
unfortunately :( )
I Java is good solution too (it can play MIDI)
Perhaps tomorrow in html 7 and IE.19/Fx.25
<guitar lang="fr">la</guitar>
<piano lang="fr" style="forte: 4$;">si</piano>
HTML 4.01 was a last HTML ever - now only XHTML evolves.
I hope that all browsers will be 200% standart compilant and have loads
of features in that versions, but we live in today, not tomorrow =)

Sep 12 '06 #8
ASM
sc********@gmail.com a écrit :
>
And I'me sure Flash is the best solution to play sounds (but not MIDI
unfortunately :( )
I love this little mp3 player DewPlayer that loads sound file(s) only on
demand (push button) :
1st version :
http://www.estvideo.net/dew/index/2005/02/16
versions 1.1 1.2 :
http://www.estvideo.net/dew/index/20...layer-reloaded
version 1.4 :
http://www.estvideo.net/dew/index/20...5-dewplayer-14
http://www.estvideo.net/dew/index/20...layer-14-multi
version 1.5 :
http://www.estvideo.net/dew/index/20...-dewplayer-1-5
http://www.alsacreations.fr/?dewplayer
Pages are in french, but there is no real difficulty to code.

My problem is I don't find JS to drive Flash.
--
Stephane Moriaux et son [moins] vieux Mac
Sep 12 '06 #9
does anyone know how to make JS make flash movies happen?

Sep 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Max M | last post by:
If anybody is interrested in Midi, but are not on the Python Midi list, I will just notify that I have released the first version of a high level midi package for Python. It is fully functional....
2
by: Mad Scientist Jr | last post by:
any sample code or information would be most appreciated i have been wanting to learn MIDI programming but would rather learn it in my current language (either vb.net or c#)
11
by: Kuba Araszkiewicz | last post by:
Hello! I have to write a program, which would convert midi files to notes, notes to midi files and which would make one MIDI file from two different. I'm totally lame in C (and any other...
20
by: Stephen Kellett | last post by:
Hi Folks, How can I play midi and/or audio files using JavaScript? I'm hoping there are some calls/APIs I can use that I am unaware of. My JavaScript book from O'Reilly seems rather lacking in...
4
by: sreekant | last post by:
Hi folks I hope someone here might be able to help. I scavenged some info and even code from the net and am trying to write a module that reads a text file and spits out a midi file. So far I...
6
by: dieselmachine | last post by:
Hey, I've been searching for info on this for days now, but to no avail. I'm starting to think it's impossible, but anyway! I've coded a little virtual keyboard, which has two octaves worth of...
6
by: shror | last post by:
i want to add a midi file to my pages and i want to put two radio buttons so that on is on and the other is off so that the users can start or stop the file playing by choosing one of the radio...
0
by: Sonicfreak17 | last post by:
OK... ive been EVERYWHERE online to find a way to do this: i want to be able to make .wav files with midi data- not so much premade midi files- but just sending on the fly midi notes and recording...
6
by: Massi | last post by:
Hi everyone, I'm searching for "something" which allows me to write scripts which handle midi files. I'm totally a newbie in audio manipulation, therefore any suggestion or link related to this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.