Great ludoviko azuaje! Thank you for putting your interest in to this
Here you can download the source code:
https://github.com/tombcz/super-analyzer/releases
There is an option in Super Analyzer to "Analys Playlist" which means I can somehow send you an exported playlist (it's only a *xml-file, without the musicfiles) which you can try to analyse.
I found this bit of code and the text in green does not seem to work on my iTunes:
As I understand it Superanalyzer should use "Artist" instead of "Albumartist" if the album is a compilation but it does not work for me..
does this "if (track.getAlbumArtist() != null " mean that Albumartist has to be nothing if it is a compilation?
/****************************************************************************
The Super Analyzer
Copyright (C) 2009 Tom Bulatewicz, Nosleep Software
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
***************************************************************************/
package net.nosleep.superanalyzer.analysis;
import java.util.*;
import net.nosleep.superanalyzer.util.StringInt;
/**
* Describes a collection of artists. The keys are artist names and the values
* are Artist objects.
*/
class Artists extends Hashtable
{
Vector<StringInt> _mostPlayed;
public Artists()
{
}
public void finish()
{
_mostPlayed = Analysis.findMostPlayed(this);
}
public Vector<StringInt> getMostPlayed()
{
return _mostPlayed;
}
public void analyze(Track track)
{
// get the artist name
String artistName = track.getArtist();
// if there is an album artist, and it's not a compilation, use that
// one. if we use the album artist for compilations, then users who set
// the album artist to "Various Artists" will get all their compilations
// grouped together as a single artist, which isn't good.
if (track.getAlbumArtist() != null && track.getCompilation() == false)
artistName = track.getAlbumArtist();
// don't collect artist info if we don't know what artist it is
if (artistName == null)
return;
// now see if that artist is in the hashtable yet
Artist artist = (Artist) get(artistName);
// if not in there, then create a new artist oject and put it in
if (artist == null)
{
// create a new artist object
artist = new Artist();
// add the object to the hash table
put(artistName, artist);
}
// add this track's stats to the artist object
artist.analyze(track);