Topic: using pianoteq as backend for java MIDI application

Is it possible to use pianoteq programmatically? Suppose I have MIDI file already, and my goal is to generate sound, compress it in MP3 and send to my friend. I'd like to do it all programmatically, without using any GUI, with no manual intervention at all - simply by using some java (or whatever language) class (basically, as a subroutine). Is it possible?

Re: using pianoteq as backend for java MIDI application

If you just want to automatically render midi files into mp3 , that can be done from the command-line. For example, on windows,

"c:\Program Files\Modartt\Pianoteq\Pianoteq.exe" --midi filename.mid --wav filename.wav --preset "C3 Solo Recording" --rate 44100

will render filename.mid to filename.wav with the selected preset at 44kHz

Re: using pianoteq as backend for java MIDI application

From command-line only? What I need is API.
Some background: I'm writing HTML5 MIDI application. You enter your music score as text (in a certain format), and play it. Right now, it plays via QuickTime directly from browser (no server code involved at all, the entire thing is javascript app). QuickTime has lousy sound bank (ancient SoundCanvas). So, if eventually you want to listen to your piece and enjoy it, there's no choice but writing server backend to render MIDI as good-sounding MP3. I'm looking for appropriate server-side technology. Came to this site via link from some blog to explore the possibility. I need piano only, so pianoteq is a natural choice.  But I need an API to this thing to perform (maybe system invocation of .exe will work too? depends on how big the said .exe is, but having API would be better anyway).

Re: using pianoteq as backend for java MIDI application

The alternative is to use the VST api and load pianoteq as a VST plugin. This should be doable in java, see for example https://github.com/mhroth/jvsthost . It is probably a lot more work

Re: using pianoteq as backend for java MIDI application

BTW, just released: native client now supports audio:
http://code.google.com/chrome/nativecli...html#About

Won't it be a good idea to plug in pianoteq technology there?