Need help finding improperly tagged ALBUMs

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.

Can anyone help me with this? Thanks.

MP3tag does not compare values between files, only values of the current file.
So Mp3tag does not know anything about albums

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,
1 Like

Thanks! Will give that a try.

UPDATE: It seems to work!