Compression\quality bar for trackinfo panel
What it does:it visualizes the compression of the music file you're listening to+tells you what quality is it.

It's better to have it in separate trackinfo panel,this way you'll be able to set the font and font size without
messing up your existing trackinfo design,but again it's optional and up to you.
(The font you see at the image is Lucida Sans Unicode 8pt)
CODE
$if(%isplaying%,
//change to the desired symbol
$puts(symbol,$char(9610))
//1-bar+comment,0-bar only
$puts(verbal_mode,1)
Bitrate:$info(bitrate)KB/s$char(10)
$puts(precent,$div($mul(100,$info(bitrate)),1411))
$puts(yellowtr,$muldiv(250,$get(precent),13))
$puts(greentr,$muldiv(250,$get(precent),34))
$puts(redsh,$muldiv(100,$get(precent),13))
$puts(greensh,$muldiv(100,$sub($get(precent),13),24))
$if($greater(14,$get(precent)),
$transition($repeat($get(symbol),$get(precent)),$rgb(250,0,0),$rgb(250,$get(yellowtr),0))
$transition($repeat($get(symbol),$sub(13,$get(precent))),$rgb(100,$get(redsh),0),$rgb(100,100,0))
$transition($repeat($get(symbol),21),$rgb(100,100,0),$rgb(0,100,0))
$rgb(100,100,100)$repeat($get(symbol),3)
)
$if($and($greater($get(precent),13),$greater(35,$get(precent))),
$transition($repeat($get(symbol),13),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),$sub($get(precent),13)),$rgb(250,250,0),
$rgb($sub(250,$get(greentr)),$get(greentr),0))
$transition($repeat($get(symbol),$sub(34,$get(precent))),$rgb($sub(100,$get(greensh)),100,0),
$rgb(0,100,0))
$rgb(100,100,100)
$repeat($get(symbol),3)
)
$if($greater($get(precent),34),
$transition($repeat($get(symbol),13),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),21),$rgb(250,250,0),$rgb(0,250,0))
$rgb(250,250,250)$repeat($get(symbol),3)
)
$ifequal($get(verbal_mode),1,
$char(10)
$if($greater(161,$info(bitrate)),'Poor quality')
$if($and($greater($info(bitrate),160),$greater(201,$info(bitrate))),'Average quality')
$if($and($greater($info(bitrate),200),$greater(251,$info(bitrate))),'Good quality')
$if($and($greater($info(bitrate),250),$greater(321,$info(bitrate))),'Excellent quality')
$if($and($greater($info(bitrate),320),$greater(501,$info(bitrate))),'Insane quality')
$if($greater($info(bitrate),500),'CD quality'),
))
It works for me,but if you have problems with it plese tell me,enjoy
P.S. if i'll get a nice feedback i'll also write a column version of this code but feel free to do it yourself




