INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Massive tag edit from spreadsheet?  (Read 5367 times)

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Massive tag edit from spreadsheet?
« on: August 14, 2015, 12:54:27 pm »

I have a very long list of composers and the historical periods (Early Music, Baroque, Classical etc.) they belong to. It is set up with the composer name in one column and the corresponding historical period in the next column.

Any ideas on a clever way to add the "period" value to each track in my library depending on the composer value already tagged to the track?

So if "composer" is "Mozart, Wolfgang Amadeus" set "Period" to "Classical" based on the info in the spreadsheet?
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Massive tag edit from spreadsheet?
« Reply #1 on: August 14, 2015, 01:05:12 pm »

The easiest way to do it (at least to me) would be to use the search wizard. Click the search magnifying glass and select Wizard. Then in the rules set Composer to the relevant composer. Click Apply. Then just select all of the tracks, hit alt-enter and set the Period to Classical.

If you want to do it in a slightly faster way, then just create a new smartlist or a new view that contains all of your classical music and then order it by composer. From there you can just go down the list setting the period en masse by composer by selecting all of the tracks from each composer. If you have poor eyesight or non-nimble fingers you can also set it to group by composer so there are large breaks between each composer grouping.

An even more slightly faster way would be to create a smartlist or search wizard and just select all of the artists that belong to a certain period using the checkboxes. Then you can easily run a ctrl-A (select all) on all of the artists at the same time and update the period tag.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #2 on: August 14, 2015, 01:12:09 pm »

Thanks for your reply.

I'm thinking more in terms of an expression or script that would do it automatically. Doing it individually is not really in the cards since I'm talking about 1000+ composers.

Probably someone more savvy than I could write an expression that would get it done?

It would be a pretty sweet feature for JRiver to have, if it could automatically associate the composer with his/her period. If anyone has any ideas as to how to do it, I'll be happy to share this list. It needs a little editing but I'll be happy to get it very accurate if we think we can do it.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Massive tag edit from spreadsheet?
« Reply #3 on: August 14, 2015, 01:37:52 pm »

Thanks for your reply.

I'm thinking more in terms of an expression or script that would do it automatically. Doing it individually is not really in the cards since I'm talking about 1000+ composers.

Probably someone more savvy than I could write an expression that would get it done?

It would be a pretty sweet feature for JRiver to have, if it could automatically associate the composer with his/her period. If anyone has any ideas as to how to do it, I'll be happy to share this list. It needs a little editing but I'll be happy to get it very accurate if we think we can do it.

Well, you can do it programatically in MC only if you have the pertinent information to parse to place it into the right period, i.e. the correct year already tagged in MC. I can help you out if you want to think through this problem rationally. If you don't have that data inside MC, you'll need to do some wheeling and dealing outside of MC using your spreadsheet in order to build some search expressions. I don't know how your list is formatted but it's likely possible to accomplish in large batches. What I envision is that you will order your list by period, then select all of the composer names for that period and export as a csv file. You could then use notepad to replace all instances of ',' (or your less common, manually chosen delimiter) with " or [Composer]=". Then you can create a custom search or smartlist in MC by importing your huge search expression. Then set the tags for all of the composers in that search to the same period. You can probably get more complex and create a custom field that automatically propagates the period tag using a bunch of ifelse statements, but that might be just as time-consuming as the option I just outlined. Up to you.

The issue is that you can't really run a heuristic analysis on music files in MC, although it could probably be done to some extent in Musicbrainz.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Massive tag edit from spreadsheet?
« Reply #4 on: August 14, 2015, 01:42:15 pm »

it could be done with an expression in MC...the problem is you'd have to type in each composer anyways because there is no way of knowing which composer goes where so you aren't left anywhere good

there might be a way by exporting a playlist to .csv then importing back in to the library after changing things in Excel, i've never done that so i can't say.  i'm not aware of any programs that can tag from an .xls but it's possible that one exists if you search

otherwise, BryanC pretty well outline what you need to do.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #5 on: August 14, 2015, 01:52:01 pm »

Thanks guys. Bryan - great idea. There are only 8 or 10 different periods I'm using, so I can easily do that many batches. I will sort the sheet by period as you said and then hopefully figure out how to export and delimit the list of composers from each period.

Will let you know how it goes and share broken up/delimited lists in case others want to try it in their collections.

Of course the other tricky thing is that there are so many different ways to name the composer (i.e. "last name", "first name", with accents vs. without accents, etc. etc. It'll have to be tweaked a lot for each individual collection.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Massive tag edit from spreadsheet?
« Reply #6 on: August 14, 2015, 02:12:54 pm »

tagging can suck sometimes but when it's done not only is it nice to have but future tagging operations tend to go so much quicker!

good luck, maybe post to this thread or a new one what you did and how it worked, that way maybe someone else (like myself) can learn something!
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Massive tag edit from spreadsheet?
« Reply #7 on: September 13, 2015, 09:08:50 am »

What ever became of this project?  Did the OP get it solved?  I'm considering doing a little programming to make it happen.

Brian.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #8 on: September 13, 2015, 10:34:43 am »

Hi, yes I think we were close but there were still some things that needed to be worked out. I've been meaning to finalize the list of composers and their respective periods. It would be nice. I should be able to find the time this week and will let you know. Thank you!
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Massive tag edit from spreadsheet?
« Reply #9 on: September 13, 2015, 10:36:55 am »

If you would like my help with this, please post a sample of your Composers to Periods spreadsheet here.  It doesn't need to be complete.  Just a representative sample.

With that, I'll see if I can help.

Brian.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #10 on: September 13, 2015, 10:42:17 am »

Ok, thanks Brian. I will do that tomorrow. Won't be able to today, unfortunately.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #11 on: September 14, 2015, 03:21:16 pm »

Hi,
Ok I have a working list...can't seem to attach it here bc it's an unsupported doc format (.ods). Email?

Thanks for you help with this.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Massive tag edit from spreadsheet?
« Reply #12 on: September 14, 2015, 03:52:24 pm »

I'm going to convert your spreadsheet to text when I get it.  Comma Separated Values (CSV) specifically.  I have Open Office, which *should* be able to read it.  But hey, why don't we kill two birds with one stone:  How about saving it as CSV.  Then change the file extension to .TXT.  Then you can attach it here.  :)

If it's really big (which I can't imagine), you could ZIP it first.  The forum accepts ZIP as attachments too.

Brian.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #13 on: September 14, 2015, 05:27:38 pm »

Ok, here 'tis.
Logged

amargolis

  • Junior Woodchuck
  • **
  • Posts: 61
Re: Massive tag edit from spreadsheet?
« Reply #14 on: September 14, 2015, 05:28:35 pm »

^^^  Still needs LOTS of editing and expanding, by the way.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Massive tag edit from spreadsheet?
« Reply #15 on: September 14, 2015, 05:32:28 pm »

Got it.  Looks pretty straight forward.  Depending on my schedule, this may take me a few days to work on.  I'll update here as I get some results.

Brian.
Logged

flight16

  • Junior Woodchuck
  • **
  • Posts: 50
Re: Massive tag edit from spreadsheet?
« Reply #16 on: September 16, 2015, 08:10:34 pm »

Might be overkill but I wrote a simple python wrapper around MCWS with the purpose of tagging.  Probably only useful if you know python.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Massive tag edit from spreadsheet?
« Reply #17 on: September 16, 2015, 08:18:37 pm »

A non-update update on this...  I've been rather distracted with life stuff and have been answering posts here, but haven't had the kind of concentrated time necessary to sit down and program.  Sorry about that.  I can't say for sure when I'm going to have time to get around to this.  I'm still wanting to work on it, but things are a little crazy right now.

Thanks,

Brian.
Logged
Pages: [1]   Go Up