# Multiple Values for Field Name (FLAC)

**URL:** https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524
**Category:** General Discussion
**Created:** [June 7, 2012, 4:38am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524 "2012-06-07T04:38:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![d2b](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@d2b](https://community.mp3tag.de/u/d2b)
#### Post date: [June 7, 2012, 4:38am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/1 "2012-06-07T04:38:09Z")

</div>

The recommended way to create Vorbis comments from a field that has multiple entries is as follows:

If there are two composers for a track, enter them in dbpoweramp like this:

Composer1; Composer2

The resulting Vorbis comments should be as follows:

COMPOSER=Composer1  
COMPOSER=Composer2

This is done properly for the COMPOSER tag, like the above example.

However, for custom tags, like this one, only a single Vorbis comment is generated:

Entering this information for a custom tag named PERFORMER, like this:

Performer1; Performer2

results in this single Vorbis comment:

PERFORMER=Performer1; Performer2

instead of:

PERFORMER=Performer1  
PERFORMER=Performer2

I've asked Spoon to please always parse such entries so that multiple tags are created instead of one long one. So far, no joy there. We wish to be able to tag each track with all of the performer's names and instrumentation, but if only one tag is created for all of them, it becomes very, very long and may be truncated. This is an obvious problem.

So here's the question: Is it possible to write a script of some kind that will "inspect" all Vorbis comments for this spacing (semicolon followed by a single space) and create individual Vorbis comments for each element in the original long string of values?

The only other option appears to enter each performer's tag information, one at a time, using the Alt-T panel and the New/Edit/OK buttons in mp3tag. Naturally it would be best if this were done 'correctly' in dbpoweramp to begin with.

"d2b"

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [June 7, 2012, 5:11am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/2 "2012-06-07T05:11:32Z")

</div>

Mp3tag has an action type of 'Split field by separator' that could be used. I haven't used it before, but some testing indicates that it only works with single character separators. If I enter the two characters "; " (semi-colon, space) then it also splits the field around spaces. It seems that what you're actually entering is not a separator, but a list of individual separator characters (maybe that's a bug, or maybe it's just badly documented).

One way to work around that is to first replace "; " with some single unusual character that wouldn't normally be found in your tags. I used a backquote ( ` ).

So to create your splitting action group, use two actions.

_Action type:_ **Replace**  
_Field:_ **ARTIST**  
_Original:_ **;**   
_Replace with:_ **`**  
[] _only as whole word_  
[] _case-sensitive comparison_

(with a space after the semi-colon)

_Action type:_ **Split field by separator**  
_Field:_ **ARTIST**  
_Separator:_ **`**

Mp3tag has an \_ALL pseudo-fieldname that I believe is intended to allow working on all fields at the same time, but I tested it and while the Replace action functioned correctly, the Split action did not. Realistically, you probably don't have more than a half dozen or so fields where this type of action would be necessary (multiple albums or titles is unlikely). In Mp3tag you can easily copy actions within an action group, so duplicating the above two actions for another five or six fields wouldn't be hard. Just copy them and then change the fieldname.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 7, 2012, 5:31am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/3 "2012-06-07T05:31:50Z")

</div>

> [@d2b](#):
>
> ...  
> So here's the question: Is it possible to write a script of some kind that will "inspect" all Vorbis comments for this spacing (semicolon followed by a single space) and create individual Vorbis comments for each element in the original long string of values?

MP3tag interprets a double backslash \\ as separator for multi-value fields.  
So, if you replace the Semicolon blank with a double backslash, then MP3tag should create multi-value fields on save.  
These are then interpreted and displayed in their own way by the various players.

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [June 7, 2012, 5:34am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/4 "2012-06-07T05:34:20Z")

</div>

> [@ohrenkino](#):
>
> MP3tag interprets a double backslash \\ as separator for multi-value fields.  
> So, if you replace the Semicolon blank with a double backslash, then MP3tag should create multi-value fields on save.  
> These are then interpreted and displayed in their own way by the various players.

Yeah, I thought of that and tested it, but like you say, you have to then do a Save. Simply replacing "; " with "\\" doesn't do it by itself. It remains a single field.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [June 7, 2012, 5:46am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/5 "2012-06-07T05:46:02Z")

</div>

Use the Split field by separator action with ";" as separator.  
Trailing spaces are removed automatically during the process.

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [June 7, 2012, 5:52am UTC](https://community.mp3tag.de/t/multiple-values-for-field-name-flac/13524/6 "2012-06-07T05:52:45Z")

</div>

Unless you don't want to split a field around only a semi-colon that doesn't have a following space.
