Welcome Guest

Pages: 1
Using composer's surname & add to title.
SnowdogPostDecember 11, 2023, 12:04
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicUsing composer's surname & add to title.

So here's a thing I'm having to do quite a lot, as Roon doesn't always know the composer of a piece...

(My workflow currently assumes that the Composer field is filled.)

I use the Set editor to prepend the composer name to the Title field followed by a full stop & a space.

I then have to order the files by Title, so that each occurrence of a composer is shown together alphabetically & then shift-select each composer's first name & delete it.

As you can imagine, this can be quite time consuming.

Would there be a way to add just the surname of a composer?

I'm not sure whether this would be a literal "the last word in the composer field" thing or some way of pulling it from a database, but spellings could be an issue in the latter case. e.g. I've chosen Frédéric for Chopin but there are numerous variations, similarly with my choices of Pyotr Ilyich Tchaikovsky, George Frederick Handel, etc.

Anything to reduce my workflow on this would be amazing.

2MR2PostDecember 11, 2023, 12:36
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicUsing composer

Well as you said there is no way to determine how many words represent the first name.

I could easily produce an action to strip the first word off or to strip all except the last word ... but none of these would always be correct.

The action could replace the set in the Title field or could be done on the Title field assuming the composer was already prepended.

It's all easy but I'm not sure that any of it would help. Let me know.

SnowdogPostDecember 11, 2023, 14:18
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicUsing composer

I definitely think that an action which uses the last word only from the composer field & prepends it to the title field with a full point & a space would cover 99% of my work. Then I could just scroll through & change "Falla" to "de Falla" etc. should the need arise, which it hardly ever does. 🙂

2MR2PostDecember 11, 2023, 16:47
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicUsing composer

The forum is slow when you close a post. If you see a spinner on the address bar, your browser is waiting. This could take a while. I've deleted the second copy of the post.

I put out v6.17.2.2 today so I was a little busy. I'll get you an action later tonight or tomorrow morning. I'll put in the ability to maintain a list of second to last words which are to be retained. So you could add "de" to the list, etc.

SnowdogPostDecember 11, 2023, 19:58
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicUsing composer

Sounds amazing, thanks.

(Yes, as you know, my Mac has "issues". If I overload it with too many simultaneous tasks, it can catch me out.)

2MR2PostDecember 11, 2023, 22:04
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicUsing composer

Download and install: https://2manyrobots.com/actions/Prepend-Front-Truncated-Composer-to-Title.zip

You'll get a folder and 3 actions:

Folder: Prepend Front Truncated Composer to Title
Prepend Front Truncated Composer to Title
Prepend Front Truncated Composer to Title Clean
Prepend Front Truncated Composer to Title Config

Run the Prepend Front Truncated Composer to Title Config action to create a list of second to last words which are to be retained. For example to retain 'de' in 'de Falla' put 'de' in the list. The words are entered one per line. This action can be run any number of times and it will initially display the current values.

Run Prepend Front Truncated Composer to Title to prepend the Title field with the possibly truncated Composer field.

If for any reason you want to change the Composer field on files you've already run the Prepend Front Truncated Composer to Title action, run the Prepend Front Truncated Composer to Title Clean action. It will remove text{period}{space} from the Title field. I could have done this automatically but I didn't know if it was possible for a Title to initially contain the sequence.

Let me know how it goes.

SnowdogPostDecember 12, 2023, 05:20
Pro
Posts: 361
Registered:
March 15, 2022, 17:12
Normal topicUsing composer

Works like a charm, thanks!

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.046 seconds.