Exploring MIDI support

There are no restrictions or requirements for codec support in media.

Is the following as valid for midi devices as it is for microphones?:

<audio src="file.mid">
navigator.getUserMedia({audio: true}, gotAudio)

In this case, the media stream of gotAudio would be midi opcodes and 
<audio> would pass opcodes to the OS.
Is this a reasonable interpretation of how to implement in/out MIDI support?

audio.play() would send midi out (to the OS),
and getUserMedia would capture from devices sending MIDI into the OS.

-Charles

Received on Tuesday, 27 December 2011 00:38:49 UTC