Author Topic: MusicBrainz Picard q & a thread  (Read 89810 times)

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Musicbrainz picard adds an originaldate and originalyear tag, I am unsure how to configure MusicBee to display and sort by these tags…
Any assistance?
https://getmusicbee.com/forum/index.php?topic=18250.0



hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Thanks for keeping us posted!
So you are using Picard also?
What of it's features are you using and appreciating the most?

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
There have been some developments and improvements going on regarding 'genres' at MusicBrainz.
A lot of genres have been added recently, and also I myself have gained a better understanding of how to use Picard on retrieving them.
The results I am getting now are quite satisfying, and since it's a rather complicated matter to figure out from scratch I thought to share my settings and the genre script I am using.

Settings Picard genres:



You can adjust the 'minimal genre usage' and the 'maximum number of genres' to your own preferences. I advice against using 'folksonomy tags'.


Settings Picard's Wikidata plugin:



You can adjust the checkboxes to your own preferences.


Here is the script.

Note: you will need to use Picard 2.6.2 or higher for it to work

Code
$setmulti(genre,$lower(%genre%))
$setmulti(genre,$map(%genre%,$upper($substr(%_loop_value%,0,1))$substr(%_loop_value%,1,)))
$replacemulti(%genre%,Ebm,EBM)
$replacemulti(%genre%,Edm,EDM)
$replacemulti(%genre%,Mpb,MPB)
$replacemulti(%genre%,Idm,IDM)
$replacemulti(%genre%,Stage & screen,Stage & Screen)
$replacemulti(%genre%,Brass & military,Brass & Military)
$replacemulti(%genre%,Uk funky,UK funky)
$replacemulti(%genre%,Uk hardcore,UK hardcore)
$replacemulti(%genre%,Us power metal,US power metal)
$replacemulti(%genre%,2-step garage,2-step)
$replacemulti(%genre%,A cappella,A capella)
$replacemulti(%genre%,African popular music,African)
$replacemulti(%genre%,Afro pop music,African)
$replacemulti(%genre%,Afro-trap,Afro trap)
$replacemulti(%genre%,Alternative country,Alt-country)
$replacemulti(%genre%,Aor,Adult oriented rock)
$replacemulti(%genre%,Arabic pop music,Arab pop)
$replacemulti(%genre%,Argentine tango,Tango)
$replacemulti(%genre%,Art music,Classical)
$replacemulti(%genre%,Axé musica,Axé)
$replacemulti(%genre%,Bard song,Bard)
$replacemulti(%genre%,Baroque era,Baroque)
$replacemulti(%genre%,Berlin school of electronic music,Berlin school)
$replacemulti(%genre%,Blues-rock,Blues rock)
$replacemulti(%genre%,Bolero,Boléro)
$replacemulti(%genre%,Bop,Bebop)
$replacemulti(%genre%,Breaks,Breakbeat)
$replacemulti(%genre%,Brit pop,Britpop)
$replacemulti(%genre%,Celtic music,Celtic folk)
$replacemulti(%genre%,Club,Club-house)
$replacemulti(%genre%,Dance-pop,Dance pop)
$replacemulti(%genre%,Dark wave,Darkwave)
$replacemulti(%genre%,Deep soul,Southern soul)
$replacemulti(%genre%,Drill 'n' bass,Drill and bass)
$replacemulti(%genre%,Electro-funk,Electro)
$replacemulti(%genre%,Electronic dance music,EDM)
$replacemulti(%genre%,Electronica,Electronic)
$replacemulti(%genre%,Electronicore,Trancecore)
$replacemulti(%genre%,Euro disco,Euro-disco)
$replacemulti(%genre%,Folk-pop,Folk pop)
$replacemulti(%genre%,Fusion,Jazz fusion)
$replacemulti(%genre%,Future jazz,Nu jazz)
$replacemulti(%genre%,Glam,Glam rock)
$replacemulti(%genre%,Go-go,Gogo)
$replacemulti(%genre%,Hip hop soul,Hip-hop soul)
$replacemulti(%genre%,Humor,Comedy)
$replacemulti(%genre%,Intelligent dance music,IDM)
$replacemulti(%genre%,Irish traditional music,Irish folk)
$replacemulti(%genre%,Italo disco,Italo-disco)
$replacemulti(%genre%,Italo house,Italo dance)
$replacemulti(%genre%,Jazz-pop,Jazz pop)
$replacemulti(%genre%,Jazz rock,Jazz-rock)
$replacemulti(%genre%,Laïko,Laïkó)
$replacemulti(%genre%,Latin american music,Latin)
$replacemulti(%genre%,Low fidelity,Lo-fi)
$replacemulti(%genre%,Mangue bit,Mangue beat)
$replacemulti(%genre%,Martial music,Brass & Military)
$replacemulti(%genre%,Midwest hip hop,Midwest hip-hop)
$replacemulti(%genre%,Minimalism,Minimal)
$replacemulti(%genre%,Minimalist music,Minimal)
$replacemulti(%genre%,Mizrahi music,Mizrahi jewish)
$replacemulti(%genre%,Music of africa,African)
$replacemulti(%genre%,Music of brazil,Brazilian)
$replacemulti(%genre%,Music of israel,Israeli)
$replacemulti(%genre%,Music of latin america,Latin)
$replacemulti(%genre%,Music of puerto rico,Puerto rican)
$replacemulti(%genre%,Música popular brasileira,MPB)
$replacemulti(%genre%,Musical theater,Musical)
$replacemulti(%genre%,Neapolitan song,Canzone napoletana)
$replacemulti(%genre%,Neo-classical metal,Neoclassical metal)
$replacemulti(%genre%,Neoclassical new-age music,Neoclassical new age)
$replacemulti(%genre%,New flamenco,Flamenco nuevo)
$replacemulti(%genre%,New romanticism,New romantic)
$replacemulti(%genre%,New-age music,New age)
$replacemulti(%genre%,Nuevo tango,Tango nuevo)
$replacemulti(%genre%,Old-school hip hop,Disco rap)
$replacemulti(%genre%,Old-school rap,Disco rap)
$replacemulti(%genre%,Philadelphia soul,Philly soul)
$replacemulti(%genre%,Political hip hop,Political hip-hop)
$replacemulti(%genre%,Pop art,Art pop)
$replacemulti(%genre%,Pop-music,Pop)
$replacemulti(%genre%,Popular music,Pop)
$replacemulti(%genre%,Prog rock,Progressive rock)
$replacemulti(%genre%,Prog-rock,Progressive rock)
$replacemulti(%genre%,Protopunk,Proto-punk)
$replacemulti(%genre%,Psychedelic trance,Psytrance)
$replacemulti(%genre%,R&b,Rhythm and blues)
$replacemulti(%genre%,Rapping,Rap)
$replacemulti(%genre%,Rave,Breakbeat hardcore)
$replacemulti(%genre%,Rock & roll,Rock and roll)
$replacemulti(%genre%,Romantic era,Romantic)
$replacemulti(%genre%,Rune singing,Runolaulo)
$replacemulti(%genre%,Runo song,Runolaulo)
$replacemulti(%genre%,Samba reggae,Samba-reggae)
$replacemulti(%genre%,Shoegazing,Shoegaze)
$replacemulti(%genre%,Song-cycle,Song cycle)
$replacemulti(%genre%,Southern gothic,Gothic country)
$replacemulti(%genre%,Southern hip hop,Dirty south)
$replacemulti(%genre%,Stage and screen,Stage & Screen)
$replacemulti(%genre%,Symphonic music,Symphony)
$replacemulti(%genre%,Synthpop,Synth-pop)
$replacemulti(%genre%,Synthpunk,Digital hardcore)
$replacemulti(%genre%,Traditional heavy metal,Heavy metal)
$replacemulti(%genre%,Trip-hop,Trip hop)
$replacemulti(%genre%,Urban,Hip hop)
$replacemulti(%genre%,Urban contemporary,Hip hop)
$replacemulti(%genre%,Western classical music,Classical)
$set(_genremusic,$replacemulti(%genre%,Bass music,Bass xxxxx))
$set(_genremusic,$replacemulti(%genre%,Chamber music,Chamber xxxxx))
$set(_genremusic,$replacemulti(%genre%,Early music,Early xxxxx))
$set(_genremusic,$replacemulti(%genre%,Epic music,Epic xxxxx))
$set(_genremusic,$replacemulti(%genre%,Furniture music,Furniture xxxxx))
$set(_genremusic,$replacemulti(%genre%,Incidental music,Incidental xxxxx))
$set(_genremusic,$rreplace($rreplace(%_genremusic%,\( music;\),;),\( music\)\$,))
$set(genre,$replace(%_genremusic%,xxxxx,music))
$setmulti(_genretemp,%genre%)
$set(genre,$unique(%_genretemp%))
$setmulti(genre,$unique(%genre%))


What it does:

- It makes the names of genres as provided by the Wikidata plugin and MusicBrainz’ database uniform.
   So you won't end up with duplicates such as ‘Pop music’ and ‘Pop’, or ‘Dark wave’ and ‘Darkwave’, etc.

- It will ‘sentence case’ all genre names. Just because I think that looks best.

- It adjusts some genre names to my personal preferences.

- It removes duplicate genre entries.

- It makes it so that the produced genre names are compatible with MusicBee's internally known genre names.

Note that not all genres that can be retrieved will be grouped into MusicBee's Genre hierarchy or Genre grouping since not all of these genres are currently known by MusicBee.

If you want full compatibility including the most recently added genres, I suggest to use my 'Enhanced Genre Hierarchy' list and the related Genre Grouping file.
https://getmusicbee.com/forum/index.php?topic=32471.0

sveakul

  • Sr. Member
  • ****
  • Posts: 2438
Thanks hiccup for sharing all the settings and your script, it's nice not to have to "re-invent the wheel" every time which of course is the beauty of support forums and generous users.

The Incredible Boom Boom

  • Sr. Member
  • ****
  • Posts: 1269
As of v2.6, Picard can grab a track's earliest Release Group date using the scripting variable %_recording_firstreleasedate%. I know #psychoadept was doing this in a manual fashion, so this should be very helpful.

My <Love> by <Decade> playlists will soon be perfect!

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Just a heads-up to MusicBrainz' Picard users:

Last week they released a new version (2.7.0), but that release has raised quite a few issues and problems for me.
At the moment I can not pinpoint if they are related to plugins, scripts, or programmatic changes within Picard, but I would personally advise to stick to 2.6.x versions for now.

sveakul

  • Sr. Member
  • ****
  • Posts: 2438
Just a heads-up to MusicBrainz' Picard users:

Last week they released a new version (2.7.0), but that release has raised quite a few issues and problems for me.
At the moment I can not pinpoint if they are related to plugins, scripts, or programmatic changes within Picard, but I would personally advise to stick to 2.6.x versions for now.
Thanks for the heads-up, luckily I read this first.  Sticking to 2.6.3.

sveakul

  • Sr. Member
  • ****
  • Posts: 2438
Just a heads-up to MusicBrainz' Picard users:

Last week they released a new version (2.7.0), but that release has raised quite a few issues and problems for me.
At the moment I can not pinpoint if they are related to plugins, scripts, or programmatic changes within Picard, but I would personally advise to stick to 2.6.x versions for now.
Hiccup has this been sorted yet?

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Hiccup has this been sorted yet?
I am not completely sure.
My gut tells me that Picard 2.7.1 by itself now works fine and is reliable.

The main problems/bugs I experienced with 2.7.0 (and the reason for me crying wolf!) in hindsight were probably related to incompatibilities with the Classical Extras plugin.
Far as I know the developer of CE is going to look into the problem, so that will most likely be solved within a short while.

How and if all this affects any other plugins for Picard: I have no idea.

So for now my advice would be:
Picard 2.7.1 by itself should be o.k. and is safe to use.
If you are using the Classical Extras plugin or perhaps other advanced plugins: stick to 2.6.x versions for the time being.

sveakul

  • Sr. Member
  • ****
  • Posts: 2438
Thanks.  I did go to 2.7.1 then; my usage is very basic (no plugins) and so far no problems.

Geremye

  • Newbie
  • *
  • Posts: 1
You don't need scripts in Picard to get either of them, they're both included automatically.  Look for Media and Release Type in the tag mapping here: https://picard-docs.musicbrainz.org/v2.4/en/appendices/tag_mapping.html

To access them in MusicBee,  you're right that Media Type is already available (see first screenshot). Release type can be configured in Define New Tags by following the Picard tag mapping (second screenshot). Then you can add it as a custom tag the same way as Media Type.

Adding Media Type as custom tag:


Release Type custom tag configuration:


Then you add it the same way:

can you repost these images?  

I'm struggling with getting release type from picard to show up in musicbee.

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
I'll take a look at it tonight
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

frankuaku

  • Newbie
  • *
  • Posts: 13
  • MusicBee lover
I stumbled across this (great) thread and I decided to give Picard a go in tagging genres for my library.

Anyway, I think there's a "strange" behaviour in Picard itself.

Here is the situation after I click "Cluster":


Here is the situation after I click "Lookup":


Why are titles not shown anymore? Why do ReplayGain tags seems "missing from x items"?

Thanks a lot in advance.