I remember a thread where someone asked for a program to split recorded wave files into separate tracks. I just came across a commandline program written specifically for recording records, splitting them into tracks, apply filters,...
Check out Gramofile and xmcd2make