So yeah...You will need a cable to do this.
1) Plug either the headphone out or the line outs into the line in.
2) Use the other line out to monitor what you are doing.
3) Create new Kit or synth
4) Set to record sample and hit play/record button to start/end.
5) Tirm, because you're sloppy.