# Support for MusicBee’s rating field II (popularimeter)

**URL:** https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347
**Category:** Support
**Created:** [August 28, 2022, 10:32pm UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347 "2022-08-28T22:32:32Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 28, 2022, 10:32pm UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/1 "2022-08-28T22:32:32Z")

</div>

Support for Musicbee’s rating field II

In connecting with my previous problem (as described in [Mp3tag behaves strangely upon start](https://community.mp3tag.de/t/mp3tag-behaves-strangely-upon-start/58287)) I'm asking for help regarding the %popularimeter% (rating) field. I can no clue what to fill in the to use with MusicBee. This thread ([Support for Musicbee's rating field](https://community.mp3tag.de/t/support-for-musicbees-rating-field/52923)) stars the issue but does not tell how to use the value field. If I rate half a star the value result should be 1 for the app's value field:

1/2 star in MusicBee - 1  
1 star - 2  
1 1/2 stars - 3  
etc. until  
5 stars - 10

How can I achieve this? It was like this before but I wouldn't know what values to fill in. Can anyone please help? Thanks a lot.  
P.S. Excuse me, I'm not a programming expert.

---

<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: [August 29, 2022, 5:34am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/2 "2022-08-29T05:34:59Z")

</div>

Check the extended tags dialogue and see which values you find in the extended tags dialogue Alt-T.  
Either learn which values (which will range from 1 to 255) you have to write for each displayed star or write a replace command.  
You still would have to enter the values, though.

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 6:22am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/3 "2022-08-29T06:22:06Z")

</div>

> [@ohrenkino](#):
>
> which values (which will range from 1 to 255) you have to write for each displayed star or write a replace command.

Thank you, but if I knew which values I'd have to write for each displayed star or write a replace command I wouldn't need to ask. As I said, I'm not a programmer. Where do I have to look in order to learn how to fill in that field? Thank you though. Using ALT+T in Mp3tag I can see 'MusicBee|186|0' in the field of popularimeter. If I enter MusicBee|255|0 in the value description that code shows in the Mp3tag field.

---

<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: [August 29, 2022, 6:30am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/4 "2022-08-29T06:30:05Z")

</div>

If you give a listing which star-values correspond to which star display, then you could assign something like this:

> [@Edit Traktor POPULARIMETER value in mp3tag](https://community.mp3tag.de/t/edit-traktor-popularimeter-value-in-mp3tag/47178/25):
>
> If everything else fails: you could write a format string with $replace($regexp(%popularimeter%,.\*\|(\d+)\|.\*,$1),255,\*\*\*\*\*,196,\*\*\*\*,128,\*\*\*,64,\*\*,1,\*)

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 6:31am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/5 "2022-08-29T06:31:16Z")

</div>

Thanks but that doesn't work.

---

<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: [August 29, 2022, 6:32am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/6 "2022-08-29T06:32:13Z")

</div>

Ok, then everything stays as it is?

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 6:34am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/7 "2022-08-29T06:34:38Z")

</div>

![mp3tag](https://community.mp3tag.de/uploads/default/original/2X/d/d1b78b5366f6998f47c1d265bab07f51ef232f94.jpeg)  
Parts of the code show up. Actually I'd want the numeric value of the stars to be equal to the value in the C3mp3 field (1/2 star = 1 point, 1 star = 2 points, etc.).

---

<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: [August 29, 2022, 6:37am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/8 "2022-08-29T06:37:04Z")

</div>

What does your column definition look like?

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 6:38am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/9 "2022-08-29T06:38:59Z")

</div>

I entered the string you gave me.

 ![mp3tag2](https://community.mp3tag.de/uploads/default/original/2X/7/7394a7c63116e5ee36d588464ca48faea40471ce.jpeg)

---

<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: [August 29, 2022, 6:46am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/10 "2022-08-29T06:46:06Z")

</div>

What did the Value look like originally? Just stars?  
What happens if you enter stars again?

The example in the linked topic has, BTW, no "8" to be replaced - so you see that again.  
And, you may have noticed, the example in the linked topic only goes from 1 to 5.

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 6:51am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/11 "2022-08-29T06:51:13Z")

</div>

No, The stars are not supposed to show up, only the numeric values (1 to 10). The field in the music files (mp3 and flac) are numeric. Only I don't know in which value field they are stored.  
The other string yield stars too but I don't

 ![mp3tag3](https://community.mp3tag.de/uploads/default/original/2X/5/5db2a7ce4bfbfa346ff0442996661324e1ddf118.png)  
want the stars.  
 ![mp3tag4](https://community.mp3tag.de/uploads/default/original/2X/7/7a928741cd5daa99bd4d1ce647709d9d09ba1f20.jpeg)  
Well, actually I could live with the stars too... as long as I can have some sort of correct input field.

---

<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: [August 29, 2022, 7:01am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/12 "2022-08-29T07:01:03Z")

</div>

The function that you show translates e.g. "255" into 5 stars  
255 is the native value in the field popularimeter.  
If you want to transform that into "10", then do not use the characters for the stars but enter a "10". Do so for all the other large values as well and see if it works.

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 7:04am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/13 "2022-08-29T07:04:02Z")

</div>

See - I don't know what the connection between 255 and "5" is. I'm lost. I only copied that function from the other thread.

---

<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: [August 29, 2022, 7:10am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/14 "2022-08-29T07:10:59Z")

</div>

If you count the number of $char(9734) following the 255 then you will probably find 5 of them. That is the connection.  
If you have used a word processor and its "find&replace" function, then you may recognize that you need a search term and something to replace it with. In the example the 255 is replaced with ` *****` - so if you don't want the `***** `but a "10" instead, enter a "10".  
And so it would go on for the rest of the values that you have to research.  
Yet, I doubt that you will be satisfied in Musicbee unless that program has some clever algorithms running to translate a "10" back to 5 stars...  
Please check that first.

Edit: so my suggestion would be to set the "Value" property of the column with some translation algorithm to display the expected rating in an accustomed form.  
BUT this is to display only.  
Setting the rating in a format that can be digested by MusicBee would be the task of an Action (or rather: a collection of actions, each for 1 degree of rating).

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 29, 2022, 9:46am UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/15 "2022-08-29T09:46:49Z")

</div>

> [@azfrankie](#):
>
> If I rate half a star the value result should be 1 for the app's value field:
> 
> 1/2 star in MusicBee - 1  
> 1 star - 2  
> 1 1/2 stars - 3  
> etc. until  
> 5 stars - 10

This format strings displays the MusicBee ratings 0-5 (incl. half-star ratings) as the respective values 0-10 in Mp3tag.

```auto
$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),254,10,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),241,9,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),195,8,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),185,7,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),127,6,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),117,5,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),63,4,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),53,3,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),12,1,$ifgreater($regexp(%popularimeter%,.*\|(\d+)\|.*,$1),0,2,0))))))))))

```

---

<div class="post-metadata">

### Author: ![azfrankie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@azfrankie](https://community.mp3tag.de/u/azfrankie)
#### Post date: [August 29, 2022, 1:24pm UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/16 "2022-08-29T13:24:47Z")

</div>

Yes, yes, yes... that's precisely it. Works like a charm! Thanks a bazillion. And to you too, ohrenkino! Sorry for being such a pain in the a$$.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [September 28, 2022, 1:25pm UTC](https://community.mp3tag.de/t/support-for-musicbee-s-rating-field-ii-popularimeter/58347/17 "2022-09-28T13:25:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
