Hydrogenaudio Forums

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: foolver on 2008-11-17 19:17:20

Title: multi-genre tagging
Post by: foolver on 2008-11-17 19:17:20
here's what i've been looking for a while, for example i have four artists, name them X, W, Y and Z

X is rock, pop rock and a jazz band, W hard rock and a heavy metal band, and Y is a progressive metal and a heavy metal band, and finally Z is a rock and hard rock band.

now i'm looking for a way to tag the files so i can access them through the album list/genre function in foobar, so if i open the rock dropdown menu all the bands with rock genre appear, in this case X & Z, and if i type heavy metal W & Y appear, but if i look in hard rock, Z & W appear. basically, one artist appears in more than one genre in the album list.

for example, to clarify, something like this

genre id3 tag field is as follows:
X = rock/pop rock/jazz
W = hard rock/heavy metal
Y = progressive metal/heavy metal
Z = rock/hard rock

but instead of showing the full tag fields in the album list, i'd like foobar to break them into pieces (by the "/" sign), so basically it would show 6 genres: rock, pop rock, jazz, hard rock, heavy metal, progressive metal.
and in there some of the artists would appear more than once.

is there a way to do this?
Title: multi-genre tagging
Post by: ojdo on 2008-11-17 19:27:27
is there a way to do this?


Sure, this is one of foobar2000's (many) strengths:
1. Using the file properties window (or masstagger), you have to convert your single-value (yet "/" seperated) Genre tags to true multi-value tags. Use the semicolon ; to split multiple values. So enter e.g. "rock;pop rock;jazz" in the Genre field. When the multi-values are correctly recognised, they are then printed in the file properties as "rock, pop, jazz".

2. In album list or facets, use "%<genre>%" as a node or facets column.

HTH
ojdo
Title: multi-genre tagging
Post by: Frank Bicking on 2008-11-17 19:28:10
Yes. When you enter genres into the properties dialog, separate them by semicolons to create multiple genre fields.

Example: Rock; Pop Rock; Jazz

In the album list pattern, %<genre>% is responsible for splitting them into separate entries.
Title: multi-genre tagging
Post by: msobetzko on 2008-11-17 23:42:11
Yes. When you enter genres into the properties dialog, separate them by semicolons to create multiple genre fields.

Example: Rock; Pop Rock; Jazz

In the album list pattern, %<genre>% is responsible for splitting them into separate entries.



I went further with this and add an additional multi-value field named STYLE.  Genre for me is Rock, Jazz, etc.  and then I can tag my STYLE as Hard Rock;Hair Metal, etc.
Title: multi-genre tagging
Post by: foorious on 2008-11-18 11:32:30
I think there is a side effect with this approach.

Let's have a GENRE (Pop) with several styles : Classic Pop, Synth Pop...
Let's have a second GENRE (Rock) with several styles : Progressive Rock, Nu Rock...

If we tag a song with GENRE = Pop; Rock / STYLE = Synth Pop; Nu Rock, then there will be two side effects :
- Nu Rock will appear as a STYLE of Pop,
- Synth Pop will appear as a STYLE of Rock.

So in Facets if we have a GENRE Facet followed by a STYLE Facet, when selecting GENRE = Rock in the first facet, we will see Progressive Rock, Nu Rock and... Synth Pop in the second facet. Weird isn't it ?

Does anybody have a solution for this ? Thanks.
Title: multi-genre tagging
Post by: ojdo on 2008-11-18 13:30:32
Does anybody have a solution for this ? Thanks.


Clear: Only use Synth-pop as a style when the genre is equal to Pop and only use one genre per track. Then you will get a nice tree structure.

[edit]And: The bevhaviour you describe is not weird at all. How should Facets/FB know that Synth-pop belongs to Pop rather than to Rock?
Title: multi-genre tagging
Post by: foorious on 2008-11-18 14:47:57
Facets works perfectly. I only said it was a side effect, nothing more.

Personally I use only one Genre and one Style per song. But sometimes it's frustrating, so I understand msobetzko's approach with both Genre and Style as multivalue fields.
Title: multi-genre tagging
Post by: smkk on 2008-11-18 18:16:52
I only use genre browsing when i feel like listening to a certain kind of music but nothing special, with Genre+Style the results were either too limited or too widespread for me.

The solution i found most useful for me is to use only the %genre% tag for both, genre and style and facets with two genre columns.
This way many more combinations are possible than with genre+style tags as you can combine every style/genre with each other.
Title: multi-genre tagging
Post by: foolver on 2008-11-22 19:14:24
thanks to all of you, it's been a great help
Title: multi-genre tagging
Post by: foolver on 2008-12-17 15:27:17
ok, all the upper worked flawlessly, now i have another question.

is it possible to set something that would act as a "master genre tag" for the artists in the library, for example i have the genre tag for one artists as:

Rock 'n' Roll; Roots Rock; Swamp Rock; Hard Rock

and if i add a new album/song in the library i have to retag it, so i'm looking for a way where foobar would automatically add the following genre to the files, based on the genre that it is in the artist's genre field (if the artist was present in my library before)


thx in advance
Title: multi-genre tagging
Post by: foolver on 2008-12-19 21:53:58
ok, all the upper worked flawlessly, now i have another question.

is it possible to set something that would act as a "master genre tag" for the artists in the library, for example i have the genre tag for one artists as:

Rock 'n' Roll; Roots Rock; Swamp Rock; Hard Rock

and if i add a new album/song in the library i have to retag it, so i'm looking for a way where foobar would automatically add the following genre to the files, based on the genre that it is in the artist's genre field (if the artist was present in my library before)


thx in advance



not possible or?
Title: multi-genre tagging
Post by: foolver on 2008-12-23 12:05:16
help?
Title: multi-genre tagging
Post by: ojdo on 2008-12-23 12:23:28
help?


Definitely not possible ATM, as all title-formatting scripts only can access information about the track that is to be tagged. The best you could do is to use masstagger and create a set of "set GENRE to ..." actions that you could quickly activate by button or hotkey.
Title: multi-genre tagging
Post by: Schuft on 2008-12-23 17:20:21
Yes. When you enter genres into the properties dialog, separate them by semicolons to create multiple genre fields.

Example: Rock; Pop Rock; Jazz

In the album list pattern, %<genre>% is responsible for splitting them into separate entries.



This doesn't works for playlist entries which are from .cue-Files! Has anyone a solution for this? 

I tried several possibilities:

REM GENRE Ambient;Chillout
REM GENRE Ambient; Chillout
REM GENRE "Ambient;Chillout"
REM GENRE "Ambient; Chillout"
REM GENRE Ambient, Chillout
REM GENRE "Ambient, Chillout"
--> nothing of these work 

It also doesn't seem to work for some wma-files..
Title: multi-genre tagging
Post by: 2E7AH on 2008-12-24 00:34:17
you can try changing the tag in the referenced file, in case it's writable
Title: multi-genre tagging
Post by: Schuft on 2008-12-24 10:05:35
you can try changing the tag in the referenced file, in case it's writable


Hey 2E7AH,
if this answer is related to my post, I must say to you that I've written the possibilities I've tried above..

The "REM GENRE ..." Tags are the lines from the .cue-Files..

I've tried it several times for .wave files to..I thing there's a bug in foobar for .cue and .wav files... (??)
Title: multi-genre tagging
Post by: 2E7AH on 2008-12-24 10:52:14
hey , i meant refferenced file:

FILE "Title.ext" WAVE

line in your CUE file.

have you tried that?
Title: multi-genre tagging
Post by: Schuft on 2008-12-24 10:57:17
hey , i meant refferenced file:

FILE "Title.ext" WAVE

line in your CUE file.

have you tried that?


Hey 2E7AH,

that works for .cue files! Very nice :-)

Now I just got this Problem with .wav-Files.. :-/
Title: multi-genre tagging
Post by: 2E7AH on 2008-12-24 10:59:33
why do you use WAV?

you can compress them in FLAC, APE, WV
Title: multi-genre tagging
Post by: Schuft on 2008-12-25 19:25:42
why do you use WAV?

you can compress them in FLAC, APE, WV



Hey :-),

i've converted my wav-files now. Thist will work for me, but I things this should only be a dirty work-around.

Gr33tz,
Schuft
Title: multi-genre tagging
Post by: 2E7AH on 2008-12-25 23:43:07
dirty!?
do you have any program that reads wav tags!?
in means that other programs will use?
Title: multi-genre tagging
Post by: Garfield4 on 2009-02-17 08:54:23
When you enter genres into the properties dialog, separate them by semicolons to create multiple genre fields.

Example: Rock; Pop Rock; Jazz

In the album list pattern, %<genre>% is responsible for splitting them into separate entries.



I've created a new Tag called Release_Type - making it easier for me to filter between albums & singles but can't get multiple tag entries to appear separately in the facets view using this convention, like they do for the Genre field.

e.g.
Release Type = Single; Live Performance
Facets Pattern = %<release_type>%

Result = appears as "Single; Live Performance" in facet list rather than as 2 separate entries.

Thanks for your help in advance
Title: multi-genre tagging
Post by: Anas on 2009-02-17 09:10:29
Goto "Preferences -> Advanced -> Display -> Properties dialog -> Multivalue fields:" and add RELEASE TYPE to that list. Or respectively any other field you want to tag with multiple values.
Title: multi-genre tagging
Post by: Garfield4 on 2009-02-17 09:22:13
Goto "Preferences -> Advanced -> Display -> Properties dialog -> Multivalue fields:" and add RELEASE TYPE to that list. Or respectively any other field you want to tag with multiple values.


thanks that great
Title: Re: multi-genre tagging
Post by: Korwin on 2020-11-21 16:27:05
Example: Rock; Pop Rock; Jazz
foobar2000 1.6.2 does not recognize multiple genres of music separated by a semicolon - neither with a space after it, nor when used without a space:

(https://s8.hostingkartinok.com/uploads/thumbs/2020/11/e9ac522d51b87c82506f6d0d09872dc6.png) (https://hostingkartinok.com/show-image.php?id=e9ac522d51b87c82506f6d0d09872dc6)

I am not interested in the two-level assignment of genre and style. I don't need this subjective division and complication. It suits me if each track has a set of tags of the kind of music, as is the case on last.fm. By the way, I enter the country of the artist into this field. This often affects the language and manner of performance.
Also, I would like to use a method of assigning multiple genres = styles that uses as many other music players as possible that support multiple values in the Genre field.
Goto "Preferences -> Advanced -> Display -> Properties dialog -> Multivalue fields:" and add RELEASE TYPE to that list.
I did this, restarted the player, but the tags separated by "; " still show up in the Library. At least it doesn't work with .m4a, .ogg and .flac files.
Title: Re: multi-genre tagging
Post by: ptk on 2020-11-21 17:21:35
The desired behaviour in the album list is called "branching expressions". See here for an explanation:

http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Titleformat_Album_List#Branching_expressions

Check the album list preferences (under media library). For branching expressions, you'll have to use %<genre>% instead of %genre%.

If this doesn't work, it could be a character encoding quirk. I've experienced this on rare occasions. Try the following:
Select files -> go to Properties dialog -> right click on the genre-column -> click "Split values..." -> Add ; as a seperator -> OK
-> multiple genres should then be branched in the album list.
Title: Re: multi-genre tagging
Post by: Korwin on 2020-11-21 18:03:44
Check the album list preferences (under media library). For branching expressions, you'll have to use %<genre>% instead of %genre%.
Take a look at the screenshots. Is that correct?

If so, it’s not something else.
Title: Re: multi-genre tagging
Post by: ptk on 2020-11-21 19:21:01
Yes, that looks correct. Does it work?
Title: Re: multi-genre tagging
Post by: Korwin on 2020-11-21 21:09:43
Does it work?
Yes for MPEG 1 Layer III (.mp3), not for ALAC / MPEG-4 AAC LC (.m4a), FLAC (.flac), Monkey3.97 / Monkey3.99 (.ape), OGG Vorbis (.ogg), PCM / PCM (float) (.wav), WavPack4 (.wv), and WMAV8 / WMA 9.1 (.wma).
Title: Re: multi-genre tagging
Post by: ptk on 2020-11-22 11:04:33
If it works for mp3s but not for other files, I suspect that there's a problem with the tags. Try the following with some files that do not work:
select files -> hold shift key -> right click selected files -> in the context menu, look under "Tagging" -> click "Rewrite file tags"
Title: Re: multi-genre tagging
Post by: Korwin on 2020-11-22 12:51:14
ptk - done. At least FLAC didn't work. I didn't notice any changes either immediately or after restarting the player. The list of music genres still displays entries that include multiple genres, separated by a semicolon. And they contain including those tracks that I processed in the way you recommended. Try it yourself - Google Drive (https://drive.google.com/drive/folders/1qjL9oSZScCSFQv9zYRi8QySL0avvDlYE?usp=sharing).
Title: Re: multi-genre tagging
Post by: ptk on 2020-11-22 14:32:53
Tried these files. Indeed, they showed up with a long list of genres seperated by ;
But using the "Split values..." operation fixed it. See for yourself: google drive (https://drive.google.com/file/d/1inKoqMwTdkL3iKovDgcgZ53HYyTWm4RX/view?usp=sharing)

You will have to do this for every file (select everything, go to properties, right-click on "Genre" and split values).
Title: Re: multi-genre tagging
Post by: Korwin on 2020-11-22 15:32:01
select everything, go to properties, right-click on "Genre" and split values)
Yes, this method helped to split the music genre tag string into separate tags. Thanks! Is TagScanner 6.1.6 so bad at editing tags in APEv2 / APEv2~rg, metadata (for PCM), mp4 (for ALAC and MPEG-4 AAC LC) and vorbis (for FLAC) formats? I would not want to give it up.
Title: Re: multi-genre tagging
Post by: ptk on 2020-11-22 16:45:12
I don't know about TagScanner, but foobar2000 itself is the most capable tool for tagging I know of (at least if you're willing to use its scripting facilities according to the Title Formatting Reference (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference))
Title: Re: multi-genre tagging
Post by: Korwin on 2021-01-05 13:41:37
foobar2000 itself is the most capable tool for tagging
I removed all "Music folders" from "Media Library". (The "Rescan now" function did not update the changed tags in the audio files in the library, the date and time of the change of which did not change, unlike the values of the metadata of these files.) Restarting foobar2000 v1.6.2. Added the same folders to the library. I waited for the end of the scan. And I found that all multitags are still displayed as lists of tags, and not as individual tags. That is, foobar2000 fixes music genre lists only in its library, but not in files?
Title: Re: multi-genre tagging
Post by: Bqasqqr2123 on 2021-01-05 17:36:25
I removed all "Music folders" from "Media Library". (The "Rescan now" function did not update the changed tags in the audio files in the library, the date and time of the change of which did not change, unlike the values of the metadata of these files.) Restarting foobar2000 v1.6.2. Added the same folders to the library. I waited for the end of the scan. And I found that all multitags are still displayed as lists of tags, and not as individual tags. That is, foobar2000 fixes music genre lists only in its library, but not in files?
Have you split your genre tags yet? Afaik unless you actually do that (right click on the tags you want to have split and select "split values") foobar will always see those tags as a single line of string.
Title: Re: multi-genre tagging
Post by: Korwin on 2021-01-05 19:10:02
Have you split your genre tags yet?
Sorry. Please mentally insert this phrase before my previous message: "I have separated all genre multitags so that they appear as separate genres in the list".
SimplePortal 1.0.0 RC1 © 2008-2021