Thanks for the hint, unfortunately that produced an output where the filled in and not filled in characters were all produced, so if I have a rating of 5 I'd have 10 stars.
I have found a solution that works for me, and I have found that there exists, apparetnly, a field for that prupose, but even after installing the compontent I coudn't get it to work: %rating_stars_fixed% ; but I was able to reproduce it
Here's my code, which is not beautiful but it does the job, if the title is playing the rating is put in the Title field and rating field is replaced by the elapsed time.
$if(%isplaying%,$transition(%_time_elapsed%,$rgb(2,165,253),$rgb(240,15,179)),
/$if(
$stricmp($meta(rating),1),
$rgb(0,0,255)★$rgb(93,93,93)☆☆☆☆$rgb()\,
)
$if(
$stricmp($meta(rating),2),
$rgb(0,0,255)★★$rgb(93,93,93)☆☆☆$rgb()\,
)
$if(
$stricmp($meta(rating),3),
$rgb(0,0,255)★★★$rgb(93,93,93)☆☆$rgb()\,
)
$if(
$stricmp($meta(rating),4),
$rgb(0,0,255)★★★★$rgb(93,93,93)☆$rgb()\,
)
$if(
$stricmp($meta(rating),5),
$rgb(0,0,255)★★★★★$rgb(93,93,93)$rgb()\,
)
$if(
$stricmp($meta(rating),()),
$rgb(100,100,100)☆☆☆☆☆$rgb()\,
)
)
It occurs to me that you could do the following:
Example: $meta(rating) = 2
/$rgb(90,0,200)$repeat(⬟,$meta(rating))
$rgb(15,15,15)$repeat(⬟,5-$meta(rating))
The subtraction operation is not now as it is written exactly. If you need it, I can look for it.
The trick is to paint 3 times the character ⬟ but with the color of background of the playlist (in the example $rgb(15,15,15)) which makes it invisible.
I just now got what you were saying and looked up the proper function, so your suggestion, with the better looking stars and my new Idea of replacing %isplaying%...:
$if(
%isplaying%,
$transition(%_time_elapsed%,$rgb(2,165,253),$rgb(240,15,179)),
$rgb(90,0,255)$repeat(★,$meta(rating))$rgb(93,93,93)$repeat(☆,$sub(5,$meta(rating)))$rgb()
)