ObjectiveHi. I'd like to know the
count of individual artists listed
for each track. My preferred solution would return the count
in a Virtual Tag, but I'm open to other suggestions.
BackgroundMy music source has prepopulated the Artist tag (TPE1) in the format "artist1, artist2" with a comma plus a space as a delimiter. When I open the artist splitter dialog, the same string "artist1, artist2" is displayed in the Display Artist field. And it is displayed in the first row of the Artist list/splitter, with "artist" displayed as the role. No other rows are populated.
I want to split this combined value into 1 entry per artist, linked to their role. Typically, this will result in 1 to 4 artists; with roles including artist, guest, remixer etc. Since the music source does not list guest performers and remixers in the original string, new entries for will have to be created for them, as required.
Before I edit any tags or open the splitter, MB's Tag Editor displays that same string "artist1, artist2" in the box marked "Artist". This field is labelled "Artist" in the "select displayed fields" dialog of the Tag Editor. But
does this "Artist" box in fact display the value of Display Artist? It seems to be affected by edits to Display Artist, but not by edits to individual Artist field(s).
ProblemSince what is displayed in that box can be completely different to the values of the individual Artist field(s), and since the latter are initially hidden, I cannot see at a glance whether the individual Artist field(s) need editing or are fine as is. So I end up having to open the artist splitter dialog for every track, just in case (which isn't very efficient).
I have seen a "+" sign appear next to the word "artist" at this ?Display Artist box sometimes. But its exact meaning is not clear.
If I could display a virtual tag with the count of Artist entries, then I'd have a much better idea whether I need to open the splitter dialog or not. It'd also be useful for filtering files in order to process them for Serato. Unfortunately, Serato only displays the first artist and a remixer.
Other solutions (which are beyond my control) would be: (1) to indicate the number of artist rows next to, or instead of, the "+" sign.
Or, even better, would be: (2) to give the option of displaying multiple Artist rows inline without the need for a popout, similar to how the Classical Music Work & Movement fields have been implemented, but preferably staying expanded once clicked even if the user moves to a different track.
Similar Questionhttps://getmusicbee.com/forum/index.php?topic=23549.0This person had a similar objective, but neither the question nor the answer suggested mentioned the use or virtual tags.
Also, the answer relied on detecting the delimiter character (in that case, a semicolon). In my case, the delimiter will be a comma if I haven't edited it yet, but will be a semicolon if I have. Or will mine have no delimiter if they have been split into individual artists?
FunctionsI thought I read that there was a $Count() function, but now I can't find it.
It's not on this page:
https://musicbee.fandom.com/wiki/FunctionsIf relevant, I also have the plugin
Additional Tagging and Reporting Tools (ATRT) installed.
TipAs an aside, I used the Advanced Search & Replace function of ATRT and the following formula:
Find ", " in Artist tag. Replace "; " in Artist tag.
As a knock on effect MB also parses the Artist tag into individual rows.
This helps speed things up, but does not take care of the remixer, guest/featured etc.