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: Compression/Quality ratio bar (for trackinfo panel) (Read 19239 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Compression/Quality ratio bar (for trackinfo panel)

Reply #25
2 tool++

can you explain please what "infosexual" means?  Maybe i'm having infosexual layout without even knowing it?
(is it connected to the colours in some twisted way?)



A term I made up for layouts that have boxes of stuff everywhere - not necessarily a bad thing but I think a few users do have a lot of unnecessary stuff just to look cool.

Not necessarily cluttered, but by infosexual I just mean layouts that have a lot of information everywhere.

But that aside, this is a really good idea, hats off
hi

Compression/Quality ratio bar (for trackinfo panel)

Reply #26
Nice term,gotta remember it and use it to confuse people 
PS The good news are that my layout is probably not infosexual
Favourite artist:CD-R
Favourite album:700MB

Compression/Quality ratio bar (for trackinfo panel)

Reply #27
Where in the code can I change the font and text color of the Remark (Insane Quality  part).  I want the text to remain White and 12 points. I changed it in the panel but that only seemed to change the Bitrate.

THX

Compression/Quality ratio bar (for trackinfo panel)

Reply #28
Where in the code can I change the font and text color of the Remark (Insane Quality  part).  I want the text to remain White and 12 points. I changed it in the panel but that only seemed to change the Bitrate.

THX


Correct me if i'm wrong,but i believe "live"  font size changing inside trackinfo panel is still impossible in current version,you have to set font definitions for the whole panel in "settings" tab.
Favourite artist:CD-R
Favourite album:700MB

Compression/Quality ratio bar (for trackinfo panel)

Reply #29

Where in the code can I change the font and text color of the Remark (Insane Quality  part).  I want the text to remain White and 12 points. I changed it in the panel but that only seemed to change the Bitrate.

THX


Correct me if i'm wrong,but i believe "live"  font size changing inside trackinfo panel is still impossible in current version,you have to set font definitions for the whole panel in "settings" tab.



I did that but only the word "Bitrate" changed.  The words "Insane Quality" are still grey.  I have a darker background and these terms don't show up unless I hit "CD Quaility"  then they turn white.  So,  "live" changing, as you call it, is occuring.

BTW,  I'm running beta 5 with all available plugin updates.

Compression/Quality ratio bar (for trackinfo panel)

Reply #30
2 ftboomer:
Suggestion:in my code the bitrate line goes to output first,then next line is the bar and the next one is quality
so i believe you should repeat the font sizing command after the bar is displayed (just before
"$ifequal($get(verbal_mode),1,...")
Question:How do you do it?
Favourite artist:CD-R
Favourite album:700MB

Compression/Quality ratio bar (for trackinfo panel)

Reply #31
Here's what I have.  I actually modified it to be centered horizontally:


Bitrate 400Kbps  (BAR)  CD Quality


Looking at this,  what would I change to make "CD Quality" section remain white text, no matter which quality level is displayed? 
Code: [Select]



//22-cahracter long version
$if(%isplaying%,
//change to the desired symbol
$puts(symbol,$char(9608))
//1-bar+comment,0-bar only
$puts(verbal_mode,1)
Bitrate:$info(bitrate)KB/s
$puts(precent,$div($mul(100,$info(bitrate)),1411))
$puts(precent,$muldiv($get(precent),20,34))
$puts(yellowtr,$muldiv(250,$get(precent),8))
$puts(greentr,$muldiv(250,$get(precent),20))
$puts(redsh,$muldiv(100,$get(precent),8))
$puts(greensh,$muldiv(100,$sub($get(precent),8),12))
$if($greater(9,$get(precent)),
$transition($repeat($get(symbol),$get(precent)),$rgb(250,0,0),$rgb(250,$get(yellowtr),0))
$transition($repeat($get(symbol),$sub(8,$get(precent))),$rgb(100,$get(redsh),0),$rgb(100,100,0))
$transition($repeat($get(symbol),12),$rgb(100,100,0),$rgb(0,100,0))
$rgb(100,100,100)$repeat($get(symbol),2)
)
$if($and($greater($get(precent),8),$greater(20,$get(precent))),
$transition($repeat($get(symbol),8),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),$sub($get(precent),8)),$rgb(250,250,0),
$rgb($sub(250,$get(greentr)),$get(greentr),0))
$transition($repeat($get(symbol),$sub(20,$get(precent))),$rgb($sub(100,$get(greensh)),100,0),
$rgb(0,100,0))
$rgb(100,100,100)
$repeat($get(symbol),2)
)
$if($greater($get(precent),20),
$transition($repeat($get(symbol),8),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),12),$rgb(250,250,0),$rgb(0,250,0))
$rgb(250,250,250)$repeat($get(symbol),2)
)

$ifequal($get(verbal_mode),1,

$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'),
))


Compression/Quality ratio bar (for trackinfo panel)

Reply #32
Code: [Select]
    

//22-cahracter long version
$if(%isplaying%,
//change to the desired symbol
$puts(symbol,$char(9608))
//1-bar+comment,0-bar only
$puts(verbal_mode,1)
                                                    Bitrate:$info(bitrate)KB/s    
$puts(precent,$div($mul(100,$info(bitrate)),1411))
$puts(precent,$muldiv($get(precent),20,34))
$puts(yellowtr,$muldiv(250,$get(precent),8))
$puts(greentr,$muldiv(250,$get(precent),20))
$puts(redsh,$muldiv(100,$get(precent),8))
$puts(greensh,$muldiv(100,$sub($get(precent),8),12))
$if($greater(9,$get(precent)),
$transition($repeat($get(symbol),$get(precent)),$rgb(250,0,0),$rgb(250,$get(yellowtr),0))
$transition($repeat($get(symbol),$sub(8,$get(precent))),$rgb(100,$get(redsh),0),$rgb(100,100,0))
$transition($repeat($get(symbol),12),$rgb(100,100,0),$rgb(0,100,0))
$rgb(100,100,100)$repeat($get(symbol),2)
)
$if($and($greater($get(precent),8),$greater(20,$get(precent))),
$transition($repeat($get(symbol),8),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),$sub($get(precent),8)),$rgb(250,250,0),
$rgb($sub(250,$get(greentr)),$get(greentr),0))
$transition($repeat($get(symbol),$sub(20,$get(precent))),$rgb($sub(100,$get(greensh)),100,0),
$rgb(0,100,0))
$rgb(100,100,100)
$repeat($get(symbol),2)
)
$if($greater($get(precent),20),
$transition($repeat($get(symbol),8),$rgb(250,0,0),$rgb(250,250,0))
$transition($repeat($get(symbol),12),$rgb(250,250,0),$rgb(0,250,0))
$rgb(250,250,250)$repeat($get(symbol),2)
)

$rgb(250,250,250)
$ifequal($get(verbal_mode),1,

$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'),
))


Copy/Paste This code
Favourite artist:CD-R
Favourite album:700MB

Compression/Quality ratio bar (for trackinfo panel)

Reply #33
Thanks Russell777,  just so I can learn,  where and what did you change.

Compression/Quality ratio bar (for trackinfo panel)

Reply #34
Thanks Russell777,  just so I can learn,  where and what did you change.


See the image:

[a href="http://img121.imageshack.us/my.php?image=136zs.png" target="_blank"]

PS sorry i got  confused alittle,it wasn't your question
Favourite artist:CD-R
Favourite album:700MB

Compression/Quality ratio bar (for trackinfo panel)

Reply #35
can you guys use the CODEBOX tag instead of CODE so that the codes dont end up cluttering the page? thanks

nice code, btw

Compression/Quality ratio bar (for trackinfo panel)

Reply #36
btw, animated ratio bar for VBR is very nice.
for compatibility with CBR $info(bitrate) can be replaced with $if2(%bitrate_dynamic%,%bitrate%)
try it...

Compression/Quality ratio bar (for trackinfo panel)

Reply #37
I've created my own version to improve the customisability.

Just like the one by Russell777, whom I thank for the original idea, it draws a quality bar from color1 to color2 to color3, which are configurable and set to red, yellow, and green by default. You can define where the second color is located in the bar (variable "middle", in percent) to make the red..yellow area thinner or wider. The length of the whole bar is changeable, too. The amount of black (or any other background color) being blended into the dimmed parts can be adjusted using the variable "dimming" (in percent).

It's possible to set the bitrate required to get a completely filled bar. You can decide whether the display should change for variable bitrate tracks or not. For losslessly encoded files, a completely filled bar will always be displayed regardless of the bitrate. Furthermore, It's possible to add a "lossless" indicator at the end with an adjustable length (default: 3), which uses the fourth color (set to white by default).

Code: [Select]
// configuration

$puts(length,25)
$puts(middle,30%)
$puts(symbol,$char(9610))
$puts(color1,$rgb(255,0,0))
$puts(color2,$rgb(255,255,0))
$puts(color3,$rgb(0,255,0))
$puts(dimming,30%)
$puts(blending_color,$rgb(0,0,0))
$puts(maximum_bitrate,320)
$puts(dynamic_bitrate,0)
$puts(lossless_indicator,3)
$puts(color4,$rgb(255,255,255))

// processing

$puts(color1_dimmed,$blend($get(blending_color),$get(color1),$get(dimming),100))
$puts(color2_dimmed,$blend($get(blending_color),$get(color2),$get(dimming),100))
$puts(color3_dimmed,$blend($get(blending_color),$get(color3),$get(dimming),100))
$puts(color4_dimmed,$blend($get(blending_color),$get(color4),$get(dimming),100))

$if($strcmp($info(encoding),lossless),$puts(lossless,1))
$puts(percent,$min(100,$muldiv($if($strcmp($get(dynamic_bitrate),1),%bitrate%,$info(bitrate)),100,$get(maximum_bitrate))))
$if($get(lossless),$puts(percent,100))
$puts(position,$muldiv($get(percent),$get(length),100))
$puts(middle_position,$muldiv($get(middle),$get(length),100))

$puts(normal_bar,
$transition($repeat($get(symbol),$get(middle_position)),$get(color1),$get(color2))
$transition($repeat($get(symbol),$sub($get(length),$get(middle_position))),$get(color2),$get(color3)))

$puts(dimmed_bar,
$transition($repeat($get(symbol),$get(middle_position)),$get(color1_dimmed),$get(color2_dimmed))
$transition($repeat($get(symbol),$sub($get(length),$get(middle_position))),$get(color2_dimmed),$get(color3_dimmed)))

// adjustments for color codes in variables

$puts(normal_bar,$replace($get(normal_bar),$char(3)$char(3),))
$puts(dimmed_bar,$replace($get(dimmed_bar),$char(3)$char(3),))
$puts(color_code_length,$div($strrchr($get(normal_bar),$get(symbol)),$get(length)))
$puts(position,$mul($get(position),$get(color_code_length)))
$puts(length,$mul($get(length),$get(color_code_length)))

// output

$left($get(normal_bar),$get(position))
$substr($get(dimmed_bar),$add($get(position),1),$get(length))

$if($get(lossless),$get(color4),$get(color4_dimmed))
$repeat($get(symbol),$get(lossless_indicator))

$rgb()
Please don't quote the whole code to avoid old versions floating around in case I make some changes.

Enjoy!