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: A good mmpc foobar display config? (Read 63886 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A good mmpc foobar display config?

Reply #75
making some updates to your config, ojdjodododo

will post it once i work out some kinks in the translation to english

A good mmpc foobar display config?

Reply #76
making some updates to your config, ojdjodododo

will post it once i work out some kinks in the translation to english


Hehe I had the same technicality...

A good mmpc foobar display config?

Reply #77
alright, here it goes:

EDIT: Fixed my errors. will post if any more come up

http://stashbox.org/11073/01_30_2007-01_48...s-Oceansize.png
additional info on, timecodes off

http://stashbox.org/11074/01_30_2007-01_48...s-Oceansize.png
addinfo on (not currently displaying), timecodes on

http://stashbox.org/11075/01_30_2007-01_50...s-Oceansize.png
addinfo on (not currently displaying), timecodes off


basically, if addinfo on forces total times to display during the first and last 30 seconds (when the addinfo is displaying)
timecodes on force all time information to display at all times

REQUEST: only display the album title (if you look in the "working" pic, you can see it under the bottom right of the album art) if there is no album art.

anyway, here's the code.
Code: [Select]
// Global
// CONFIGURATION ///////////////////////////////////////////

// Album Art
// Use $if and $fileexists if more locations need to be checked
$puts(path.albumart,$replace(%path%,$if(%disc%,$directory(%path%,1)\)%filename_ext%,folder.jpg))

// Additional info
// addinfo.show: delete the '1' to disable additional info
// addinfo.time: determines how long addinfo is shown
// timeinfo.show: change the '1' to '0' to disable the time codes displayed on the progress bar
$puts(addinfo.show,1)
$puts(addinfo.time,30)
$puts(timeinfo.show,0)

// Positions
// pos.horizon: y-position of the grey horizon gradient
// pos.shadow: increase to see more reflection of the cd-cover
// pos.artx: if changed, further changes will be necessary for text positioning
// pos.arty: change position of album art relative to horizon line
$puts(pos.horizon,$muldiv(%_height%,4,7))
$puts(pos.shadow,120)
$puts(pos.artx,$sub($div(%_width%,2),278))
$puts(pos.arty,$sub($get(pos.horizon),400))

// Fonts
// font.a, font.b: used by addinfo for a) filling text, b) values
$puts(font.track,$font(Calibri,16,,255-255-255))
$puts(font.album,$font(Calibri,8,,255-255-255))
$puts(font.artist,$font(Calibri,12,,255-255-255))
$puts(font.a,$font(Calibri,12,,150-150-150))
$puts(font.b,$font(Calibri,12,,255-255-255))
$puts(font.c,$font(Calibri,7,,255-255-255))
$puts(font.d,$font(Calibri,7,,225-225-225))

// Progress bar
$puts(bar.height,7)
$puts(bar.color,50-50-50)

// END OF CONFIG ///////////////////////////////////////////

// Background
$drawrect(,,,,brushcolor-0-0-0 pencolor-null)
$imageabs(,$get(pos.horizon),/images/htpc2/horizon.png,)

// PerTrack

// Album Art
$imageabs2(556,516,0,0,556,$add(29,$get(pos.shadow)),$get(pos.artx),$add(460,$get(pos.arty)),/images/htpc2/case.png,ROTATEFLIP-6)
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(71,$get(pos.artx)),$add(460,31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)

$imageabs($get(pos.artx),$get(pos.arty),/images/htpc2/case.png,)
$imageabs2(454,454,0,0,454,454,$add(71,$get(pos.artx)),$add(31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT)


// PerSecond

// Pause Overlay
$if(%ispaused%,
$drawrect($add(71,$get(pos.artx)),$add(31,$get(pos.arty)),454,454,pencolor-0-0-0 alpha-150)
$alignabs($add(71,$get(pos.artx)),$add(31,$get(pos.arty)),454,454,center,middle)$font(Webdings,72,,255-255-255)';'
$drawrect($add(71,$get(pos.artx)),$add(460,31,$get(pos.arty)),454,$add(-2,$get(pos.shadow)),pencolor-0-0-0 alpha-150)
)

// Progress Bar
$ifgreater($muldiv(%playback_time_seconds%,%_width%,%length_seconds%),0,
$drawrect(0,$sub(%_height%,$mul($get(bar.height),3)),$muldiv(%playback_time_seconds%,%_width%,%length_seconds%),$get(bar.height),pencolor-null brushcolor-$get(bar.color))
,)

// Trackinfo
$if($and($or($greater($get(addinfo.time),%playback_time_seconds%),$greater($get(addinfo.time),%playback_time_remaining_seconds%)),$get(addinfo.show)),

// Detailed
$alignabs($get(pos.artx),$add($get(pos.arty),493),522,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),140),right,top)
$get(font.album)[%album%]$char(10)
$alignabs($add($sub($get(pos.artx),$div(%_width%,2)),12),$add($get(pos.horizon),$get(pos.shadow),60),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.c)'0:00'
$alignabs($sub($add($get(pos.artx),$div(%_width%,2)),12),$add($get(pos.horizon),$get(pos.shadow),60),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
[%length%]
$alignabs(80,$add($get(pos.horizon),$get(pos.shadow)),$sub(%_width%,160),$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.track)$if2(%title%,%filename%)$char(10)
$get(font.artist)[%artist%]
$char(10)$font(Arial,10,,0-0-0) $char(10)
$if(%last_played%,$get(font.a)Played $get(font.b)%play_counter%$get(font.a) time'('s')'', 'last on $get(font.b)$substr(%last_played%,9,10) $select($substr(%last_played%,6,7),January,February,March,April,May,June,July,August,September,October,November,December) $substr(%last_played%,1,4)$get(font.a).$char(10))
$if(%playback_time_seconds%,$get(font.a) $if(%album%,From the album $get(font.b)%album%$get(font.a)))$if(%date%,', 'published in $get(font.b)%date%$get(font.a) )$if(%publisher%,by $get(font.b)%publisher%$get(font.a))
,
// Default
$alignabs($get(pos.artx),$add($get(pos.arty),493),522,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),140),right,top)
$get(font.album)[%album%]$char(10)
$alignabs($get(pos.artx),$add($get(pos.horizon),$get(pos.shadow)),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.track)$if2(%title%,%filename%)$char(10)
$get(font.artist)[%artist%]
)

//time codes
$if($greater($get(timeinfo.show),0),$alignabs($add($sub($get(pos.artx),$div(%_width%,2)),12),$add($get(pos.horizon),$get(pos.shadow),60),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.c)'0:00'
$alignabs($sub($add($get(pos.artx),$div(%_width%,2)),12),$add($get(pos.horizon),$get(pos.shadow),60),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
[%length%]
$alignabs($add($sub($get(pos.artx),$div(%_width%,2)),$muldiv(%playback_time_seconds%,%_width%,%length_seconds%),-11),$add($get(pos.horizon),$get(pos.shadow),51),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.d)[%playback_time% ]
$alignabs($add($sub($get(pos.artx),$div(%_width%,2)),$muldiv(%playback_time_seconds%,%_width%,%length_seconds%),13),$add($get(pos.horizon),$get(pos.shadow),51),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.c)[ -%playback_time_remaining%],)

A good mmpc foobar display config?

Reply #78
in the above code, how do i place text relative to the progress bar?

both just on the far left (static), the far right (static), and moving along with the progress bar

EDIT: figured it out, and added it to the above code.

A good mmpc foobar display config?

Reply #79
My new config; a mix of stuff by ojdo and FofR, with a tiny bit added by myself  :

Both clickable.

First the default layout:


And extra info, first and last 30 seconds of a track:


So thanks again ojdo (and of course FofR).
Les mots d'amour...

A good mmpc foobar display config?

Reply #80








for those who like pictures.

A good mmpc foobar display config?

Reply #81
ummm....

http://stashbox.org/10804/01_27_2007-13_59...ian-Circles.png

why does that not work at all?


I'm still having the same problem as the image you posted here.  In other words, I'm getting the album image reflected at the bottom, but it's not faded, and I'm not getting the horizon image.  Can you tell me what you did to fix the problem you had?  Or can anyone else tell me what I might have that's conflicting, or have done wrong?  I pasted the code directly. 

I installed custominfo but that didn't fix it.

I'm using Foobar 0.9.4 and trackinfomod .0.8.0

The path to those images on my computer is C:\Program Files\foobar2000\images\htpc2\

Thanks for any help, I'm not too great at messing with this kind of coding.

A good mmpc foobar display config?

Reply #82
The path to those images on my computer is C:\Program Files\foobar2000\images\htpc2\

theres your problem

put the images in c:\documents and settings\YOURNAME\application data\foobar2000\images\htpc2


 

A good mmpc foobar display config?

Reply #84


slight updates:

made album art smaller
added background image

A good mmpc foobar display config?

Reply #85
My edit
move cd
Code: [Select]
http://www.youtube.com/watch?v=iHL5DM4NaO4



A good mmpc foobar display config?

Reply #88



and movie
Code: [Select]
http://www.youtube.com/watch?v=iHL5DM4NaO4


It's ok , now ?

A good mmpc foobar display config?

Reply #89
thanks for the ideas here.  very cool.  just thought i'd post my slightly modified version, possibly useful to others like myself with slow machines. no different visually, but i optimized it for my slow via chipset.  went from over 30-35% cpu usage during playback down to 10-15%.  i basically just took out all of the "addinfo" timing stuff... all info displays for the whole track.  also took out the case image.

and two questions...
first, the line that gives the playback stats updates in the middle of playing.  is there a way i could just have that update at the beginning of each track, and not in real time as the tag/database information changes?
second, could somebody help me with the syntax for displaying a default "no cover" image?  i.e. i have a "default.gif" in the components folder that should display when no folder.jpg is found in the album's folder.

thanks

Code: [Select]
// Global
// CONFIGURATION ///////////////////////////////////////////

// Album Art
// Use $if and $fileexists if more locations need to be checked
$puts(path.albumart,$replace(%path%,$if(%disc%,$directory(%path%,1)\)%filename_ext%,folder.jpg))

// Positions
// pos.horizon: y-position of the grey horizon gradient
// pos.shadow: increase to see more reflection of the cd-cover
// pos.artx: if changed, further changes will be necessary for text positioning
// pos.arty: change position of album art relative to horizon line
$puts(pos.horizon,$muldiv(%_height%,4,7))
$puts(pos.shadow,120)
$puts(pos.artx,$sub($div(%_width%,2),290))
$puts(pos.arty,$sub($get(pos.horizon),400))

// Fonts
// font.a, font.b: used by addinfo for a) filling text, b) values
$puts(font.track,$font(Calibri,24,,255-255-255))
$puts(font.artist,$font(Calibri,18,,255-255-255))
$puts(font.a,$font(Calibri,12,,150-150-150))
$puts(font.b,$font(Calibri,12,,255-255-255))

// Progress bar
$puts(bar.height,7)
$puts(bar.color,50-50-50)

// END OF CONFIG ///////////////////////////////////////////

// Background
$drawrect(,,,,brushcolor-0-0-0 pencolor-null)
$imageabs(,$get(pos.horizon),/images/htpc2/horizon.png,)

// PerTrack
// Album Art
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)
$imageabs2(454,454,0,0,454,454,$add(54,$get(pos.artx)),$add(31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT)


// PerSecond
// Pause Overlay
$if(%ispaused%,
$drawrect($add(54,$get(pos.artx)),$add(31,$get(pos.arty)),454,454,pencolor-0-0-0 alpha-150)
$alignabs($add(54,$get(pos.artx)),$add(31,$get(pos.arty)),454,454,center,middle)$font(Webdings,72,,255-255-255)';'
$drawrect($add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),454,$add(-2,$get(pos.shadow)),pencolor-0-0-0 alpha-150)
)

// Progress Bar
$ifgreater($muldiv(%playback_time_seconds%,%_width%,%length_seconds%),0,
$drawrect(0,$sub(%_height%,$mul($get(bar.height),3)),$muldiv(%playback_time_seconds%,%_width%,%length_seconds%),$get(bar.height),pencolor-null brushcolor-$get(bar.color))
,)

// Default
$alignabs($get(pos.artx),$add($get(pos.arty),493),522,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),140),right,top)
$alignabs($get(pos.artx),$add($get(pos.horizon),$get(pos.shadow)),556,$sub(%_height%,$get(pos.horizon),$get(pos.shadow),64),center,bottom)
$get(font.track)$if2(%title%,%filename%)$char(10)
$get(font.artist)[%artist%]
$char(10)$font(Arial,10,,0-0-0) $char(10)
$if(%last_played%,$get(font.a)played $get(font.b)%play_count%$get(font.a) times', 'last on $get(font.b)$substr(%last_played%,9,10) $select($substr(%last_played%,6,7),january,february,march,april,may,june,july,august,september,october,november,december) $substr(%last_played%,1,4)$get(font.a)$char(10))
$get(font.a) $if(%album%,from the album $get(font.b)%album%$get(font.a))$if(%date%,', 'published in $get(font.b)%date%)
)

A good mmpc foobar display config?

Reply #90
second, could somebody help me with the syntax for displaying a default "no cover" image?  i.e. i have a "default.gif" in the components folder that should display when no folder.jpg is found in the album's folder.
at this point in the code:
Code: [Select]
// PerTrack
// Album Art
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)
$imageabs2(454,454,0,0,454,454,$add(54,$get(pos.artx)),$add(31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT)


change it to
Code: [Select]
// PerTrack
// Album Art
$if($fileexists($replace(%path%,%filename_ext%,folder.jpg)),
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)
$imageabs2(454,454,0,0,454,454,$add(54,$get(pos.artx)),$add(31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT)
,
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),PUTTHEFILEPATHHERE,NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)
$imageabs2(454,454,0,0,454,454,$add(54,$get(pos.artx)),$add(31,$get(pos.arty)),PUTTHEFILEPATHHERE,NOKEEPASPECT)
)
where i've written PUTTHEFILEPATHHERE, put the... well... file path. for your alternate "no cover" image.

i have it as just
Code: [Select]
// PerTrack
// Album Art
$if($fileexists($replace(%path%,%filename_ext%,folder.jpg)),
$imageabs2(454,454,0,0,454,$add(-2,$get(pos.shadow)),$add(54,$get(pos.artx)),$add(454,31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT ROTATEFLIP-6)
$imageabs($get(pos.artx),$add($get(pos.shadow),299,$get(pos.arty)),/images/htpc2/shadow.png,)
$imageabs2(454,454,0,0,454,454,$add(54,$get(pos.artx)),$add(31,$get(pos.arty)),$get(path.albumart),NOKEEPASPECT)
,
)
so nothing shows up when there's no album image.

A good mmpc foobar display config?

Reply #91
drake- thanks, that worked like a charm.

A good mmpc foobar display config?

Reply #92
And... quicker than expected I finished version 2 of my fullscreen layout (version 1). This time it is much better coded and highly configurable. Credits go to FofR for inspiration and Cyex for his beautiful cd cover.

Preview

[a href=\"http://www.galsch.de/files/open/screenshots/2007-01-27--fb2k-htpc2-1.png\" target=\"_blank\"] Thanks. I love this, but I am having one problem.

I do not get the reflection of the CD case.

[a href=\"http://img263.imageshack.us/my.php?image=minenz6.png\" target=\"_blank\"]
foobar2000 + EAC + Burrrn = Happiness

A good mmpc foobar display config?

Reply #93
My new config; a mix of stuff by ojdo and FofR, with a tiny bit added by myself  :

Both clickable.

First the default layout:
[a href="http://tinypic.com/4fudr1y.png" target="_blank"] ) but also, leokennis, can you share your background
foobar2000 + EAC + Burrrn = Happiness

A good mmpc foobar display config?

Reply #94
I do not get the reflection of the CD case.

.....I modified the code from your first codebox to change the language to English, to remove the progress bar, remove the "last played" etc. stats, and to show all the additional info the whole time), but even if I copy/paste your first codebox exactly I still don't get the cd case reflection, as can be seen here:

Can anyone figure out what is going wrong?

thanks in advance for any help.


Please don't fullquote, it makes the thread very difficult to read. The most probable reason for the cd case reflection not displaying is an outdated (old) version of trackinfo_mod. The reflection uses the ROTATEFLIP-option which is the only difference between the both pictures (cd case and its reflection). Download the latest version of the plugin and try again.

And a request from my side: Can you point me to the direction where you found these "neon" icons? I'm looking for dock icons in this style but only found some for a few applications. Thanks!

HTH
ojdo

A good mmpc foobar display config?

Reply #95

My new config; a mix of stuff by ojdo and FofR, with a tiny bit added by myself  :

Both clickable.

First the default layout:
[a href="http://tinypic.com/4fudr1y.png" target="_blank"] ) but also, leokennis, can you share your background

Can't find any reason it shouldn't work...try commenting out all the other images except the CD case and its reflection...

For my background: contact FofR, or else wait untill monday and I'll post it when I'm at my PC again
Les mots d'amour...

A good mmpc foobar display config?

Reply #96
I am using 0.8.0 beta [Jan 5 2007], and I get the ROTATEFLIP on the album art just not the CD case.

.....damn it is frustrating.

Anyway...the buttons can be found here.
foobar2000 + EAC + Burrrn = Happiness

A good mmpc foobar display config?

Reply #97
[a href="http://img375.imageshack.us/my.php?image=fb2kup6.jpg" target="_blank"] (a bit from everything and some from myself)

A good mmpc foobar display config?

Reply #98
Well, after hours (literally) of trying each image line and everything working fine except the ROTATEFLIP on the case, I completly uninstalled foobar and reinstalled it and now my code works fine.



Go figure.

foobar2000 + EAC + Burrrn = Happiness

A good mmpc foobar display config?

Reply #99
[pic]
my config  (a bit from everything and some from myself)


Very nice! My next config probably will have artist photos again.


Well, after hours (literally) of trying each image line and everything working fine except the ROTATEFLIP on the case, I completly uninstalled foobar and reinstalled it and now my code works fine.


Glad to hear that. Thanks for the link to the neon icons!