foobar title formatting
Jan 11, 2009 at 4:41 PM Thread Starter Post #1 of 8


Headphoneus Supremus
Sep 16, 2005
Doubt anyone could help, but...

90% of my music is in FLAC, so instead of having a bitrate or codec column, I'd like to set a condition. So, say if bitrate<350 the album name would be red.


...banned on hydrogenaudio....nazi-mod.
Jan 11, 2009 at 7:24 PM Post #2 of 8
well it would be better to have that condition be based on codec instead of bitrate since it's possible for FLAC to show bitrate lower than 350 especially old mono recordings...

though i'm not sure how to do it
Jan 11, 2009 at 9:01 PM Post #3 of 8
^Considered this, but it makes little difference.

Codec it'd be; 'If Codec = lossy codec then %album% is red.

Bitrate it'd be; 'If Bitrate = <350 then %album% is red.
Jan 12, 2009 at 12:52 PM Post #5 of 8
I know it is certainly possible.

Check this, a $if function: ''If condition is met[codec is lossy/bitrate low], do something[make title red]. Otherwise do something else[just display title in default colour].

Thing is I'm not exactly au fait with typing it, I know the importance of a missing ' or ,.

edit - Nice how encoding is a function, i.e. so it'd be 'If condition is met[codec is lossy], '...

Nice2 - Every song of mine has an encoding tag.
Jan 13, 2009 at 2:51 AM Post #6 of 8
You'll probably need columns UI to do coloring in the playlist.

Make a new column using the following string



Compares (case insensitive) the encoding field with the text 'lossy', if true, colors the following text (in this case the album name) red else colors it black (if you prefer it to be deault color then remove the $rgb(0,0,0) after the comma).

This should work. I use Default UI so I can't test it currently.

P.S the encoding tag is an inbuilt feature of foobar2000. There probably is a list of codecs that are lossless/lossy in the code.
Jan 13, 2009 at 11:55 AM Post #7 of 8
^Thanks a lot.
Title formatting is title formatting, so I doubt it matters which UI you use?

In fact got '$if()' in another column[stoeled from an old theme, not mine].

edit - It works(Y).

Users who are viewing this thread