The earphone out is a stereo out; all you need is a stereo 1/4" to dual 1/4" mono plugs to go into an interface.
You wont be able to separate out all the channels, just left and right.
The midi is only a midi OUT, so you can't route midi back to the unit for re-recording any edits from a...