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: The track mark that has already been played. (Read 2227 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

The track mark that has already been played.

I'm new here, so I wanted to greet everyone first.
And now the question. Can foobar2000 set this function to mark the played songs for eg a different color? Maybe there is such a plug? Thank you.

Re: The track mark that has already been played.

Reply #1
Yes it can. As far as I know at least NG playlist can do that and also ELplaylist. Although this isn't just done with a simple plugin but rather requires some simple scripting usually a bit like this:

Code: [Select]
$ifgreater(%play_counter%,0,$rgb(100,100,100),$rgb(200,200,200))

Using playcounter statistics custom, which will update playcount value, foobar will display different color for whatever text you want to have displayed in a different color.

I use this too but I have it to change text color with a progressive gradient of colors the more something gets played. This is within NGplaylist:



In NGplaylist Style script

Code: [Select]
$set_style(text,
$ifgreater(%play_counter%,9,5e5ac2,
$ifgreater(%play_counter%,5,85729d,
$ifgreater(%play_counter%,3,9482d8,
$ifgreater(%play_counter%,1,c5a0c5,
ffffff))))
,0)

Re: The track mark that has already been played.

Reply #2
or a numerical playcount, e.g. superscript that could be added after the song title:

[$replace(%play_count%,1,$char(185),2,$char(178),3,$char(179),4,$char(8308),5,$char(8309),6,$char(8310),7,$char(8311),8,$char(8312),9,$char(8313),0,$char(8304))]

Re: The track mark that has already been played.

Reply #3
or a numerical playcount, e.g. superscript that could be added after the song title:

[$replace(%play_count%,1,$char(185),2,$char(178),3,$char(179),4,$char(8308),5,$char(8309),6,$char(8310),7,$char(8311),8,$char(8312),9,$char(8313),0,$char(8304))]

Neat, but what about any play counts that go beyond 9? Also for playcounter statistics custom, %play_count% should be %play_counter%.

Re: The track mark that has already been played.

Reply #4
above 9, keep going?... 10,$char(185)$char(8304),11,$char(185)$char(185)...

%play_count% is used with foo_playcount (playback statistics) component

Re: The track mark that has already been played.

Reply #5
above 9, keep going?... 10,$char(185)$char(8304),11,$char(185)$char(185)...

That seems to be completely unnecessary since as it seems foobar already uses the predefined chars for numbers beyond 9. This is nice, gonna use that script myself.