I have recently discovered that some of my Albums have inconsistent Album Gain values. I use foobar2000 converter for these and it happens when an album contains more than one composer or date. I did not notice that foobar2000 sorts those together for ReplayGain calculations.
Is there a way I can filter my albums to find only those that have this condition? It can't be done by folder because some folders purposely have multiple albums in them. (Don't ask; it's a "classical" thing.) It has to be done by tags:
List all %ALBUM% for which %REPLAYGAIN_ALBUM_GAIN% is not a constant value.
You can use the Export feature to find such albums. Here's an example config:
$filename(Dupes - Album AlbumGain.txt,utf-8)$loop(%album%)$loop(%album%)$loopend()$ifgreater(%_max_counter%,1,$puts(f1,'*** Different Album Gain: '$if2(%album%,-- empty tag --))$loop(%album% %REPLAYGAIN_ALBUM_GAIN%,1)$puts(f2,$get(f2)$char(13)$char(10)%_path% %REPLAYGAIN_ALBUM_GAIN%)$loopend()$ifgreater(%_max_counter%,1,
$repeat(=,80)
$get(f1)
$get(f2)$puts(f2,)
,),)$loopend()
I know it's been a while, but can you help one more time?
The script you provided works well, but gets confused when there are multiple albums with the same title, e.g. "Chamber Music". (This happens when the albums are by different composers.) Is it possible to loop by folder, not album? What would that script look like?
As this thread is a couple of years old ...
How many albums would cause confusion - couldn't these be treated manually?
I don't know your data - but is the folder really the better sort criterion?
Wouldn't an accurately named album (which includes the composer who seems to make all the difference) be a good idea to circumvent the confusion?
In general: the $loop() statements initiate the sorting.
The folder is addressed by %_directory%
If you say that the same album could be by different composers, you could also $loop() by the string generated by %album% %composer%.
As I cannot test if the export would lead to better results or cause other side-effects, I would recommend that you try it yourself.
The modifcations should not be too difficult.