What looked like a simple question at first, is still unsolvable for me after many of hours:
-------------------------------------------------------------------------------------------------------------------------
I want to have a library view, which takes all artists with songs rated 4+ (artist should also be the first category in the view).
But it shows all tracks of those artists, not only the 4+ rated ones.
-------------------------------------------------------------------------------------------------------------------------
As I understand it MC is file based and all expressions and functions are run on a per file basis. Therefore there is no standard funtion which could do that above. This took me a while to understand. Then I thought maybe this could be solved with variables and I came a little closer to the goal, but only a little. With SAVE and SAVEADD I got the list of artists more or less, but of course the same artist was listed multiple times, as it was added every time the criteria were fulfilled. The I tried to use CLEANLIST to remove duplicates. But this did not work. Then I ran our of ideas....
Here is a simplified example, where the list is created not by criteria but by assigning two artists to the list (actually 'U2' is added many thousand times, once for each track in the library, but this simulates the issue above):
[=save(Pink Floyd,artlist)1]=1
[=saveadd(artlist,U2,1)1]=1
[Artist]=ListClean([artlist],1)
Can anyone help me with this? I should add that the performance of this code is also pretty bad. So, maybe there is a much simplier solution for this?