Categories
java midi

Stresstesting the midibridge with Chopin

James Yanli Lei is a flashdeveloper from Singapore who showed me a brilliant way to stresstest the midibridge: he played a midi file through the brigde.

He used a commandline Java program to play back the midi file, you can download the code at Java Sound Resources:

http://www.jsresources.org/examples/midi_io.html

I have made a screencast of a stresstest with Chopin‘s etude No.2 Opus 25; this etude has a lot of really fast notes, so very suitable for stresstesting.

Categories
java midi

web and air version merged

Deprecated, please use Chris Wilson’s WebMIDIAPI Shim Today i have released a new version of the midibridge where the web and the Air version are part of the same package. This applies to both the Flash and the Java end. It makes the code much easier to maintain on the one hand, and on the other hand enables you to develop your project for both targets with effectively the same code. Particulary the applet has a lot of improvements and is much more stable than the earlier versions. You can start and stop the applet from the configuration panel in Flash and devices that are already in use by other processes don’t show up as available devices anymore. Also the naming of classes and packages is more consistent and intuitive. I have avoided the term “bridge” because in fact all classes together make up the bridge. I have started to document the code as well, and i will continue to do this the coming days and weeks, so please check back the repositories every now and then. Code is available at GitHub and Google Code:

http://github.com/abudaan/javamidi http://github.com/abudaan/flashmidi http://code.google.com/p/miditoflash/

Categories
midi

air version with standalone midibridge

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.

Categories
midi

bi-directional version of the midibridge with soundfonts 2.0 support

Deprecated, please Chris Wilson’s WebMIDIAPI Shim

The new version allows you to generate midi events in AS3. The applet translates the AS3 midi events in to midi messages that can be sent to your midi hardware or software.

Also the Alchemy version of Fluidsynth from Yoann Huiban has been implemented. This makes it possible to use your own soundfonts in your app so you don’t have to rely anymore on the often quite poor midi sounds that ship with your soundcard.

You can check out the new version over here:

http://abumarkub.net/midibridge/v4/

Code has been published to GitHub, see:

http://github.com/abudaan/javamidi

http://github.com/abudaan/flashmidi

Or as a zip download at Google Code:

http://code.google.com/p/miditoflash/