Help - Search - Members - Calendar
Full Version: checking bitrate
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
skazhy
ok, i want to put a thing on status bar wich shows a message if bitrate of song is below eg 100.

so this query - $if(%bitrate% < 100, LOW BITRATE) isnt working. any suggestions?
shakey_snake
QUOTE(skazhy @ Jun 6 2007, 14:19) *

ok, i want to put a thing on status bar wich shows a message if bitrate of song is below eg 100.

so this query - $if(%bitrate% < 100, LOW BITRATE) isnt working. any suggestions?

$if($greater(100,%bitrate%,), LOW BITRATE)

or

$ifgreater(100,%bitrate%, LOW BITRATE,)
skazhy
thanks!
Andreasvb
I use something similar, it's like DDR style.

CODE
$if(%isplaying%,
$puts(DDR_mode,1)

$ifequal($get(DDR_mode),1,
%bitrate% kbps

// Colors
$puts(grey,$rgb(135,135,135))
$puts(white,$rgb(255,255,255))
$puts(yellow,$rgb(235,235,0))
$puts(orange,$rgb(255,150,0))
$puts(green,$rgb(0,200,0))
$puts(blue,$rgb(50,150,230))
$puts(purple,$rgb(200,0,200))

$rgb(100,100,100)
$ifgreater(%bitrate%,300,$get(white) Ridiculous $get(grey),
$ifgreater(%bitrate%,250,$get(yellow) Marvelous $get(grey),
$ifgreater(%bitrate%,180,$get(orange) Perfect $get(grey),
$ifgreater(%bitrate%,150,$get(green) Great $get(grey),
$ifgreater(%bitrate%,120,$get(blue) Good$get(grey),
$get(purple) Boo $get(grey)
))))) quality,%bitrate% kbps))
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.