Quote:
|
Hey ds- would you mind sharing how you did that top panel which gives the track info with the progress bar underneath?
thanks, fran |
http://www.hydrogenaudio.org/forums/...howtopic=49783
Post #7 from CepiPerez
|
Hey ds- would you mind sharing how you did that top panel which gives the track info with the progress bar underneath?
thanks, fran |
|
Here's my current SCP config, it's a little different from that screenshot but it has an example of glowexpand which does the glow effect:
Item Display Code:
$if($strcmp($mod(%_playlist_number%,2),1),$drawrect(,,,,brushcolor-19-19-19 pencolor-null)) $if(%_selected%,$drawrect(0,0,0,0,brushcolor-0-16-16 pencolor-0-96-96)$textcolor(SYSCOL-9),$textcolor(SYSCOL-8)) $if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8)) $padding(8,0)$font(tahoma,8,,197-199-197) $align(left,middle) $if(%discnumber%,%discnumber%'.',) %tracknumber%. $font(tahoma,8, $if(%isplaying%,bold glow-0-96-96 glowexpand-1,glow-50-50-50) glowexpand-0 ,197-199-197) %title% $font(tahoma,8,,) $align(right,middle) $if(%isplaying%,%_time_elapsed% '/ ')%_length% ' ') Code:
$drawrect(0,0,0,0,brushcolor-0-45-45 pencolor-0-86-86) $padding(5,3) $align(left,top)$font(tahoma,10,bold glow-0-0-0 glowexpand-0,0-196-196)%artist% $align(right,top)$font(,,bold glow-0-0-0 glowexpand-0,0-126-126)%date% '/' %genre% $align(left,bottom)$font(,8,bold glow-0-0-0 glowexpand-0,0-146-146) %album% $align(right,bottom)$font(,7,bold glow-0-0-0 glowexpand-0,0-176-176)AG: %__replaygain_album_gain% '/'$if($strcmp(%codec%,MP3), $if($strcmp(%__codec_profile%,CBR), $if(%__tool%,%__tool% )%bitrate% CBR MP3, %__tool% %__codec_profile%), %codec%) |


// Globals
$puts(active,$rgb(250,250,250))
$puts(back,$rgb(100,100,100))
$puts(alt_font_fix,-2)
$puts(glass_intensity,5)
$puts(window,50)
$puts(scrollback,1)
$puts(symbolinfo,1)
$puts(alt_font,Arial)
$puts(alt_font_size,10)
$puts(alt_font_options,)
$puts(alt_font_fix,)
// Background
///////////////////////////////////////////Draw Borders/////////////////////////////////////////
$drawrect(5,3,600,120,brushColor-null penColor-100-100-100) //border
$drawrect(10,23,46,39,brushColor-null penColor-100-100-100) //track number
$drawrect(60,23,36,39,brushColor-null penColor-100-100-100) //playback order
$drawrect(100,23,110,39,brushColor-null penColor-100-100-100) //play time
$drawrect(214,23,45,20,brushColor-null penColor-100-100-100) //track time
$drawrect(214,45,45,17,brushColor-null penColor-100-100-100) //play/pause
$drawrect(263,23,154,39,brushColor-null penColor-100-100-100) //encoding info
$drawrect(421,23,138,39,brushColor-null penColor-100-100-100) //reserved for rating
$drawrect(563,23,37,73,brushColor-null penColor-100-100-100) //decimal gradation progress bar
$drawrect(10,66,549,30,brushColor-null penColor-100-100-100) //track info
$drawrect(335,100,265,18,brushColor-null penColor-100-100-100) //last played
//Tagged
//$alignabs(338, 103,%_width%,%_height%,,)
$alignabs(350, 103,%_width%,%_height%,,)
$font(lcdmono,10,bold$get(font_options),250-250-250)
Laxx AKA LaxX-StizZy AKA NAP Laxx
// PerTrack
/////////////////////////Stereo Encoding Tagtype RG///////////////////////////////////////
$alignabs(20,8,%_width%,%_height%,,)
$font(arial,8,bolditalic$get(font_options),250-250-250)
$if($stricmp(%channels%,8ch),$get(active),$get(back))7.1
$if($stricmp(%channels%,7ch),$get(active),$get(back))$char(32)6.1
$if($stricmp(%channels%,6ch),$get(active),$get(back))$char(32)5.1$char(32)
$if($stricmp(%__mp3_stereo_mode%,JOINT STEREO),$get(active)JOINT STEREO
$get(back)$char(32)MONO,
$if($stricmp(%channels%,stereo),$get(back)JOINT $get(active)STEREO
$get(back)$char(32)MONO,
$get(back)JOINT STEREO
$if($stricmp(%channels%,MONO),$get(active)$char(32)MONO,
$get(back)$char(32)MONO)))
$if($stricmp($info(encoding),lossy),$get(active) LOSSY$get(back) LOSSLESS,
$get(back) LOSSY$get(active) LOSSLESS)
$if($or($stricmp(%codec_profile%,CBR),
$and($stricmp($info(extrainfo),),$stricmp(%codec_profile%,?),
$stricmp($info(encoding),lossy)),
$stricmp(%codec%,wma)),$get(active),$get(back)) CBR
$if($or($stricmp(%codec%,musepack),$and($stricmp(%codec%,aac),$get(str)),
$info(extrainfo),$strstr(%codec_profile%,VBR)),$get(active),$get(back)) VBR
$if($stricmp(%codec%,vorbis),$get(active),$get(back)) ABR
$if($strstr($info(tagtype),id3v1),$get(active),$get(back)) ID3V1
$if($strstr($info(tagtype),id3v2),$get(active),$get(back)) ID3V2
$if($strstr($info(tagtype),apev2),$get(active),$get(back)) APEV2
$if($stricmp(%codec%,vorbis),$get(active),$get(back)) VC
$if($stricmp(%codec%,flac),$get(active),$get(back)) FLAC
$if($or( %__replaygain_album_gain%,%__replaygain_track_gain%)
,$get(active),$get(back)) R-GAINED
/////////////////////////////////////////Tracknumber///////////////////////////////////////////////
$alignabs(12,21,%_width%,%_height%,,)
$font(7 Segment,30,$get(font_options),250-250-250)
$get(back)$char(56)$char(56)
$alignabs(12,21,%_width%,%_height%,,)
$get(active)$substr([%tracknumber%],1,2)
///////////////////////////////////////////Playback order////////////////////////////////////////
$alignabs(64,25,%_width%,%_height%,,)
$font(wingdings 3,10,bold,)
$if($strstr(%cwb_playback_order%,Repeat),$get(active),$get(back))$char(78)
$if($strstr(%cwb_playback_order%,Shuffle),$get(active),$get(back))$char(70)$char(32)$char(10)
$alignabs(65,35,%_width%,%_height%,,)
$if($strstr(%cwb_playback_order%,Default),$get(active),$get(back))$char(34)$char(34)
$alignabs(60,49,36,%_height%,center,)
$font(lcdmono2,8,bold,)$get(active)
$if($strstr(%cwb_playback_order%,albums),album)
$if($strstr(%cwb_playback_order%,directories),dir)
$if($strstr(%cwb_playback_order%,Default),CONT)
$alignabs(58,49,36,%_height%,center,)
$if($strstr(%cwb_playback_order%,playlist), ALL)
$alignabs(56,49,45,%_height%,center,)
$if($strstr(%cwb_playback_order%,track),track)
//////////////////////////////////////////Buttons////////////////////////////////////////////////////
//$drawrect(63,25,15,13,brushColor-null penColor-100-100-100)
$button2(63,25,0,0,15,13,,,
$if($stricmp(%cwb_playback_order%,'Repeat (track)'),'Repeat (playlist)','Repeat (track)'),)
//$drawrect(77,25,15,13,brushColor-null penColor-100-100-100)
$button2(77,25,0,0,15,13,,,
$if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)',
$if($stricmp(%cwb_playback_order%,'Shuffle (albums)'),'Shuffle (directories)',
'Shuffle (tracks)')),)
//$drawrect(63,37,29,11,brushColor-null penColor-100-100-100)
$button2(63,37,0,0,29,11,,,default,)
//////////////////////////////////////////Time Total////////////////////////////////////////////////
$if(%_time_total%,
$puts(total,$num($div( %length_seconds%,60),2):
$num($mod( %length_seconds%,60),2))
,$puts(total,__:__))
$alignabs(216,25,%_width%,%_height%,,)
$font(7 Segment,12,$get(font_options),250-250-250)
$get(back)$char(56)$char(56):$char(56)$char(56)
$alignabs(216,25,%_width%,%_height%,,)
$get(active)$get(total)
/////////////////////////////////////////Play Pause///////////////////////////////////////////////
$alignabs(222,43,%_width%,%_height%,,)
$font(webdings,12,$get(font_options),250-250-250)
$if(%ispaused%,$get(active),$get(back))$char(59)
$font(arial,10,$get(font_options),250-250-250)
$if($not(%ispaused%),$get(active),$get(back))$char(9658)
//////////////////////////////////////////Codec///////////////////////////////////////////////////
$alignabs(267,27,90,%_height%,left,)
$font(lcdmono,10,bold$get(font_options),250-250-250)
$get(active)$if($stricmp($substr(%codec%,1,7),windows),WMA,
$if($strstr($info(tool),LAME),lame mp3,$lower([%codec%])))
///////////////////////////////Bitrate Samplerate Compression File size/////////////////////////
$alignabs(306,45,%_width%,%_height%,,)
$font(lcdmono,10,$get(font_options),250-250-250)
$font(lcdmono,10,$get(font_options),250-250-250)
$get(active)$char(32)[%samplerate%]
$font(arial,7,$get(font_options),250-250-250)$get(active) Hz
$char(32)$char(32)
$font(lcdmono,10,$get(font_options),)$get(active)
$if(%isplaying%,
$div(%filesize%,1048576)'.'$substr($muldiv(%filesize%,100,1048576),2,2))
$font(arial,7,$get(font_options),)$get(active)$char(32)MB
//////////////////////////////////////////Source////////////////////////////////////////////////////
$puts(str,1)
$alignabs(15,103,%_width%,%_height%,,)
$font(arial,7,bolditalic$get(font_options),250-250-250)
$if($stricmp(ftp,$substr(%path%,1,3)),$get(active),$get(back))NET DRIVE
$char(32)$char(32)
$if($stricmp(\,$substr(%path%,1,1)),$get(active),$get(back))REMOTE PC
$char(32)$char(32)
$if($stricmp($substr(%path%,1,4),http),$get(active)STREAMING$puts(str,),
$get(back)STREAMING)$char(32)$char(32)
$if($or($not($stricmp($strchr($get(removable),$substr(%path%,1,1)),0)),
$stricmp(%codec%,CDDA)),$get(active)REMOVABLE,
$get(back)REMOVABLE)$char(32)$char(32)
$if($and($stricmp($strchr($get(removable),$substr(%path%,1,1)),0),
$stricmp($stricmp(\,$substr(%path%,1,1)),),$stricmp($stricmp(ftp,$substr(%path%,1,3)),),
$not($stricmp(%codec%,CDDA)),$not($stricmp($substr(%path%,1,4),http))),
$get(active)LOCAL DRIVE,$get(back)LOCAL DRIVE)
// PerSecond
/////////////////////////////////////////Playback Time/////////////////////////////////////////////
$puts(min,$div( %playback_time_seconds%,60))
$if($stricmp($len($get(min)),1),$puts(min,0$get(min)))
$puts(sec,$mod( %playback_time_seconds%,60))
$if($stricmp($len($get(sec)),1),$puts(sec,0$get(sec)))
$font(7 Segment,30,,)
$alignabs(102,21,%_width%,%_height%,,)$get(back)
$char(56)$char(56):$char(56)$char(56)
$alignabs(102,21,%_width%,%_height%,,)$get(active)
$get(min):$get(sec)
///////////////////////////////Bitrate Samplerate Compression File size/////////////////////////
$alignabs(267,45,%_width%,%_height%,,)
$font(lcdmono,10,$get(font_options),250-250-250)
$get(active)[%bitrate%]
$font(arial,7,$get(font_options),250-250-250)$get(active)Kb/s
//////////////////////////////////////Progress Bar/////////////////////////////////////////////
$font(lcd2,30,$get(font_options),250-250-250)
$puts(symbol,_)
$alignabs(566,-3,%_width%,%_height%,,)
#LINEHEIGHT,6#
$puts(percent,$num($muldiv(%_time_elapsed_seconds%,100,
%_time_total_seconds%),3))
$if($stricmp($substr($get(percent),1,1),0),$puts(back1,$get(back))
$puts(percent,$char(32)$substr($get(percent),2,3))
,$puts(back1,$get(active)))
$repeat($get(back1)$get(symbol)$char(10),$sub(9,$substr($get(percent),2,2)))
$get(active)$repeat($get(symbol)$char(10),$substr($get(percent),2,2))
$alignabs(581,-3,%_width%,%_height%,,)
#LINEHEIGHT,6#
$repeat($get(back1)$get(symbol)$char(10),$sub(9,$substr($get(percent),3,3)))
$get(active)$repeat($get(symbol)$char(10),$substr($get(percent),3,3))
$alignabs(562,60,%_width%,%_height%,,)
#LINEHEIGHT,20#$char(32)$char(10)
$font(lcdmono,10,$get(font_options),250-250-250)
$if($and(%isplaying%,%_time_total%),
$get(active)$get(percent),$get(active)$char(32)0)
$font(arial,6,$get(font_options),250-250-250)$get(active) '%'
////////////////////////////////////////Track info///////////////////////////////////////////////
$alignabs(40,$add($div(%_height%,5),49),%_width%,%_height%,,)
$puts(title,
['"'%title%'"'][ - %artist%]['/'%album%] ['('%date%')'])
$if($get(symbolinfo),
$if($or($stricmp($substr($ascii($get(title)),2,2),?),
$stricmp($substr($ascii($get(title)),6,6),?)),$char(10)
$alignabs(40,$add($div(%_height%,5),49,$get(alt_font_fix)),%_width%,%_height%,,)
$font($get(alt_font),$get(alt_font_size),$get(alt_font_options)$get(font_options)
,250-250-250)$repeat($char(10),31),
$puts(title,
$lower($replace($upper($get(title)),-,$char(8208),&,+,À,a,Á,a,Â,a,Ã,a,Ä,ae,Å,a,
Æ,ae,Ç,c,È,e,É,e,Ê,e,Ë,e,Ì,i,Í,i,Î,i,Ï,i,Ò,o,Ó,o,Ô,o,Õ,o,Ö,oe,Ù,u,Ú,u,Û,u,Ü,ue,
ß,ss)))
$puts(alt_font_fix,0)
$font(lcd2,12,bold$get(font_options),250-250-250)$repeat($char(10),35)),
$alignabs(40,$add($div(%_height%,5),49,$get(alt_font_fix)),%_width%,%_height%,,)
$font($get(alt_font),$get(alt_font_size),$get(alt_font_options)
$get(font_options),250-250-250)$repeat($char(10),32))$get(active)
$if($greater($len($get(title)),$get(window)),
$if($stricmp($mod($len($get(title)),2),1),
$puts(title,$pad($get(title),$add($len($get(title)),1))),)
$puts(shift,$sub($len($get(title)),$get(window)))
$if($get(scrollback),
$puts(mod,$mod(%_time_elapsed_seconds%,$add($mul($get(shift),2),2)))
$if($greater(3,$get(mod)),$substr($get(title),1,$get(window)),
$puts(mod,$sub($get(mod),2))$puts(flag,$get(mod))
$if($greater($add($get(shift),1),$get(mod)),
$substr($get(title),$add(1,$get(mod)),$add($get(window),$get(mod))),
$substr($get(title),$sub($mul($get(shift),2),$get(mod),-1),
$add($get(window),$sub($mul($get(shift),2),$get(mod),0))))),
$puts(mod,$mod(%_time_elapsed_seconds%,$add($get(shift),2)))
$if($greater(3,$get(mod)),$substr($get(title),1,$get(window)),
$puts(mod,$sub($get(mod),2))$puts(flag,$get(mod))
$substr($get(title),$add(1,$get(mod)),$add($get(window),$get(mod))))),
$alignabs(40,$add($div(%_height%,5),49,$get(alt_font_fix)),418,%_height%,
$if($get(center),center),top)
$get(active)$get(title))
$font(arial,10,$get(font_options),250-250-250)
$alignabs(526,$add($div(%_height%,5),48),%_width%,%_height%,,)
$if($greater($get(flag),0),$get(active),$get(back))$char(9668)$char(32)
$if($get(scrollback),
$if($or($greater($get(shift),$get(mod)),$greater($get(mod),$get(shift))),
$get(active),$get(back)),
$if($greater($get(shift),$add($get(mod),1)),$get(active),$get(back)))$char(9658)
|
I'll post this again then...
For anyone who uses the trackinfo mod, do you find your song progress bar/counter doesn't keep track? I find mine does that. The default Foobar seekbar is fine, but trackinfo mod won't play ball. Also album art. My album art for columns ui seems to be selective which art to display properly. Some images are blurry - all are .jpegs. Correct ones can be (approx) 300x300 or 1500x1500 for example, but blurry ones can also be a high-ish res. Thanks |

| /// SONG INFO SEPARATOR $transition($repeat($get(sepchar),$get(seplen)),$g et(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g I n f o $get(text1)']'$char(10) $if($strcmp(1,$get(tils)),$if(%title%,$get(head)Ti tle: $get(info)%title%$char(10),),) $if($strcmp(1,$get(arts)),$if(%artist%,$get(head)A rtist: $get(info)%artist%$char(10),),) $if($strcmp(1,$get(albs)),$if(%album%,$get(head)Al bum: $get(info)%album%$char(10),),) $if(%date%,$get(head)Year: $get(info)%date%$char(10),) $if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),) $if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),) $if(%rating%,$get(head)Rating: $repeat($get(info)$get(ratingchar),%rating%) $repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rat ing%))$char(10),) // TECH INFO SEPARATOR $transition($repeat($get(sepchar),$get(seplen)),$g et(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h I n f o $get(text1)']'$char(10) $get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(ann o)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10) $get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info) $if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrai nfo%,vbr),VBR,CBR)) $char(10) $if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),) $if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),) $if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),) $get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1 411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(ann o)'%)'$char(10) $get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$ caps(%__mp3_stereo_mode%), $if(%__channels%,$ifgreater(%__channels%,1,Stereo, Mono),'?'))$char(10) $if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),) $if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__sam plerate%,3,3) KHz $char(10)) $if(%_filesize%,$get(head)Filesize: $get(info) $div(%_filesize%,1048576).$left($num($muldiv($mod( %_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),) $if(%last_played%, // PLAY STATS SEPARATOR $transition($repeat($get(sepchar),$get(seplen)),$g et(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y I n f o $get(text1)']' $char(10),) $if(%play_counter%,$get(head)Played $get(info)%play_counter% times$char(10),) $if(%last_played%,$get(head)Last played on $get(info)$get(time_of_year) at $get(time_of_day)$char(10),) $get(head)$progress(%_time_elapsed_seconds%,%_time _total_seconds%,52,$get(info)'()',$get(head)'-') $get(info)$muldiv(%_time_elapsed_seconds%,100,%_le ngth_seconds%)'%'$ch |
// TECH INFO SEPARATOR // PerSecond
/// SONG INFO SEPARATOR // PerTrack




