Does anybody know a Java library that can synthesise MIDI audio files to something sampled (like Wav/Ogg/etc.), so you can pass it to OpenAL? License is also an issue. It shouldn't be "infectious" like the GPL, e.g. BSD, LGPL, Apache.
I looked around but didn't find anything suitable.
javax.sound.midi appears to use hardcoded ouput via the OS' audio system. It's unstable (doesn't work together with other audio apps) and AFAIK there's no way to capture output.
JFugue is buillt on top of javax.sound.midi and suffers from the same limitations.
Gervill and Frinika are published under the GPL.