.cue sheet export

$filename(%album%.cue,utf-8)PERFORMER "$iflonger(%albumartist%,0,%albumartist%,%artist%)"
TITLE "%album%"
$loop(%_filename_rel%)FILE "%_filename_rel%" $if($eql($upper(%_extension%),MP3),MP3,WAVE)
  TRACK $right(0%track%,2) AUDIO
    TITLE "%title%"
    PERFORMER "$iflonger(%artist%,0,%artist%,%albumartist%)"
    INDEX 01 00:00:00
$loopend()

I have not found any ready to use solution for this specific task, so I wrote one myself.
Enjoy.
If you can offer any alterations - please do.

1 Like

Nice! Thanks for sharing.

I can only point to alternative scripting functions which might make the script a little shorter — but it's only cosmetics:

$if2(%artist%,%albumartist%)

$if($stricmp(%_extension%,MP3),MP3,WAVE)