The headphone jack is OK, but a USB to MIDI interface should give you better fidelity (wider audio bandwidth) and no crackling if you accidentally bump the cable.

They are quite inexepensives

Insights and incites by Notes


Bob "Notes" Norton smile Norton Music
https://www.nortonmusic.com

100% MIDI Super-Styles recorded by live, pro, studio musicians for a live groove
& Fake Disks for MIDI and/or RealTracks