Hi,
I've got another question. Is it possible that the bitrate-number (red) is updated automatically?
Because I use variable bitrate (blue) and the number only changes if I minimize the foobar window and open it again.
Here is a picture:
And why there is no number in front of the "Bit"?
I don't think that's possible to do with panels_ui. The reason there is no number infront of "Bit", is that mp3 files and other lossy files do not have a %bitspersample% tag. If you use FLAC or WAV though, it will show the Bitrate.
I'm working on an update and might try to see if I can get it to hide the Bit depth portion when playing lossy files. I'm also trying to add some new buttons for tagging and file organization.
For the person who wanted to try and back-port it, here it is:
// Foo lttma (Listen To The Music Again) originally by lassekongo83.deviantart.com, adapted by moglenstar.deviantart.com
// changes from original lttm:
// - made layout fluid, so window can now be resized
// - remade all graphics, designed to suit VistyV2 visual style (but go well with most styles)
// - added toggleable albumart/trackinfo side panel
// - changed views to scpl and albumlist, removed old trackinfo and playlist selector
// - added buttons to search current artist on last.fm/wikipedia.org/oink.cd
// - added functioning custom seekbar ability, using foo_uie_powerpanels from http://borgusiek.neostrada.pl/foobar/
//
// enjoy and listen to the music again!
//
// lttmam Modifications by fwqhgads
// - added Quick Search Toolbar
// - added RateYourMusic search button
// - added AlbumArt/Artist image download buttons
// - added Discogs tagging info
// - added File Info tag space
// - changed album art display method
//
// Background
$drawrect(0,0,%_width%,%_height%,pencolor-null brushcolor-238-238-238)
$imageabs2(0,0,,,,,0,0,/lttmam\gnome_cd.png,)
$imageabs2(0,0,,,,,8,$sub(%_height%,35),/lttmam\tb_end.png,)
$imageabs2(0,0,,,$sub(%_width%,166),,12,$sub(%_height%,35),/lttmam\tb.png,NOKEEPASPECT)
// PerSecond
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,166),%length_seconds%))
,)
$ifgreater($get(progress),0,$padding(0,0)$imageabs2(0,0,,,$get(progress),,10,$sub(%_height%,33),/lttmam\tb-fill.png,),)
$panel(SeekPanel,'Seek Panel',10,$sub(%_height%,33),$sub(%_width%,164),21,)
// PerSecond
$font('HaxrCorp 4088',9,normal,0-0-0 shadow glowalpha-1)
$if(%isplaying%,
$alignabs(20,$sub(%_height%,38),647,30,left,middle)%playback_time%
,
$alignabs(20,$sub(%_height%,38),647,30,left,middle)0:00
)
// PerTrack
$button($sub(%_width%,154),$sub(%_height%,35),0,0,0,0,/lttmam\btn-stop.png,/lttmam\btn-stoph.png,Stop,)
$button($sub(%_width%,130),$sub(%_height%,35),0,0,0,0,$if($or(%ispaused%,$not(%isplaying%)),/lttmam\btn-play.png,/lttmam\btn-pause.png),$if($or(%ispaused%,$not(%isplaying%)),/lttmam\btn-playh.png,/lttmam\btn-pauseh.png),$if($or(%ispaused%,$not(%isplaying%)),Play,Pause),)
$button($sub(%_width%,106),$sub(%_height%,35),0,0,0,0,/lttmam\btn-prev.png,/lttmam\btn-prevh.png,Previous,)
$button($sub(%_width%,82),$sub(%_height%,35),0,0,0,0,/lttmam\btn-next.png,/lttmam\btn-nexth.png,Next,)
$button($sub(%_width%,58),$sub(%_height%,35),0,0,0,0,/lttmam\btn-open.png,/lttmam\btn-openh.png,Add Files...,)
$button($sub(%_width%,34),$sub(%_height%,35),0,0,0,0,/lttmam\btn-menu.png,/lttmam\btn-menuh.png,MENU,TOOLTIP: Menu)
// PerTrack
$if(%_isplaying%,
$settitle(%artist% - %title%)
$settray(%artist% - %title%)
,
$settitle(Foobar2000)
$settray(Foobar2000)
)
// PerTrack
$puts(yOffset,0)
$if($strcmp($getpvar(side_width),10),,
$if(%isplaying%,
// toggle artwork
$select($eval($getpvar(arthide) + 1),
// dim image if paused
$if(%ispaused%,
$puts(dim,alpha-150)
,
)
$select($eval($getpvar(art) + 1),
// album art mode
$if($fileexists($get(coverPath)),
$drawrect(10,50,200,200,brushcolor-$get(color1) pencolor-$get(color1))
$imageabs2(200,200,,,,,10,50,$get(coverPath),nokeepaspect $get(dim))
$puts(roffset,225)
,
$puts(roffset,240)
)
$button(0,2,10,50,200,200,,,PVAR:SET:art:1,)
,
// artist art mode
$if($fileexists($get(artistPath)),
$drawrect(10,50,200,200,brushcolor-$get(color1) pencolor-$get(color1))
$imageabs2(200,200,,,,,10,50,$get(artistPath),nokeepaspect $get(dim))
$puts(roffset,225)
,
$puts(roffset,240)
)
$button(0,2,10,50,200,200,,,PVAR:SET:art:0,)
,
)
,
$puts(roffset,240)
)
$alignabs(10,260,200,20,,)$font(Calibri,9,bold uppercase,90-90-90)
%album% / %date%
$alignabs(10,275,200,20,,)$font(Calibri,9,bold,130-130-130)
%artist%
$alignabs(10,290,200,20,,)$font(Calibri,9,bold,90-90-90)
[%style%]
$alignabs(10,320,200,20,,)$font(Calibri,9,bold,130-130-130)
[%label%]
$alignabs(10,335,200,20,,)$font(Calibri,9,bold,130-130-130)
[%catalog #%]
$alignabs(10,350,200,20,,)$font(Calibri,9,bold,130-130-130)
[[%discogs_format%] / [%discogs_country%]]
$alignabs(10,380,200,20,,)$font(Calibri,9,bold,90-90-90)
[%codec%] / [%bitrate%]kbps
$alignabs(10,395,200,20,,)$font(Calibri,9,bold,90-90-90)
[$insert($div(%samplerate%,100),'.',$sub($len(%samplerate%),3)) kHz / [%__bitspersample%] Bit]
))
$panel(qs,'Quick Search Toolbar',7,$sub(%_height%,60),$sub(%_width%,578),21,)
$select($add($getpvar(display.mode),1),
$panel(Planels,Single Column Playlist,$getpvar(side_width),35,$sub($sub(%_width%,$getpvar(side_width)),10),$sub(%_height%,80),)
,
$panel(Panels,'Album list',$getpvar(side_width),35,$sub($sub(%_width%,$getpvar(side_width)),10),$sub(%_height%,80),)
)
// views
$button(10,10,12,12,0,0,/lttmam\btn-list.png,/lttmam\btn-listh.png,'PVAR:SET:display.mode:0',TOOLTIP: Playlist)
$button(28,10,12,12,0,0,/lttmam\btn-switch.png,/lttmam\btn-switchh.png,'PVAR:SET:display.mode:1',TOOLTIP: Album List)
// searches
$button(50,10,12,12,0,0,/lttmam\btn-lastfm.png,/lttmam\btn-lastfmh.png,Last.fm,)
$button(68,10,12,12,0,0,/lttmam\btn-wiki.png,/lttmam\btn-wikih.png,Wikipedia,)
$button(86,10,12,12,0,0,/lttmam\btn-rym.png,/lttmam\btn-rymh.png,RateYourMusic,)
$button(104,10,12,12,0,0,/lttmam\btn-oink.png,/lttmam\btn-oinkh.png,OiNK,)
// toggles
$button(126,10,12,12,0,0,/lttmam\btn-compact.png,/lttmam\btn-compacth.png,'PVAR:SET:side_width:10',)
$button(144,10,12,12,0,0,/lttmam\btn-wide.png,/lttmam\btn-wideh.png,'PVAR:SET:side_width:220',)
// cover&artist image search
$button(166,10,12,12,0,0,/lttmam\btn-cover2.png,/lttmam\btn-cover2h.png,Cover Image,)
$button(184,10,12,12,0,0,/lttmam\btn-artist.png,/lttmam\btn-artisth.png,Artist Image,)
$button(787,10,12,12,0,0,/lttmam\btn-opendir.png,/lttmam\btn-opendirh.png,Open Directory,$sub(%_width%,27,,$sub(%_height%,35)))
and scpl group display:
// background
$drawrect(0,0,0,0,brushcolor-null pencolor-null)
// top row
$alignabs(6,14,$sub(%_width%,80),20,,)$font(Calibri,9,bold uppercase,90-90-90)
%album% / $num(%date%,4)
// bottom row
$alignabs(6,29,$sub(%_width%,80),20,,)$font(Calibri,9,bold,130-130-130)
%album artist%
// right side
$alignabs($sub(%_width%,80),14,75,10$puts(coverstring,$replace(%path%,%filename_ext%,folder.jpg))
// background
$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null))
$drawrect(-1,-1,$add(%_width%,2),19,brushcolor-null pencolor-null)
$if(%_selected%,$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-210-210-210 pencolor-null),$drawrect(,,,,brushcolor-210-210-210 pencolor-null))$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null)))
$if(%_focused%,$drawrect(-1,,$add(%_width%,2),,brushcolor-null pencolor-null))
// info for without coverart
$if(%isplaying%,$alignabs(4,,40,40,,)$font(webdings,9,,90-120-140)$if(%ispaused%,;,4),
$alignabs(1,,22,18,center,middle)$font(calibri,8,bold,180-180-180)$if(%totaltracks%,%tracknumber%.,$num(%_itemindex%,2).))
$alignabs(23,,$sub(%_width%,162),18,left,middle)$font(calibri,8,bold,$if(%isplaying%,60-60-60,90-90-90))%title%$font(calibri,8,bold lowercase,$if(%isplaying%,120-150-170,170-170-170))$if(%totaltracks%,,[ '('%genre%[',' %date%]')'])
$alignabs($sub(%_width%,60),,50,18,right,middle)$font(calibri,8,bold,$if(%isplaying%,130-160-180,180-180-180))[]$font(calibri,8,bold,$if(%isplaying%,80-80-80,120-120-120))$if(%isplaying%,%playback_time_remaining%,%length%)
,right,)$font(Kroeger 05_55,9,,70-70-70)%_itemcount% tracks
$alignabs($sub(%_width%,80),22,75,10,right,)$font(Kroeger 05_55,9,,80-80-80)$replace(%filename_ext%,%filename%.,)[ %codec_profile%]$if($or($strstr(%codec_profile%,VBR),%__bitrate_nominal%),, %__bitrate%kbps)
$alignabs($sub(%_width%,80),30,75,10,right,)$font(Kroeger 05_55,9,,90-90-90)%genre%
// little arrow
$alignabs(,1,20,36,center,middle)$font(Wingdings 3,6,,120-120-120)
Item display:
$puts(coverstring,$replace(%path%,%filename_ext%,folder.jpg))
// background
$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null))
$drawrect(-1,-1,$add(%_width%,2),19,brushcolor-null pencolor-null)
$if(%_selected%,$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-210-210-210 pencolor-null),$drawrect(,,,,brushcolor-210-210-210 pencolor-null))$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null)))
$if(%_focused%,$drawrect(-1,,$add(%_width%,2),,brushcolor-null pencolor-null))
// info for without coverart
$if(%isplaying%,$alignabs(4,,40,40,,)$font(webdings,9,,90-120-140)$if(%ispaused%,;,4),
$alignabs(1,,22,18,center,middle)$font(calibri,8,bold,180-180-180)$if(%totaltracks%,%tracknumber%.,$num(%_itemindex%,2).))
$alignabs(23,,$sub(%_width%,162),18,left,middle)$font(calibri,8,bold,$if(%isplaying%,60-60-60,90-90-90))%title%$font(calibri,8,bold lowercase,$if(%isplaying%,120-150-170,170-170-170))$if(%totaltracks%,,)
$alignabs($sub(%_width%,60),,50,18,right,middle)$font(calibri,8,bold,$if(%isplaying%,130-160-180,180-180-180))[]$font(calibri,8,bold,$if(%isplaying%,80-80-80,120-120-120))$if(%isplaying%,%playback_time_remaining%,%length%)