HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: jayjo on 2007-11-21 22:31:49

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: jayjo on 2007-11-21 22:31:49
Step By Step Guide To Use Ratings with Foobar v 9.5 beta 4

I had to find these items in multiple threads so I've tried to pull all of the sections mentioning ratings into just one "how-to" file.  Hopefully, this will help people who would like a rating feature in Foobar.  All of these steps use the existing features of the most current Foobar beta version with just one additional component "Quick Tagger", which is officially supported by Foobar.

Step 1: Get Quick Tagger which is needed to update "Rating" tag
Download: Quick Tagger from http://foobar2000.org/components/ (http://foobar2000.org/components/)
Then add this to the foobar2000 /components directory on your hard drive.

Step 2: Set Up Rating Field for PlayList
Open Foobar Preferences -> Display -> Default User Interface -> Colors And Fonts
You will need a Unicode font for this. I used Arial Unicode MS which comes with MS Office. 

Open Foobar Preferences -> Display -> Default User Interface -> Playlist View
Under Custom Columns, Click "Add New" button
Set Name To:        Rating
Set Pattern To:    $pad($repeat(★,%rating%), 5,✩)

Foobar does not use the default font for display so if you cut and paste this into the pattern, you will see that the stars turn into boxes, but it still works in the playlist window.  If you just want to display the number instead of stars, then put %rating% into the pattern.

Step 3: Add "Rating" to Preferences box
Open Foobar Preferences -> Advanced -> Display -> Properties Dialog -> Standard Fields.
Add "Rating=RATING;" to the end of the string
Now when you open the properties field, you can change the rating for single or multiple files, just like you can for other properties.

Step 4: Set Up Quick Tagger for "Rating" tag
Open Foobar Preferences -> Tools -> Tagging -> Quick Tagger
Click "Add New" button

Field Name   Values (semicolon-separated)
Rating      0; 1; 2; 3; 4; 5

I've used 0 as an easy way to clear a rating.  Under this you'll see another box:
Require confirmation before processing more [ ] tracks

Set this to 1 if you don't want confirmation for single updates. Set to a very high number if you never want confirmation on multiple file updates.

Now that this is done, you can <right click> on your song to change the rating.  Choose "Tagging -> Quick Tagger -> Set <Rating> To -> 0 through 5.

Step 5: Set Up Quick Keyboard Shortcuts To Update Tags
Open Foobar Preferences -> General -> Keyboard Shortcuts
Click "Add New" button

Action:
Filter List by: Rating
You'll See: Tagging -> Quick Tagger -> Set <Rating> to
         Underneath are the Values set in Step 3 (0 to 5 for this example)

Key: Press the key you want:
I've used Ctrl 0->5 to set 0 to 5 as my rating when I do single file updates.

Now Click "Save All" button when done

<Added 11/24/2007>
The one problem I've noticed since my original posting is that I can consistently use the keyboard shortcuts for single files, but haven't always been able to use the keyboard shortcut consistently when tagging multiple music files.  This happens even though I set:
Require confirmation before processing more [ ] tracks
to 10000 in Step 4 above.

I can get around this, by using the 2 other options:
1.) <right clicking> then Properties and setting the rating in the property window, or
2.) <right clicking> then Tagging -> Quick Tagger -> Set Value To -> then picking the number for the rating.
<End Edit>

For more detailed problems, you'll need to check with other regular forum members.  This has been working fine for me.  Thanks to the Foobar developers for making a great product.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: 4nt1 on 2007-11-22 00:56:30
nice guide thanks, for some reason my arial unicode was missing so i copied it over from my other pc... both have the same setup no idea where it went..
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: snively on 2007-11-22 06:05:43
thanks
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-24 00:39:10
Hi, thanks for the guide.

I'd prefer to have two shortcuts "Rating up" and "Rating down". I have found the code I need to use :

Rating Up  : $if($greater(6,$add(%rating%,1)),$add(%rating%,1),5)
Rating Down : $if($greater(%rating%,0),$sub(%rating%,1),0)

Unfortunately, I don't know how to define those shortcuts !!! 

I go to Preferences > General > Keyboard shortcuts > Add new, but then what Action must I select in order to be able to enter the scripts somewhere ? I don't understand. Some help would be appreciated.

Thanks in advance. 
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: jayjo on 2007-11-24 16:02:24
I quickly checked whether you could add your two equations into the values list and this did work, but I didn't bind it to a key to see what happens.  You may want to try this out.  If it doesn't work, then post this as a separate message to get one of the developers attention.

I checked Preferences -> Tools -> Tagger -> Quick Tagger

I added your two equations into the Values (comma separated) list after 0 through 5

0; 1; 2; 3; 4; 5; equation1; equation2

I saved this, then went into:

Preferences -> General -> Keyboard Shortcuts

Your new values did show up here.

I would still put in 0 through 5 since it would be better when you right click on the field you could just enter the number directly.  However, you could use your equations when you bind the keyboard shortcuts.
=================================================================

The one problem I've noticed since my original posting is that I can consistently use the keyboard shortcuts for single files, but haven't always been able to use the keyboard shortcut consistently when tagging multiple music files.  I can get around this, by using the 2 other options:
1.) clicking properties and setting rating or
2.) <right clicking> then Tagging -> Quick Tagger -> Set Value To -> then picking the rating.

Hope this helps.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-26 14:51:19
Hi jayjo.

I'm close to it, but I still can't get it to work. I've done as told, added both equations :

Code: [Select]
1; 2; 3; 4; 5; $if($greater(6,$add(%rating%,1)),$add(%rating%,1),5); $if($greater(%rating%,0),$sub(%rating%,1),0)


Then I've assigned shortcuts, etc.

Code: [Select]
Shortcut 1 (Ctrl +) : Quick Tagger : Set <Rating> to : $if($greater(6,$add(%rating%,1)),$add(%rating%,1),5)
Shortcut 2 (Ctrl -) : Quick Tagger : Set <Rating> to : $if($greater(%rating%,0),$sub(%rating%,1),0)


Then I select one file in the Playlist view and I press the keyboard shortcut. The rating field is modified, but what I find (Properties) is just the equation, not the real rating.

e.g. : <RATING> $if($greater(6,$add(%rating%,1)),$add(%rating%,1),5)
instead of <RATING> 1

What's missing ?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: jayjo on 2007-11-27 07:19:57
There's not much documentation with Quick Tagger so I don't know how to get it to evaluate the expression.

You may want to start your own topic by cutting and copying your last message and using a title along the lines of "problem using expressions in Quick Tagger".

Sorry I couldn't help.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Frank Bicking on 2007-11-27 12:50:13
Quick Tagger does intentionally not support titleformatting expressions.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-27 13:20:10
You know Frank, telling people what a component doesn't do is great, thank you very much. But that's a bit short if you understand me.

Telling people why the component doesn't do that is better. You said "intentionally", so there must be some valid reason that "common people" may not be aware of. You seem to know that reason, so please share it so that we can all benefit from it.

And telling people how they can find a workaround (e.g. with another component) is even better. I suppose there are people with working keyboard shortcuts for rating up and down (I didn't invent those two scripts), so how do they do ? I installed Quick Tagger because people told me to do so, but all I want is a solution to rate files efficiently, with quickly-accessible ratings and working shortcuts related to scripts like the ones above. Is that so difficult ? 

I know, it must be harassing to always answer people's questions. But believe me, it's also harassing to beg for answers when we only get bits of information. Despite what some people may think, foobar is not a complicated software : what's complicated is getting the right answers from people like you, just because besides the foobar wiki there doesn't seem to be a complete manual, or some equivalent FAQ with really useful answers, or some nice up-to-date tutorial, etc, etc.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Slotos on 2007-11-27 14:05:00
I understand reasons for one to use +rating and -rating with a 0-100 rate system. But with 1-5? I'd suggest using nootropics if you have troubles remembering what does each number mean for you.

Actually I don't know frequent operations that really need titleformatting. For non-frequent you have Properties window.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-27 14:15:27
Slotos, with a 0-100 rate system, +rating/-rating woudl't be practical at all, because you'd need to press 100 times the +rating key to get a rating of 100. With a 1-5 rate system, +rating/-rating becomes very practical, because you only have two shortcuts and you don't have to go into a sub-sub-sub-menu to find the rating you want. Try it and you might even like it. 

I hope you understand this simple reasoning. But if you don't, I kindly suggest you use nootropics on yourself before trying to impose your own personal conception of ergonomy. Thank you. 
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: aphasia on 2007-11-27 17:13:27
Jose,
The functionality you are looking for could be achieved with the now deprecated masstagger component. If you right click on a file and go to Tagging > Manage Scripts and then click Add under the Actions to perform window. Choose Format value from other fields... and enter RATING in the destination box and your code in the pattern box. Finally save this as a script and you should be able to assign a keyboard shortcut to it (the script name should be in the Tagging > Scripts context menu). Do this once for each of the two operations you want (i.e. rating up and down).

I believe the masstagger is deprecated because when performing operations such as this you are not provided with a preview of the changes which will be made so only use this solution if you are happy with that.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Slotos on 2007-11-27 22:31:19
Jose Hidalgo, 0-100 system is moody. So you can set +1 for every time you enjoy music or -1 for every time music is a bit annoying. And in half a year you'll get quite precise picture of your music taste. Such system doesn't need setting exact value. In opposition 1-5 (1-10, 1-12) system derived from school ratings is based on exact values due to the fact that every mark has its own meaning.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-27 22:39:05
Thanks aphasia, I appreciate and I'll look into it if there's no other solution.

@Slotos :

in half a year you'll get quite precise picture of your music taste

How many songs do you have Slotos ? I have about 18.000 legally-bought songs (1000+ albums). Even in several years, I'm not sure I'd be able to listen ONCE to every one of them... So moody ratings are definitely not for me, thanks.

Besides, please don't try to impose me your own personal point of view (which I respect of course). I have my own tastes, I believe in +1/-1 ratings, and I'm not the only one (like I said, I didn't invent the two little scripts : someone else wrote them).

If only you could try +1/-1 ratings, you'd see that they are a lot faster than menu ratings of course, but also a lot faster than having 5 different shortcuts. Yes, you have to try it to believe it, but that's true.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Slotos on 2007-11-28 00:02:35
Jose, if moody ratings are not for you AND you have huge collection AND you want precise ratings, why bother with +1 and -1 rating in 1-5 rating system? Setting global ctrl+alt+(1-5) shortcut is not bothersome in any way, I was using rating system myself for quite a while and I know what am I talking about from my own experience.

But still if you want to use +1/-1 ratings get masstagger component. It is not hard to understand or use itself. It is said to be problematic but I never had any problems with it. And if you'll find yourself frequently(!) using bunch of really useful scripts with titleformatting you can always make nice post with examples to get good amount of people here to support your request.

Also you can use foo_custominfo component to store ratings without changing your file data. I was using it when I was addicted with ratings. By the way if I remember correctly those two little scripts comes from foo_custominfo "ancestor" foo_quicktag. Though I always thought those were feature examples, not rating system proposition.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jose Hidalgo on 2007-11-28 01:56:34
Why bother with +1 and -1 rating in 1-5 rating system? Setting global ctrl+alt+(1-5) shortcut is not bothersome in any way, I was using rating system myself for quite a while and I know what am I talking about from my own experience.

Of course ctrl+alt+(1-5) is not bothersome. What I say is that, for me personally, ctrl+("+" or "-") is better, and yes, I dare say it's even faster, and I know what I'm talking about too. Like I said, if people were able to try it, there's no doubt that they'd find it really useful (and not bothersome either).

Slotos, you certainly have your own experience, and I have mine. I respect your tastes, but please be kind enough to stop asking "why" my personal tastes are what they are. I wouldn't dare discuss your own tastes, so don't discuss mine. I hope this is the last time I have to tell this. Thank you. 

Also you can use foo_custominfo component to store ratings without changing your file data. I was using it when I was addicted with ratings.

That's a great idea (thanks !), but not for the reasons you expect.  In fact we're several friends with internet-synchronized audio storage servers. This way we can have fault-tolerance (our files are duplicated within our friends' servers) AND we can also access our friends' files that are duplicated within our own servers. But we still want to be able to give files (our files or our friends' files) personal ratings or comments, without imposing them to our friends. So foo_custominfo looks like a great solution for that.  I only hope that it's not been abandoned by its developer (the DL link is broken...).

One last question : does foo_custominfo support titleformat like Quick Tagger should ? 
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: JoFu on 2007-11-28 06:26:07
I wonder if those custom ratings have any affect on the shuffle play mode ?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: unkwn on 2007-11-28 16:46:35
I wonder if those custom ratings have any affect on the shuffle play mode ?


None at all.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: beont on 2007-12-02 13:20:17
I have test the TS solution, but it not works

When i change the rating, it sets into foobar (it's okay) but in de mp3 file (windows explorer) my rating is gone.

Did i do something wrong?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: nightfishing on 2007-12-02 23:05:10
I have test the TS solution, but it not works

When i change the rating, it sets into foobar (it's okay) but in de mp3 file (windows explorer) my rating is gone.

Did i do something wrong?



Not sure what "TS" means, but if you use a component (Custom Info) that writes to a database instead of tags you will get that result.

If you use a Tagger (Quick Tagger, mass tagger) that writes tags, it will write the info to the mp3 file.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: beont on 2007-12-03 12:50:44
TS=Topic Starter

I use Quick Tagger, but it writes a zero rating to the mp3 file. In foobar, i see the correct rating, but not the one i give before with windows explorer.

it looks that he writes in a database.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Slotos on 2007-12-03 14:06:04
AFAIK Windows explorer doesn't support APE tags. And IIRC rating tag is written into APE tag.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: zmur on 2008-01-05 13:00:34
thanks for the guide
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: mrinferno on 2008-01-21 22:10:54
good guide, helped me quite a bit.

kind of expanding on the topic starter solution, i am curious if anyone is aware of and/or can think of a way to display a half star?

I'm basing my ratings on 0 - 5 in .5 increments (All Music Guide's system).

this is what i've come up with so far for my album rating column:
Code: [Select]
$if($greater(%album rating%,1.0),$repeat($char(9733),%album rating%),)$if($strstr(%album rating%,.5),$char(9734),)


this basically shows a filled in black star for each full number and if there is a .5 it adds a white star, this also means i can't use the white star as a padding character.

btw, for anyone curious you can replace the actual stars above with $char(9733) - black & $char(9734) - white, this just references the unicode char code.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: chris h on 2008-02-01 09:31:55
Thanks for this guide.  How can I stop tracks without ratings from showing stars though?  Right now they're dimmed.

Also, I'm guessing that it's impossible to make stars clickable?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: labou on 2008-05-25 08:30:09
this is not working 4 me... i followed the guide step by step and did everything, but i still won't work 4 me. im using 0.9.5.3... i don't know if that makes a difference or not.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: slyght on 2008-05-26 20:28:24
This guide doesn't work for me, too.

When I try to edit properties of a track by setting rating field to any value it woun't be saved.

I guess it's because the track is only part of a file and shown as single one by using a cue-sheet.
Does someone know how to handle rating with cuesheets?

Thanks,

slyght
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: kanak on 2008-05-26 21:32:25
The guide should be updated to reflect the fact that the official play count plugin can now :

1. Store ratings in tags/database
2. Provides its own context menu for this purpose (rendering quicktag unnecessary in this particular context)
3. The rating, play count etc information can be displayed in the "techincal" tab of the properties menu, or can be viewed using the properties UI element.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: slyght on 2008-05-28 22:04:24
The guide should be updated to reflect the fact that the official play count plugin can now :

1. Store ratings in tags/database
2. Provides its own context menu for this purpose (rendering quicktag unnecessary in this particular context)
3. The rating, play count etc information can be displayed in the "techincal" tab of the properties menu, or can be viewed using the properties UI element.

Thank you!

With "Playback Statistics" it works perfectly.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: PrinceOfDarkness on 2008-06-27 21:05:21
Thanks for the guide dude! But I have a question: Is there a way to enlarge only the size of the stars? How ? If so I will be very greatful if you could post it.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Hayden54 on 2008-06-28 01:59:02
I'm using $pad($repeat(★,%rating%), 5,✩) to display my ratings from the plaback stats plugin, but I want it so that the full stars are displayed in a gold colour - $rgb(233,155,12) - but the empty stars are still the default colour.
Is there any way to do this? I've tried putting that rgb code in, along with $rgb(), in various places but i can't get it to selectively colourise it. (Getting the whole thing gold worked fine)
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: kanak on 2008-06-28 02:32:39
$rgb() doesn't work in the default ui.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Hayden54 on 2008-06-28 02:55:38
Sorry, I should have stated that I'm using CUI (didn't know that there was a difference between the two with rgb). So could I get this to work with CUI?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: kanak on 2008-06-28 04:51:39
THE NEW GUIDE (USING OFFICIAL PLAYBACK STATISTICS COMPONENT)

0. Install the latest playback statistics component (get it from the foobar2000 website).
The component stores the statistics in a database (without touching your precious tags). If you want to have it write to tags, change the behavior from Preferences -> Advanced -> Tools -> Playback Statistics -> Automatically synchronize...
YOU DO NOT NEED ANY OTHER COMPONENT (LIKE QUICKTAGGER)

1. To rate a song: Right Click -> Playback Statistics -> Rating, choose the appropriate rating. It's much faster to bind these to a keyboard shortcut (Preferences -> Keyboard Shortcuts). I use Ctrl + 1 for rating 1, Ctrl + 2 for 2 stars etc.
(NOTE: You can only rate songs that are in your media library).

Displaying a rating Column
Preferences -> Display -> Default User Interface -> Playlist View -> "Add new Column"
Use the same code as in the first post:
Code: [Select]
$pad($repeat(★,%rating%), 5,✩)


If you're using CUI, you can use $rgb to get colors:
Code: [Select]
$rgb(233,155,12,233,155,12)$repeat(★,%rating%)$rgb()$repeat(✩,$sub(5,%rating%))



How to import existing statistics to the database:
Right Click -> Playback Statistics -> Import Statistics from file tags.
The stats are now stored in the playcount db, and can be deleted from the tags.

How to write stats to tags from the db:
Right Click -> Playback Statistics -> Write Statistics to File Tags
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Hayden54 on 2008-06-28 05:36:25
Thanks! It's good that you made an updated summary of the whole process.

Just a quick note about the rgb code:
Using $rgb(233,155,12,233,155,12) will make it stay gold even when selected.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Benji99 on 2008-07-07 00:10:11
Thanks for the guide!

I've been trying to find a way to display ratings as well, but I have ratings from AMG with .5 stars that I'd like to show.

Using this string, I was able to show the 1/2 circlea s well as the empty and full circles:
Code: [Select]
$pad($repeat(●,%AMG_CLASSICAL_ALBUM_PERFORMANCE_RATING%)$if($greater($strchr(%AMG_CLASSICAL_ALBUM_PERFORMANCE_RATING%,.),0),◐), 5,○)


NOTE: I am using the function $strchr to look for a . in the tag since I couldnt get $stricmp(%AMG_CLASSICAL_ALBUM_PERFORMANCE_RATING%,.5) to return true, but whatever.

The problem I have is that I want to use this rating within a face column but the sorting order is all screwed up. The sorting is INCREASING order of all the tags with a .5 in them and THEN the proper order is followed.

Anyone know how I can fix this?
Thanks!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: raybass on 2009-02-05 17:09:32
Hi
I have been messing around with the Ratings for couple of weeks now and I wanted to rate my music from 1 - 5 but also to give a rating to tracks which i do not really like but still want to keep on my laptop. 
The following script is what i eventually came up with for use with Foobar 2000 with Columns UI:

// star-rating (single-color version)
//$set_font(%Arial Unicode MS%)
// Star rating for 1-5
$rgb(254,108,1)
$if($greater(%rating%,4),$repeat($char(9733),%rating%),
$if($greater(%rating%,3),$repeat($char(9733),%rating%),
$if($greater(%rating%,2),$repeat($char(9733),%rating%),
$if($greater(%rating%,1),$repeat($char(9733),%rating%),
//Star-rating for zero
$if($greater(%rating%,0),$repeat($char(9733),%rating%),
$rgb(0,128,64)
$if(%rating%,$char(8251))))))))

You could of course use any Unicode Chars of your own choice.

Many thanks for all the input regarding ratings on this posting. 

Raybass

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: jomtones on 2009-04-26 10:18:26
This is great .. but is there any way we can get Foo to use the integrated Windows tags? 

I really like the way tags I make in Mediamonkey will show up in Explorer and elsewhere, but that didn't seem to happen when I set up Foobar with the quicktag method.

Thanks!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: ExUser on 2009-04-26 16:17:58
Please note that the technique described here has been mostly superceded by the official foo_playcount, which allows for ratings without having to tag files.

Windows' MP3 tagging support is useless and buggy, don't bother with it.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: jomtones on 2009-04-26 18:18:28
Thanks... I just enjoy the tagging being accessible from elsewhere - like say my mp3 player, WMP, MM etc... I have no idea what I'll be playing music on in the future so it makes sense to me to use a generic method I can access from anywhere.


Windows' MP3 tagging support is useless and buggy, don't bother with it.

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Lenneth on 2009-04-28 11:45:11
Hi
I have been messing around with the Ratings for couple of weeks now and I wanted to rate my music from 1 - 5 but also to give a rating to tracks which i do not really like but still want to keep on my laptop. 
The following script is what i eventually came up with for use with Foobar 2000 with Columns UI:

// star-rating (single-color version)
//$set_font(%Arial Unicode MS%)
// Star rating for 1-5
$rgb(254,108,1)
$if($greater(%rating%,4),$repeat($char(9733),%rating%),
$if($greater(%rating%,3),$repeat($char(9733),%rating%),
$if($greater(%rating%,2),$repeat($char(9733),%rating%),
$if($greater(%rating%,1),$repeat($char(9733),%rating%),
//Star-rating for zero
$if($greater(%rating%,0),$repeat($char(9733),%rating%),
$rgb(0,128,64)
$if(%rating%,$char(8251))))))))

You could of course use any Unicode Chars of your own choice.

Many thanks for all the input regarding ratings on this posting. 

Raybass


Hi! I just switched to foobar and I am still testing it out. One of my most loved features which I used a lot in Winamp is the ratings so I'm trying to get it back. I have the playcount add-on added but how do I add this script? The custom column will only let me put in one line.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: calosgouzy on 2009-05-02 09:07:08
Thank you very much for make the rating posible. It´s a function very important for me.
I tried with the PLAYBACK STATISTICS COMPONENT but for some reason I couldn´t to edit the rating (five sqares appears in the window but at Right Click -> Playback Statistics -> Rating, choose the appropriate rating - the numbers were disabled!!) ???
So, I decide to use the Quick Tagger Component mentioned at the begining of this topic, now I can use the ratings, but the problem is that the stars are very smalls. How can I fix it?
Thanks for your cooperation!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: boombaard on 2009-05-02 17:33:21
is there any way to get the ratings to outline on the right in the same playlist view column as, say, %title%, while %title% is outlined on the left?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: emn13 on 2009-07-26 17:54:39
For me the empty stars turn out smaller than the filled stars.  I use:
$replace($pad($repeat(★,%rating%), 5,.),.,  · )
Which aligns nicely.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: MartinS on 2009-08-04 17:10:19
Hi guys,

First, thanks for this topic, it's very helpful. Both solutions are working for me.

Just one question: Is it possible with the playback statistics to require confirmation before processing more than one tracks like with quicktaging?

I just tag all an artist's songs instead of the song i wanted to tag... this is rather anoying

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Mar2zz on 2009-08-04 22:20:14
Yes is possible to rate one track at a time (if it is the now playing one). make sure you set the keyboard command or button to context menu / now playing Rating : etc instead of context Rating etc.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: MartinS on 2009-08-05 16:54:01
Yes is possible to rate one track at a time (if it is the now playing one). make sure you set the keyboard command or button to context menu / now playing Rating : etc instead of context Rating etc.


Thanks you, that's safer for someone like me!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: iFred on 2009-08-22 14:24:24
Thanks.

To add buttons :

1. Right-click on the button's bar. Choose Customize Buttons/ [context]/ playback statistics/ Rating and add what you want.

2. To see the button, you have to add an icon. 
I found(*)  a + and a – buttons here : http://www.icone-gif.com/icone/symbole/math/ (http://www.icone-gif.com/icone/symbole/math/)
I put it in a folder  .\Foobar2000\Components\playcount. Put them where you want but remember that you can't  move them after the next step.
Be carefull, only the .ico icons can't be used.

3. Return to the Customize Buttons' window (step 1.) and click on Change Icons. Double-click on the icon you want.

(*) Click on the icon and you see it alone. Right-click on it and select Save Picture As...
To search an icon, go in your web search and try  : icon + -
If you prefer numbers, try : icons number
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: commick on 2009-11-02 21:58:50

Hi,
I have changed now to windows7 and have a problem with this rating option: i do not have the right to update the files. I can fix this problem when I elevate my rights to admin in the foobar2000.exe but then i get another problem to drag&drop music-files directly out of the explorer. Anybody has a solution?

commick
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: sh4d0wscr34m on 2009-11-11 18:19:35
Can anyone tell me how to get it so I can use 10 stars? I've got everything set up to where in the "set rating to" part of the right-click menu it has an option for everything from 0 to 10, but if I click on anything higher than 5 it still only shows 5 stars.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: raybass on 2009-11-14 17:13:13
Hi sh4d0wscr34m
I think that there is a limit imposed on the ratings of 5 as I have tried to use a higher rating with no success before.

BTW I have amended my original script. This one works just like the original and is much shorter lol.

Regards
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: sh4d0wscr34m on 2009-11-19 15:24:37
How about half-stars? Is it possible to get those to work? If so does anyone have a working code? None of theones posted so far have worked.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: radiopayola on 2009-12-01 04:56:32
I was experiencing the issue described in your 11/24/2007 amendment.  Basically, the hotkeys would only rate the track that was playing...not highlighted tracks.  Now with 1.0, it seems the hotkeys will rate highlighted tracks instead of the track that is playing.  Totally awesome.  I was not fond of right clicking and going through a hierarchy of menus to get around it.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Innomen on 2010-01-14 10:03:57
Is there a version of this somewhere updated for v1?

In trying to follow these instructions it seems some of it is redundant and I rolled back my changes.

Thank you for your time and effort.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Pring on 2010-03-14 01:12:06
Hi all, I set up my ratings, which is great. I wonder is there a way to code for a rollover of the stars to simply click on the stars. I set up the keyboard shortcuts, but sometimes you've already got you finger on the mouse and shortcuts are longer than a click. Having both options would be sweet. 
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: SunRa on 2010-03-15 09:27:03
How about half-stars? Is it possible to get those to work?


To show half-stars I use this code (also implementing pseudo-color codes)

Code: [Select]
$if(%rating%,
$ifequal($meta(rating),10,>>>?????,
$ifequal($meta(rating),9,>>?????,
$ifequal($meta(rating),8,>????,
$ifequal($meta(rating),7,????,
$ifequal($meta(rating),6,<???,
$ifequal($meta(rating),5,<<???,
$ifequal($meta(rating),4,<<<??,
$ifequal($meta(rating),3,<<<??,
$ifequal($meta(rating),2,<<<?,
$ifequal($meta(rating),1,<<<?,
)))))))))),)


The trick is very simple: to show 4.5 stars the rating has to be 9 (4.5*2).

I hope that will be useful.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: moogleboi on 2010-04-12 11:03:41
This doesn't work for me. Quicktagger fails to load on my Foobar setup, and it's a pretty basic setup... think it might need updating? :/

"Failed to load DLL: foo_quicktag.dll
Reason: The specified procedure could not be found."
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: zeoh on 2010-06-02 10:35:18
Hi guys. I must admit, I am totally lost. I wanted to use rating but it was too much for me, I just didn't understand. Could I ask you to provide a complete quide how to set everything?
I would like to use 5 stars rating, rating itself in golden stars, the rest up to 5 (and unrated tracks) in black or grey stars. I tried to do as was written here but without success, still no rating visible, even it's rated through Mp3Tag. I don't know which one to use - either Quick Tagger or Playback St.? I beg for help. I also wonder - will the rating be visible in Metadata box once it is all set up correctly?
Same as user Pring I would like to ask if it's possible to rate by just rolling over and clicking on the stars.
Thanks for your help
(http://img84.imageshack.us/img84/4511/ratingq.jpg)
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: dJe781 on 2010-08-11 16:50:20
I used the exact settings described by the OP, and everything's working fine on foobar2000 1.0.3.
Thanks a lot
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: yashiro on 2010-11-05 10:18:48
For anyone digging for info about this.

Simply install the Playback Statistics Component.
Add a New Custom Column with the value [%rating_stars_fixed%]
Go into Keyboard Shortcuts.

'Add new' in the Assigned Shortcuts section. Assign it as NUM PLUS.
In the 'Action' section type rating in the Filter list by: box.
Now select the Rating + function.

'Add new' in the Assigned Shortcuts section. Assign it as NUM SUB.
In the 'Action' section type rating in the Filter list by: box.
Now select the Rating - function.
Click OK.

Now you just need to press + or - while the song is highlighted to change ratings.


For new users having this already setup when they install the statistics component might avoid people asking how to do this all the time.




Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: l_0ver on 2011-02-01 18:00:02
This is great .. but is there any way we can get Foo to use the integrated Windows tags? 

I really like the way tags I make in Mediamonkey will show up in Explorer and elsewhere, but that didn't seem to happen when I set up Foobar with the quicktag method.

Thanks!


Hi! Is there any solution for unified tagging?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Staceyparish on 2011-05-11 23:13:56
Hi,

I followed all the instructions above and got it working great thank you. My question is when I change foobars playlist font under colors and fonts the stars display as boxes and will not add the shaded rater tags how can I get the stars back and keep my font

My Font: Perpetua
Foobar Version: V1.1.6 (Stable)

thanks
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Erich_2 on 2011-05-15 15:15:59
... My question is when I change foobars playlist font under colors and fonts the stars display as boxes and will not add the shaded rater tags how can I get the stars back and keep my font

Use ESplaylist and you'll never have any star problem, because the stars in ESplaylist are not font-stars. Quicktagger for tagging with keyboard shortcuts. You can use mouseclicks for tagging also - but then some adjustments in Preferences - Esplaylist - Behaviour - Rating Editing are necessary.
(Half-star-rating or similar bullshit is not possible).
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: xamcc on 2011-05-20 00:54:24
Jayjo
thanks very much for your post it was extremely useful. I would like to ask for your permission to translate the guide to Chinese and post on my blog (http://hi.baidu.com/v%BF%BC%BE%DD%D3%C3mj/home) if you allow. thank you.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: SASN on 2011-05-20 07:03:07
I went to look around the forums here and found this to be working:

$rgb(250,250,0)$repeat($char(9733),%rating%)$repeat($char(9734),$sub(5,%rating%))$rgb()

The rgb color values does not seem to have any impact in my Foobar2k, and I guess that part of the code is useless. Right now my star icons are simply solid white and white outline. Does anyone know if I can color the star icons yellow?

Using Foobar2k v1.1.6 with Facets.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: tpijag on 2011-05-22 19:47:03
$rgb code is not supported in the default user interface
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Snik4er on 2011-06-27 21:47:27
Nice guide.

Cam this ne posibble for love/ban tracks in lastfm?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Chainyk on 2011-12-03 20:46:48
sometimes i have this (http://img641.imageshack.us/img641/8877/68771279.jpg)
instead of stars
what could it be ?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Erich_2 on 2011-12-03 21:13:04
sometimes i have this, ...what could it be ?

See my post #63 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=59187&view=findpost&p=755904): Use ESPlaylist!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: lunaaaa on 2011-12-14 20:27:38
I been using the play_count plugin, and so far everything works except for my buttons.

I cannot use my buttons to increase/reset/decrease the ratings. If I use the keyboard shortcuts everything goes well. Manually altering them through the context menu isn't an issue either.

What's wrong with the following settings behind my 3 buttons?

(http://i.imgur.com/2Vybq.png)

edit: rather than creating new buttons, I used the next/previous/random as a template and apparently that did the trick.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: RAC0oN on 2011-12-30 18:29:32
This guide doesn't work for me, too.

When I try to edit properties of a track by setting rating field to any value it woun't be saved.

I guess it's because the track is only part of a file and shown as single one by using a cue-sheet.
Does someone know how to handle rating with cuesheets?

Thanks,

slyght

You can make the cuesheet "embedded"

For this simply right click the file (ex: the .FLAC file), then Utilities, Edit CueSheet, and then click Enable embedded cuesheet on this file.  Click load and you can load the cue sheet.  You now are able to edit tag for that particular .FLAC or .APE file.  This is called Embedded Cuesheet.  I always use that what I got 1 big file for one album with .CUEsheet and I want to be able to set rating for particular songs or use Playback Statistics.  You just need after that to disable loading .CUE when you send your file to playlist in your media library or via Explorer Panel if you don't want your album to appear twice when you load it.  To do it, go to to foobar Preferences, Shell Integration, Exclude File Type = *.CUE.  Note that you also have an option in Explorer Tree panel to disable sending CUEsheets to created playlists.  I hope that answers your question...
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: RAC0oN on 2011-12-30 19:08:23
You can to that by changing the size of fonts.


If you use ColumnUI:
Go to Foobar Preferences/ColumnUI/Colors and Fonts/Fonts/Mode: Custom and then change the font size

If you don't (Default User Interface):
Go to Foobar Preferences /Default User Interface/Colors and Fonts/ click the Lists box and choose the right font (ex:Arial Unicode MS that comes with Office) and the font size.

I guess there is no way to change character sizes only for one field (ex: only rating), you need to change font size for all the fields in track list.

In default user interface there is a way to change only the track list font size but in ColumnUI I don't find the way, I need to change all the characters of the software in order to do it (Common (List Items))...  If someone knows a way, tell me.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: RAC0oN on 2011-12-30 19:13:34
Thanks for the cue!  Works for me!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: RAC0oN on 2011-12-30 19:32:38
For me the empty stars turn out smaller than the filled stars.  I use:
$replace($pad($repeat(?,%rating%), 5,.),.,  · )
Which aligns nicely.

It aligns perfectly right when I use the Arial Unicode MS 8pts but for the 7 pts it doesn't align.  Sad I am...
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: gaikokujinkyofusho on 2012-07-26 11:23:28
2012 and it still works (with v1.1.13) thanks so much for this!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: JakeJAMR on 2012-07-29 01:38:18
Thanks for this thread, it was helpful.

Anyone know of anyone, any thread using the "Playback Statistics" to control how often a track is selected in RANDOM or SHUFFLE?

Maybe something that checks/sets a var based on the rating to have the track selected a number on times before it actual plays it, then once it is played, resets the var to 0.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: disko78 on 2013-01-13 11:05:29
Hi,

I am using Foobar v1.2 with Default User Interface under Windows 7 x64. Before that I had previous versions of foobar and rating implementation I found in this topic works like charm but with current version I got problem.

Stars are not filled after assigned but I received rating confirmation message. The font is Segoe UI. I have double checked all settings and all are proper as I follow instructions from the first post in this topic.

Any tip or clue would be helpful
Many thanks
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Andreasvb on 2013-01-13 11:55:26
Try $meta(rating) instead when displaying them.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: disko78 on 2013-01-13 12:27:04
like this?

$pad($meta(★,%rating%), 5,✩)

doesn't work
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Andreasvb on 2013-01-13 13:44:52
No, that is instead of %rating%, the whole thing.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: disko78 on 2013-01-13 21:32:38
$pad($repeat(★,$meta(rating)), 5,✩)

thanks but still no effect
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: disko78 on 2013-01-15 11:43:25
guys please help me out, I am greenhorn in scripting and I am dying to get the rating back to foobar, can't live without it.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: LifeWOutMilk on 2013-01-15 16:42:41
If you use foo_playcount for ratings, then it will allow you to add a column %rating_stars% or %rating_stars_fixed%. By default though, foo_playcount will store ratings in a database as opposed to writing the rating as a tag in the file. This behavior can be changed by setting Preferences->Advanced->Tools->Playback Statistics->Automatically synchronize file tags with statistics.

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: tpijag on 2013-01-15 16:58:48
disko78

as you learn foobar2000 and read threads it is good to keep a couple thoughts in mind. How old is the thread and is it active. This thread was started 3 years ago and directly references an out of date version of foobar2000 and is not very active.

As pointed out above, it is probable that this task is easier to accomplish than the steps outlined in this thread. You could also use foo_simplaylist as your playlist viewer and avoid having to even add a custom column with titleformatting.

regards
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: disko78 on 2013-01-15 22:14:20
I got it now,
Apologies for spamming, thanks a lot for your effort
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Abcdqfr on 2013-02-22 07:03:16
Just thought I'd throw my hunk of script out there. The code's a little ugly, but it works!
Supports FLAC tags as well!

Preview:
Spoiler (click to show/hide)

Code: [Select]
$ifequal(%rating%,100,$char(9733)$char(9733)$char(9733)$char(9733)$char(9733),
$ifequal(%rating%,80,$char(9733)$char(9733)$char(9733)$char(9733)$char(9734),
$ifequal(%rating%,60,$char(9733)$char(9733)$char(9733)$char(9734)$char(9734),
$ifequal(%rating%,40,$char(9733)$char(9733)$char(9734)$char(9734)$char(9734),
$ifequal(%rating%,20,$char(9733)$char(9734)$char(9734)$char(9734)$char(9734),
$ifequal(%rating%,5,$char(9733)$char(9733)$char(9733)$char(9733)$char(9733),
$ifequal(%rating%,4,$char(9733)$char(9733)$char(9733)$char(9733)$char(9734),
$ifequal(%rating%,3,$char(9733)$char(9733)$char(9733)$char(9734)$char(9734),
$ifequal(%rating%,2,$char(9733)$char(9733)$char(9734)$char(9734)$char(9734),
$ifequal(%rating%,1,$char(9733)$char(9734)$char(9734)$char(9734)$char(9734),
$char(9734)$char(9734)$char(9734)$char(9734)$char(9734)))))))))))
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Abcdqfr on 2013-02-22 22:08:53
Seems it didn't like that code anymore...
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: BenB on 2013-02-23 13:35:55
Try one of these:
Code: [Select]
$ifgreater($meta(rating),5,$pad($repeat(★,$div($meta(rating),20)),5,☆),$if($meta(rating),$pad($repeat(★,$meta(rating)),5,☆),$repeat(☆,5)))

$ifgreater($meta(rating),5,$pad($repeat(★,$div($meta(rating),20)),5,☆),$ifgreater($meta(rating),0,$pad($repeat(★,$meta(rating)),5,☆),$repeat(☆,5)))

Either one should do what your script does.

Note that if you have the Playback Statistics component (AKA foo_playcount) installed, %rating% is commandeered by that component and is used to access ratings stored in that component's database. Thus in order to access ratings stored in a file's metadata, $meta(rating) must be used. I don't know if this is the issue you were experiencing with your script, but it's one possibility.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Abcdqfr on 2013-02-23 17:31:24
That's probably why my original script broke. foo_playcount must have bugged after I installed another component.
That code looks so professional. I'm glad I didn't spend too long on mine or I'd feel like total crap right now lol
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jackie78 on 2013-03-30 07:59:59
Hi,

I am using Win7 x64, and I have Arial Unicode MS installed with Microsoft Office 2007, and I can select that font in any program - except Foobar. I need that font to display the stars correctly, but how can I actually select that font? I only have the ordinary Arial available for selection, but Arial Unicode MS is missing

Any idea?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: marc2003 on 2013-03-30 08:15:34
you don't need arial unicode MS to display stars on windows 7. it should work with most fonts and certainly does if you stick with the default of Segoe UI.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jackie78 on 2013-03-30 15:19:48
you don't need arial unicode MS to display stars on windows 7. it should work with most fonts and certainly does if you stick with the default of Segoe UI.


The behaviour on my Win7 x64 is somehow strange:
- the characters definitely don't display with the default font, all I get is squares instead.
- Arial Unicode MS was installed, but it was "disabled" in my fonts folder, I had to right click the font and enable it (German Translation of Windows is "Einblenden", I have no idea what that context menu entry is named in an english Win7).

so Arial Unicode is working now, but how do I get it working with Segoe UI? This is what my Fonts folder looks like:

(http://www.abload.de/thumb/fonts1jkbq.png) (http://www.abload.de/image.php?img=fonts1jkbq.png)
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: marc2003 on 2013-03-30 15:37:33
you shouldn't have to do anything. it should just work. i'm running windows 7 x64 myself and i have stars in my playlist. i haven't touched any font or any other windows system settings.

you're not running google chrome are you? it seems to interfere with special characters in this thread:

http://www.hydrogenaudio.org/forums/index....showtopic=99606 (http://www.hydrogenaudio.org/forums/index.php?showtopic=99606)

other than that, i have no idea how you would troubleshoot this.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Jackie78 on 2013-03-30 15:55:14
you shouldn't have to do anything. it should just work. i'm running windows 7 x64 myself and i have stars in my playlist. i haven't touched any font or any other windows system settings.

you're not running google chrome are you? it seems to interfere with special characters in this thread:

http://www.hydrogenaudio.org/forums/index....showtopic=99606 (http://www.hydrogenaudio.org/forums/index.php?showtopic=99606)

other than that, i have no idea how you would troubleshoot this.


Well, maybe another setup interferred? I cannot tell since formerly, I never tried, but what I realized: I can display Unicode Font $char(9733) without problems in MS Office 2007 when I select Segoe UI, but what office does is instead change the font from Segoe UI to "MS Gothic", so there seems to be some font indirection, I don't know exactly, since I am not familiar with how Windows handles fonts at all. When I select MS Gothic in Foobar, the star is displayed, but the rest of the text is in MS Unicode too, which isn't nice.

Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: zooliat on 2013-04-24 06:34:16
There are so many codes and references on other code on this thread.. can anyone please post a step-by-step tutorial on how to make ratings work on clean 1.2.5 with default UI? Thanks.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: IanH on 2013-05-22 22:37:44
Should anyone be interested, I used a simple workaround to avoid changing the display font. Simply go to Word (or any other program you use), change to Microsoft Sans Serif font, which is the default font you get when installing foobar2000, go into the "Insert special character mode", select again Microsoft Sans Serif, and look for the two characters you want to use. In my case, I finally opted for a single black dot, and the space character:

$pad($repeat(●,%rating%), 5, )

The space is just after the 5,

As can be seen by comparing this with the original script which was:

$pad($repeat(★,%rating%), 5,✩)

I have simply changed the star characters ★ and ✩ for ● and <space> respectively.

I've also found that viewing my ratings column such as:

●●●

●●●●
●●
●●●●●

looks cleaner than:

★★★✩✩
★✩✩✩✩
★★★★✩
★★✩✩✩
★★★★★

Maybe this last part is a question of personal taste, but I hope the first part of this post will be helpful for those that don't want to change the default fonts in foobar2000.

My personal gratitude to jayjo for having gone to the bother of starting this topic with his "step by step guide", which is now over five years old and still live and kicking!!!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: adamf9898 on 2013-05-28 03:58:03
Note that if you have the Playback Statistics component (AKA foo_playcount) installed, %rating% is commandeered by that component and is used to access ratings stored in that component's database. Thus in order to access ratings stored in a file's metadata, $meta(rating) must be used. I don't know if this is the issue you were experiencing with your script, but it's one possibility.


THANK YOU SO MUCH!!! I was having issues and all I had to do was replace %rating% with $meta(rating) and now I can use foo_playcount and the rating guide that this told  Again, THANK YOU!!!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: innn on 2013-06-02 07:11:36
I have a question is is possible to have play count stats as  number in a column next to the rating column?
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: db1989 on 2013-06-02 10:43:26
Your question is not really relevant to this thread, but anyway. Yes, it should be trivial to add a new column to display the play count. It might help if you had specified which UI and playlist viewer you are using, but the process should be much the same regardless.

Are you using foo_playcount (http://www.foobar2000.org/components/view/foo_playcount)? If so, check its documentation (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playback_Statistics_v3.x_%28foo_playcount%29) and see that the number of plays is stored in a database (not in the files) and is accessed in title-formatting using the title-formatting mapping %play_count%. Simply add a new column, in whichever way your UI/viewer requires, and enter this mapping as its string.

If you are not using foo_playcount and store your statistics within the files themselves, managing thbem in some other way, use whichever mapping corresponds to your files.

If you do have foo_playcount installed but also have files with a count stored internally, you can use said count as normal unless its name is play_count. If so, foo_playcount hijacks the mapping %play_count% as noted above, so the internal count should be accessed using $meta(play_count) instead.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Xencored on 2013-06-06 15:00:33
Step 4: Set Up Quick Tagger for "Rating" tag
Open Foobar Preferences -> Tools -> Tagging -> Quick Tagger
Click "Add New" button


Howdy I don't have this quick tagger option.

(http://i.imgur.com/RnVmo6L.jpg)
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: tpijag on 2013-06-06 15:18:29
Did you follow the first step?

Quote
Step 1: Get Quick Tagger which is needed to update "Rating" tag
Download: Quick Tagger from http://foobar2000.org/components/ (http://foobar2000.org/components/)
Then add this to the foobar2000 /components directory on your hard drive.


keep in mind this thread is mostly 5 plus years old.
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: _phenix_ on 2013-07-29 20:59:09
respect for the good plugin!
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: fohrums on 2014-11-08 14:23:29
doesn't work with foobar2000 installed via wine in linux (KDE). It shows a blank square box. 
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: joe2 on 2014-12-17 20:07:55
Quick Tagger does intentionally not support titleformatting expressions.


Is there any chance that Quick Tagger could support such expressions at some point, or is this technically non-trivial?

Does it support any kind of programmatic value at present?

My use case: I'd like a keyboard shortcut that writes the current %playback_time% to the selected file's metadata.*

Thanks.

(* I've yet to look closely for a workaround, but I will shortly. :)
Title: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Seraiel on 2015-12-25 23:38:01
Thx for this thread. I have the media-library disabled, because I 1. don't need it and 2. don't want it, because it can cause I/O errors, when another program is writing to a file while foobar updates the library. I'm therefore dependant on this possibility to rate tracks, as I cannot use foo_playcount.

I wanted to give back by adding, that there is the "Segui UI Symbols" font, with which the Stars align perfectly, using the code from page 2, and I believe, that that font looks exactly like Segui, so using Segui UI Symbols for the playlist is another option to make the stars align while preserving, that the fonts match.
And to answer the question for possibilities on how to use the rating that Windows-explorer uses: Afaik, there are 3 options. 1. Install the property handler of dbpoweramp 2. install the property handler from http://sourceforge.net/projects/taglibhandler/ (http://sourceforge.net/projects/taglibhandler/) and 3. use Audio-shell http://www.majorgeeks.com/files/details/audioshell.html (http://www.majorgeeks.com/files/details/audioshell.html) . Caution though: The property handler of dbpoweramp is the best developed, it still doesn't display .m4a ratings properly though, because it uses a 1-10 scale with those, so rating a file with 5 results in the file being shown with 3* in Windows (5/2 rounded up) . All other ratings work properly afaik though. And I've not tested the property handlers I linked at 2. and 3. , so those might have bugs aswell. I haven't heard anything bad about the open-source-one below 2. , and if Major Geeks links something, it's usually also good. So while maybe none of those solutions is perfect, they'll all at least fix parts of the bugged ratings in the Explorer. Better make a restore-point, if you try 2. or 3. though, and report about them if you test them plz.

And thx for the tip with the embedded .cue-sheet, that one was also very nice! :thumbsup:
Title: Re: Step by step guide to use ratings with foobar2000 0.9.5
Post by: Korwin on 2021-07-24 18:20:02
Now Click "Save All" button when done
Selecting a .mp3 file and pressing [Ctrl + 1] (or [Ctrl + 2], ...) does not change the track rating displayed in the "Selection Properties" area. RMB / "Playback Statistics" / "Rating" / [...] works fine, but it takes a very long time to navigate through all the nested menus.

foobar2000 v1.6.7 beta 16, Quick Tagger 1.0.3 (2010-09-01).


Upd.

https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Quick_Tagger_(foo_quicktag) (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Quick_Tagger_(foo_quicktag)) —
Quote
Enter "$meta(rating)" in "Pattern" field
I had %rating% set, which worked well with the Playback Statistics 3.0.4 component (foo_playcount).

Quote
remember to disable the "Playback Statistics" (foo_playcount) component since it conflicts with your manually managed ratings
It's a shame that I had to choose between quick rating and listening statistics. I chose the latter.