if your sound card is capable (most are)of it it is simplicity.
using a program such a TOTAL RECORDER - record the file as a wav as you play it.
Use COOL EDIT or other WAV editor to clean up the sound if necessary.
use a CD creator prgram to put the file onto CD.
of course it isn't LEGAL.