# Set rating for import in VirtualDJ

**URL:** https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352
**Category:** Support
**Created:** [March 12, 2023, 2:35pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352 "2023-03-12T14:35:21Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 12, 2023, 2:35pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/1 "2023-03-12T14:35:21Z")

</div>

Hi Markus,

It seems it has been quite a while since your reply. I'm a newbie. I searched the howto's and manuals but I can't seem to figure out where to paste this code. I tried actions and tried to create a new action but could not achieve to see stars rather than values. I'll appreciate if you could help me figure out how to do this if it is not too much trouble. many thanks.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 12, 2023, 2:41pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/2 "2023-03-12T14:41:04Z")

</div>

You want to see the POPULARIMETER content in a new column as stars (and not as number)?

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 12, 2023, 2:42pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/3 "2023-03-12T14:42:36Z")

</div>

Yes. I'll appreciate your kind support if possible.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 12, 2023, 2:49pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/4 "2023-03-12T14:49:30Z")

</div>

[Create a new column](https://docs.mp3tag.de/customization/file-list/)  
Copy & Paste this Value:  
`$if2(%rating winamp%,$ifgreater($regexp(%POPULARIMETER%,'^.+\|(\d{1,3})\|\d+','$1'),196,5 ★★★★★,$ifgreater($regexp(%POPULARIMETER%,'^.+\|(\d{1,3})\|\d+','$1'),128,4 ★★★★,$ifgreater($regexp(%POPULARIMETER%,'^.+\|(\d{1,3})\|\d+','$1'),64,3 ★★★,$ifgreater($regexp(%POPULARIMETER%,'^.+\|(\d{1,3})\|\d+','$1'),1,2 ★★,$ifgreater($regexp(%POPULARIMETER%,'^.+\|(\d{1,3})\|\d+','$1'),0,1 ★,))))))`

Your column definition should look like this:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/8/8995442348f1dbc83bab598416fc8aab72601563.png)

In Mp3tag the final list looks like this:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/115521aed2d7b0e53ead0880ccc2b8f2eabfc441.png)

This only works, if you already have numbers stored in the POPULARIMETER tag.  
You can check it pressing Alt+T on one of your tracks.

---

<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: [March 12, 2023, 2:54pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/5 "2023-03-12T14:54:33Z")

</div>

I think that this can be shortend to  
`$replace(%popularimeter%,196,★★★★★,128,★★★★,64,★★★,2,★★,1,★)`

I would like to emphasize that it first should be investigated, whether the player actually reads the rating field. iTunes does not.

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 12, 2023, 2:59pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/6 "2023-03-12T14:59:41Z")

</div>

Thank you so much for this. I tried, stars are not showing. I tagged all tags with Tag&Rename as stars. Having checking them with Mp3tag it is interesting that some tracks have values in

- Popularity tag but not as straight numbers but in this format |0 , |0|0 , |128|0 , |255
- Others appear in rating\_wmp column as number values from 1 to 5

I mostly use Virtual DJ and used to use Tag&Rename until it is dead. Star rating fields are interoperable in between those platforms. So if you tag a rating in one it would also appear in the other. If I cannot find a way to achieve this in Mp3Tag, I will have to edit all values from scratch ☹

Do you think it is possible to create a column (I guess the correct one is the rating\_wmp column) and tag tracks as stars rather than tagging them as numbers but showing as stars in another column?

Many thanks for your help.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 12, 2023, 3:04pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/7 "2023-03-12T15:04:40Z")

</div>

If you want a (new) possibility to interoperate between Virtual DJ and Mp3tag I suggest this process:

1. Load 5 new songs into Virtual DJ
2. Rate every of this 5 Songs, one with 1 star, the second with 2 stars and so on.
3. Load this songs in Mp3tag
4. Change the ratings (pressing Alt+T and manually change them) and don't forget to save the changed values into your files
5. Load them again and check if Virtual DJ shows the changed values

If this process works, we can help you to create a column in Mp3tag with the used tag.

---

<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: [March 12, 2023, 3:08pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/8 "2023-03-12T15:08:33Z")

</div>

I would like to point out the Option in Tags\>Advanced whether MP3tag should show the raw values in rating or the translated ones.

Please note that there is only 1 field for ratings: POPULARIMETER.  
Only the internal format determines how the data will be displayed.  
There are dedicated pseudo-ratings for the translated data.  
Please see the documentation for

> **[Tag Field Mappings – Mp3tag Documentation](https://docs.mp3tag.de/mapping/#popularimeter)**
>
> Overview of all available tag fields, their names in Mp3tag, and how they are mapped to the internal structures of the different tag formats. Mp3tag is the universal Tag Editor.

> **[Tag Field Mappings – Mp3tag Documentation](https://docs.mp3tag.de/mapping/#rating-mm)**
>
> Overview of all available tag fields, their names in Mp3tag, and how they are mapped to the internal structures of the different tag formats. Mp3tag is the universal Tag Editor.

> **[Tag Field Mappings – Mp3tag Documentation](https://docs.mp3tag.de/mapping/#rating-wmp)**
>
> Overview of all available tag fields, their names in Mp3tag, and how they are mapped to the internal structures of the different tag formats. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 12, 2023, 10:36pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/9 "2023-03-12T22:36:35Z")

</div>

It is ticked.

I'll check the player once again to see if it reads the rating or keeps it in its database.

To simplify the problem i would like to ask another point. Windows File explorer. If you go into any music folder and select to see the rating column it shows the "stars". So in my previous setup Tag&Rename matched exactly the same stars as in windows. 4 stars in Tag&Rename is 4 stars in File explorer.

But in Mp3Tag the popularitometer when I enter value 196 it marks it as 5 stars (Mp3tag|★★★★★) but both file explorer and tag&rename reads this as 4 stars. Could it be that values are not correct in mp3tag script. As I went to the individual files with my comment tags i discover existing values from Windows File Explorer/Tag&Rename are 0=none 1(Poor)=1 star 64=2 stars 128=3 stars 196=4 stars 256=5 stars

I used Mediamonkey to verify if this is true and yes, all three software (file explorer, tag&rename and mediamonkey) share the same standard and read/write correctly in between each other. No scripts are necessary.

 ![MediaMonkey](https://community.mp3tag.de/uploads/default/original/2X/2/25f32823be8bc037c337d09649b649f71e9ab082.jpeg)  
 ![File Explorer](https://community.mp3tag.de/uploads/default/original/2X/4/474b9dab9f529e77217e8e0cebff18ba3bc934dc.jpeg)  
 ![Tag&Rename](https://community.mp3tag.de/uploads/default/original/2X/0/0d139d4b48b401ba0359dcfcd60191ed700444a6.jpeg)

Please look at the highlighted sections. Thay are all the same.

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 12, 2023, 10:37pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/10 "2023-03-12T22:37:44Z")

</div>

But in Mp3Tag it is different. I'm sure there is a way in this brilliant software to get it working as others but how?

 ![Mp3tag](https://community.mp3tag.de/uploads/default/original/2X/7/729a264b5a609f2439df3ddd5b4c2f655867d56c.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: [March 13, 2023, 6:35am UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/11 "2023-03-13T06:35:08Z")

</div>

> [@alien2000a](#):
>
> Could it be that values are not correct in mp3tag script.

Whatever script you use ... you will see the 196 there somewhere and how it translates into stars. You may adapt that according to your preferences.

The script does nothing more (I assume) than to replace a number with a string, consisting of asterisks.  
I still wonder why this is so important - in the end you have to have some values anyway, it is easier to sort and filter by the numeric values - so why the hustle.  
But that is just my personal opinion.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 13, 2023, 8:38am UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/12 "2023-03-13T08:38:23Z")

</div>

In the meantime I have installed VirtualDJ and found a solution for exact this situation:  
a) You can set the rating in stars in VirtualDJ.  
b) You can see the same stars in Mp3tag.  
c) You can NOT set unicode stars in Mp3tag, but you can set the numeric value. This will be reflected in VirtualDJ.  
-\> Please see the Addendum how to enter rating stars `*` directly in the File List.

I have not tested MediaMonkey, Windows File Explorer, Tag&Rename, iTunes or other software. If you need support for these, please ask in the MM-/Microsoft-/Tag&Rename/Apple-Forum.

Solution for VirtualDJ and Mp3tag, step-by-step:  
_(tested with vinstall\_virtualdj\_2023\_b7482\_pc and Mp3tag v3.19b)_

1.) You have to be aware the following VirtualDJ behaviour:

 ![Read & Write behaviour in VirtualDJ](https://community.mp3tag.de/uploads/default/original/2X/f/fcd528beccd31acc7afd298a08a2b612642354dc.png)

2.) You have to set the tags settings in VirtualDJ like this:

 ![Tag Settings VirtualDJ](https://community.mp3tag.de/uploads/default/original/2X/9/95e1b5e7733a60c748fb07ec7f1760aad7e7ec6f.png)  
If you don't set **getTagsAuto** and **setTagsAuto** and **getRatingFromTags** to **Yes** you can not interchange the rating between VirtualDJ and Mp3tag.

3.) You can add a new column in Mp3tag with this Value:  
`$if2(%rating winamp%,$ifgreater($regexp(%POPULARIMETER%,'^.*\|(\d{1,3})','$1'),196,★★★★★,$ifgreater($regexp(%POPULARIMETER%,'^.*\|(\d{1,3})','$1'),128,★★★★,$ifgreater($regexp(%POPULARIMETER%,'^.*\|(\d{1,3})','$1'),64,★★★,$ifgreater($regexp(%POPULARIMETER%,'^.*\|(\d{1,3})','$1'),1,★★,$ifgreater($regexp(%POPULARIMETER%,'^.*\|(\d{1,3})','$1'),0,★,))))))`

 ![image](https://community.mp3tag.de/uploads/default/original/2X/d/dfe2bc2fac0a773f4b1894c7d5de5c9a8507eb4d.png)

This adjusted Value reflects the way VirtualDJ writes it's rating into the tag POPULARIMETER:

![id3v2-POPULARIMETER from VirtualDJ](https://community.mp3tag.de/uploads/default/original/2X/b/b118783d34e68326f77764d9391a2487c5449a89.png)  
It seems, that VirtualDJ only writes `|1` or `|64` or `|128` or `|196` or `|255`

4.) The final result in Mp3tag looks like this:

 ![Stars in Mp3tag](https://community.mp3tag.de/uploads/default/original/2X/8/814065de5799fc29fcc6e89c7ebd949a7edaf329.png)  
If you want to change the ratings in Mp3tag, you have to set the POPULARIMETER values as numbers, not as stars. You can enter them directly in the POPULARIMETER column (or in a Tag Panel field %popularimeter% you could also add).  
These numbers are 1 for 1 Star, 64 for 2 stars, 128 for 3 stars, 196 for 4 stars and 255 for 5 stars.

5.) The very unusual problem lies inside VirtualDJ:  
As you know from point 1.) VirtualDJ will only read the tags ONCE into its database. Every later change outside VirtualDJ will not be re-imported automatically in its database!  
~~If you want to "refresh" the VirtualDJ database, the only way I found is to (slighty) change the filename and reimport this file into VirtualDJ.~~  
You have to ask in the VirtualDJ-Forum, why this current behaviour should be the preferred one.

**Corrigendum 13.03.2023, 15.30 Uhr:**  
I eventually found a workaround to "reload" the tags in VirtualDJ without changing the filename.  
It seems that selecting the changed tracks in VirtualDJ and right click on them, selecting the context menu  
**Batch -\> Reload tags**  
does exactly that: Reloading the externally changed tags.  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/c/ca8573e00aaee8cd73f63b26bdf01477122a4b01.png)

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 13, 2023, 2:13pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/13 "2023-03-13T14:13:13Z")

</div>

Thank you so much for taking time to investigate this further. I will follow your instructions and stick to this method from now on. All the best.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 13, 2023, 3:25pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/14 "2023-03-13T15:25:08Z")

</div>

**Addendum, 13.03.2023, 16.30 Uhr:**

There is an additional way to apply the star rating using "[Custom list values](https://docs.mp3tag.de/customization/tag-panel/#editing-fields)" for the Field `POPULARIMETER` that let you choose your own unicode stars like ★ from a drop-down-box in the Tag Panel.

All you need is to add a new field to your Tag Panel like this (you can name it as you like, in this example it's called POPM):

 ![POPM with Drop-Down-Box #2](https://community.mp3tag.de/uploads/default/original/2X/b/b90c926d6d47b92b75eef573cc122d090f03feba.png)

This allows you to choose the stars for your selected tracks from the POPM drop down box in the Tag Panel:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/fe5de6c8071284d5f43f53fe3f377ddef08b7ab0.png)

* * *

If you prefer to enter the stars directly in the File List for every single track, you can also achieve that.  
You need to add a column with the Value and Field %POPULARIMETER%  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/9/9b3dc809ba3316d63a442669184a0ef45b0ce621.png)

In the File List you can enter the amount of stars directly, like \* for one star or \*\* for two stars.  
Please be aware that only the usual `*` (Hex 0x2a, Dec 42, as directly available on your keyboard) will be automatically translated into the according rating number.  
Other entered Unicode characters like ★ will not be automatically translated in Mp3tag!

Demo from File List \* input:  
 ![Add Stars directly into POPULARIMETER field in File List](https://community.mp3tag.de/uploads/default/original/2X/c/ca93be0a21c61f8b3f54976f7bb9a3bff3efa9d5.gif)

---

<div class="post-metadata">

### Author: ![alien2000a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@alien2000a](https://community.mp3tag.de/u/alien2000a)
#### Post date: [March 14, 2023, 6:53pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/15 "2023-03-14T18:53:43Z")

</div>

Wow. This is even a better solution. I couldn't thank you enough for taking all the time to help me. I really appreciate this.

---

<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: [April 13, 2023, 6:54pm UTC](https://community.mp3tag.de/t/set-rating-for-import-in-virtualdj/60352/16 "2023-04-13T18:54:24Z")

</div>

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