Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Favoriting a song (Read 1229 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Favoriting a song

Is there any way I can favorite a song in foobar?

Favoriting a song

Reply #1
I bet there's hundred of threads on the topic..
anyway, you can use the masstagger or the quicktagger components to create a couple of script in order to add/edit a tag field in your file (typically the RATING tag), and associate keyboard shortcuts or UI buttons to these actions.
Then you could add a column to your playlist view to display the value stored in the tag.

I use 6 stars and a negative value for tracks I want to skip (with foo_skip)
so this is the culumns ui code for displaying 6 yellow-orange stars, changing in color depending on the rating. you'll need some good unicode fonts installed, like arial_unicode_ms.
Code: [Select]
$if(%rating%,
$ifequal(%rating%,-1,$rgb(94,48,34,255,172,89)♠,

$blend($rgb(255,100,0,255,255,205),$rgb(255,245,0,255,255,205),%rating%,6)
$repeat(★,%rating%)

$rgb(95,95,95,255,172,89)
$repeat(☆,$sub(6,%rating%))

),$repeat(☆,6))


these are the scripts I use in masstagger:
Code: [Select]
increase rating
$if(%rating%,$min(6,$add(%rating%,1)),3)

decrease
$if(%rating%,$max(0,$sub(%rating%,1)),2)


to set a definite value in one field the command is pretty straightforward..