Deprecated, please use Chris Wilson’s WebMIDIAPI Shim I have built a command line version of the midibridge applet. It is not a socket server, it is a plain and lightweight command line program written in Java that connects to the midi system on your computer. You can communicate with the program via its standard in- and outport. The Air app launches the program on the command line as a NativeProcess and starts listening for midi events on the standard output. Requests from the Air app such as selecting another midi in- or outport or sending in AS3 generated midi events, are written to the standard input of the program. Code is available at GitHub:
http://github.com/abudaan/javamidi http://github.com/abudaan/flashmidi Or as a zip download at Google Code: http://code.google.com/p/miditoflash/ The functionality is the same as the bi-directional web version with soundfont support.