java wrapper for writing midi files