Synthetic Soul,
Thanks for all your help [your past posts were my guide] and sorry about the confusion.
I was using $year$ in the first position. I know I changed it at some point but that must have still been the case with my example [man you're good at this].
I ran the CD again this morning using:
[b]ini.
[/b][Settings]
Config=FLAC-Lame
Version=1.0
EAC=C:\Program Files\AV Tools\Exact Audio Copy\EAC.exe
musicdir=C:\Program Files\AV Tools\REACT\TEST FOLDER
encdir=C:\Program Files\AV Tools\REACT\Encoders
LogFile=C:\Program Files\AV Tools\REACT\react_log.txt
CodePage=1252
MinimizeCompressionWindow=1
ProcessPriority=1
TracksHotKey={F4}
TracksHotVal=+{F5}
SaveTracksCuesheets=1
ImageHotKey={F10}
ImageNaming=$artist$ - $album$
Sla_Bks_Col_Qst_Bar_Quo_Ast_Lt_Gt=-|-|-||!|'|#|[|]
Debug=0[b]
Config:
[/b][b]FLAC-Lame-image.tx[/b]t
!Description=FLAC -5 image with -V3 new MP3
!ImageExt=flac
!CuesheetExt=flac.cue
!WaveGainAnalysis=1
!destdir1=@musicdir@\FLAC -5\$cdartist$
!destdir2=@musicdir@\MP3 -V3 new\$cdartist$\($year$) - $album$
!destdir3=@musicdir@\Logs
!destdir4=@musicdir@\WAVs
@encdir@\FLAC.EXE -5 -f --replay-gain "@source@" -o "@image@"
@encdir@\TAG.EXE -t "ARTIST=@artist@" -t "ALBUM=@album@" -t "YEAR=@year@" -t "GENRE=@genre@" -t "COMMENT=@comment@" -t "FREEDB=@freedbid@" -t "CRC=@crc@" -f "CUESHEET=@cuesheet@" -f "EACLOG=@eaclog@" "@image@"
MOVE "@eaclog@" "@destdir3@"
MOVE "@sourcedir@\@basename@.*" "@destdir1@"
SET trackName=$n - $~t
IF "$cdartist$"=="Various" SET trackName=$n - $~t ($~a)
@encdir@\ACDIR.EXE --overwrite --output "@destdir2@\%trackName%.mp3" --pipe "@encdir@\LAME.EXE -V3 --vbr-new --scale @scale@ --add-id3v2 --pad-id3v2 --ignore-tag-errors --ta $#a --tl $#T --tt $#t --tn $#n --ty $#r{DATE} --tg $#r{GENRE} --tc $qAG applied: @gain@$q - $#o" "@sourcecuesheet@"
@encdir@\CREATE-M3U.BAT "@destdir2@" "$cdartist$ - 9$year$0 - $album$"
REM DEL @destdir4@\"@source@"
Everything looks like it worked except...The "Disc info" is obviously still wrong.....
RE: VA code:[/b] I think the only issue with the code that you highlight is, on quick inspection, it seems to me that tycho should probably be using:
$bathead = '@echo Disc info : "' & $g_cdartist & '" - "' & $g_album & '"' & @crlf
... instead of:
$bathead = '@echo Disc info : "' & $g_artist & '" - "' & $g_album & '"' & @crlf
... but this is purely asthetics, and doesn't affect logic at all.
...and in Foobar:
The FLAC image loads and displays the tracks but with all the "Artist" listings being the Track 2 Artist. It is stored this way in the Metadata under properties. See below [It's not code but I wanted to use a scrolling box instead of the big window].........
Artist Name : Big Head Todd & The Monsters
Track Title : Jammin' Me
Album Title : KFOG: Live From The Archives Vol. 4
Date : 1997
Genre : Rock
Album Artist : Various
Track Number : 1
Total Tracks : 16
Comment : ÜberStandard - UberNet.org
<CRC> : 00000000
<DISCID> : E3100810
<EACLOG> : EAC extraction logfile from 31. October 2006, 7:57 for CD (...)
<FREEDB> : E3100810
Artist Name : Big Head Todd & The Monsters
Track Title : Please Don't Tell Her
Album Title : KFOG: Live From The Archives Vol. 4
Date : 1997
Genre : Rock
Album Artist : Various
Track Number : 2
Total Tracks : 16
Comment : ÜberStandard - UberNet.org
<CRC> : 00000000
<DISCID> : E3100810
<EACLOG> : EAC extraction logfile from 31. October 2006, 7:57 for CD (...)
<FREEDB> : E3100810
The MP3 tracks display ok but the Metadata does not list an "Album Artist" at all.
Artist Name : Tom Petty & The Heartbreakers
Track Title : Jammin' Me
Album Title : KFOG: Live From The Archives Vol. 4
Date : 1997
Genre : Rock
Composer:
Performer:
Album Artist:
Track Number : 1
Total Tracks :
Disc Number :
Total Discs :
Comment : AG applied: -8.48 dB
<ENCODING SETTINGS> : LAME v3.97
Artist Name : Big Head Todd & The Monsters
Track Title : Please Don't Tell Her
Album Title : KFOG: Live From The Archives Vol. 4
Date : 1997
Genre : Rock
Composer:
Performer:
Album Artist:
Track Number : 2
Total Tracks :
Disc Number :
Total Discs :
Comment : AG applied: -8.48 dB
<ENCODING SETTINGS> : LAME v3.97
I can live with the MP3's but would adding another comment tag for CD Artist in the Lame.exe string of the config. take care of this. [I still don't know much about tagging but am working on it].
I would hate to have to retag all the FLAC metadata track by track, is there such a thing as CD Artist in Vorbis? If so, would adding this to the Tag.exe string of the config help with this?
With regard to the VA code, given my recent findings (they may not be findings to tycho, but they were to me!), I think the easiest solution may be to simply use:
; VA album?
If StringLeft($CmdLine[2], 7) == "Various" Then
$g_cdartist = "Various"
$g_cdartist_fn = "Various"
$g_various = 1
Else
$g_cdartist = $g_artist
$g_cdartist_fn = $g_artist_fn
EndIf
It will mess up if an individual artist has a name beginning "Various", but (a) it seems to me that this will occur far fewer times than the issues at the moment and (b) EAC basically does this, so it's simply following suit. If an individual artist had a name beginning "Various" EAC would mark it as a VA album (check the VA checkbox) anyway!
This is over my head but I'm really trying to learn. What would this address? It seems like it would would use the Artist field and make CD Artist the same if it is not a Various. Would you not use the Basename for comparison? Since it looks like Basename is taken from the .wav, would this change the need for $artist$" to start the ImageNaming string? Would changing the $artist$ introduce a loop? I only see $artist$ used later in the "Disc info" line and it seems that would be easier to change using your first example.
I'm so close to getting it set up the way I was hoping.
Thanks to you and Tycho for all your help.
Hopefully my future posts will be much shorter and more explicit.