Author Topic: "LastName, Firstname" virtual tag for multiple composers  (Read 2126 times)

Tedri

  • Guest
I've been using a virtual tag to sort my composers from "Firstname Lastname" to "LastName, Firstname":

$RSplit(<Composer>," ",1), $Replace(<Composer>*,$RSplit(<Composer>," ",1)*,)

But this formula doesn't work for tracks with multiple composers. For example, "Johann Sebastian Bach; Ferruccio Busoni" comes out mangled as "Busoni, Johann Sebastian Bach; Ferrucio".

Is there a way to get the virtual tag to split the names into multiple composers, like the normal tag does?

Thanks

boroda

  • Sr. Member
  • ****
  • Posts: 4630
Try Additional Tagging Tools plugin, Advanced Search & Replace command. It seems that there is a preset for this, but you'll need to use custom tag instead of virtual tag.

vincent kars

  • Sr. Member
  • ****
  • Posts: 445
You have to repeat your steps for each composer

I have multiple artist
Heumann, Friederike [viola da gamba]; Börner, Dirk [Piano]; Nasillo, Gaetano [Cello]

Split the artists
$Split(<Artist>,;,1)
As I have lastname, first [Instrument]
Lastname
$Split($Split(<Artist>,;,1),",",1)
First name
$Split($Split($Split(<Artist>,;,1),",",2),[,1)

If I do
$Split($Split($Split(<Artist>,;,1),",",2),[,1) $Split($Split(<Artist>,;,1),",",1)

I get
Friederike Heumann

All you have to do is to repeat this for the second artist
$Split($Split($Split(<Artist>,;,1),",",2),[,1) $Split($Split(<Artist>,;,1),",",1) - $Split($Split($Split(<Artist>,;,2),",",2),[,1) $Split($Split(<Artist>,;,2),",",1)

I get
Friederike Heumann - Dirk Börner

Success