for midi i have found:
http://timidity.sourceforge.net/

i dont know if you can use it.