There are ways to do similar, e.g. with cdrdao, output to a .toc file, then convert .toc to .cue but that's slow and inconvenient, could not find a program that does it in one step, (only 'mkcue', but it doesn't support a cddb database lookup)
Also cdda2wav can generate a cuesheet but it's part of the ripping process, I wanted to generate it directly, to be able to edit first, so made this for myself, maybe it's useful for someone.
Took some parts from the 'abcde' commandline cd ripper and 'cddb-tool' script.
Once the .cue is generated, say "artist - album".cue, you can rip the cd to a single wav with same name "artist - album", e.g.:
Code: Select all
cdparanoia -Z '1-' "artist - album".wav
Code: Select all
cdda2wav -tall -D /dev/cdrom "artist - album".wav
FILE "Herbie Hancock - The Herbie Hancock Trio '77.flac" WAVE
There are media players that support playing from .cue, e.g. vlc, mpv, deadbeef and probably more.
To split the single .wav (or .flac), you can use shnsplit (part of the shntool package), using the .cue, e.g. to flac:
(change to what the real artist and album is of course)
Code: Select all
mkdir "artist - album"
shnsplit -f "artist - album".cue -t '%n-%t' -o flac "artist - album".wav -d "artist - album"
Code: Select all
mkdir "artist - album"
shnsplit -f "artist - album".cue -t '%n-%t' -o "cust ext=ogg oggenc -q 5 -o %f -" "artist - album".wav -d "artist - album"
Code: Select all
cuetag "artist - album".cue "artist - album"/*.flac ## or *.ogg
Attached cuegen.sh, Remove fake .gz extension and make executable
Fred