Recommended Posts

I have all my album art stored in a folder called _Artists And Artwork

The images are stored in the following format %artist%_%album%.jpg

Is there any way of changing this line of code

$imageabs2(48,48,0,0,48,48,6,6,$replace(%path%,%filename_ext%,folder.jpg),)

to work with this setup?

Mind sharing this playlist config please ?

Sure :)

Row Height: 22

Group Display:

%album%

Item Display:

$ifequal($mod(%_playlist_number%,2),0,
$drawrect(,,,,brushcolor-255-255-255 pencolor-null),)
$if(%_selected%,$imageabs(,,itunes\playing.png,),
$if(%_isplaying%,$imageabs(,,itunes\playing_bg.png,)))

$padding(4,4)
$font(Calibri,8,,$if(%_selected%,0-0-0,$if(%_isplaying%,0-0-0,97-97-97)))

$font(Calibri,8,,)
%list_index%. [$meta(artist) - ]%title%
$align(right,bottom)
//[%playback_time% / ]%length%
%length%

$imageabs(218,$if($strcmp(%tracknumber%,01),0,$add(23,$mul(-23,%tracknumber%))),itunes\casey.png,)
$imageabs2(563,98,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,14)),,%_height%,10,,$replace(%path%,%filename_ext%,cover.jpg),)

Group Display:

$imageabs(,,itunes\header.png,)
$imageabs(6,3,itunes\albumlogo.png,)
$padding(30,5)

$font(Verdana,8,,255-255-255)
%album%

It will look bad on single playlists though...

If you have tagged your files with a field like %single% you can replace the last two lines of the item display with:

$if(%single%,,$imageabs(218,$if($strcmp(%tracknumber%,01),0,$add(23,$mul(-23,%tracknumber%))),itunes\casey.png,))
$imageabs2(563,98,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,14)),,%_height%,10,,$replace(%path%,%filename_ext%,cover.jpg),)

And, last but not least, the images... extract into <foobar-settings-folder>\itunes\

images.zip

untitled1dd3.jpg

...

TRACK INFO 2

Min height: 53

Edge: none

$imageabs(,,images\royale3.png,)

//PLAY/PAUSE
$button(175,4,0,0,48,48,
$if($or(%ispaused%,$not(%isplaying%)),images\wmp11-foobar\play.png,images\wmp11-foobar\play_h.png),
$if($or(%ispaused%,$not(%isplaying%)),images\wmp11-foobar\play_h.png,images\wmp11-foobar\pause_h.png),
$if($or(%ispaused%,$not(%isplaying%)),play,pause)
,)

//RESCAN
$button(79,4,0,0,48,48,images\wmp11-foobar\refresh.png,images\wmp11-foobar\refresh_h.png,Rescan Media Library,)

//PREVIOUS
$button(127,4,0,0,48,48,images\wmp11-foobar\prev.png,images\wmp11-foobar\prev_h.png,previous,)

//NEXT
$button(223,4,0,0,48,48,images\wmp11-foobar\next.png,images\wmp11-foobar\next_h.png,next,)

//ALBUM LIST
$button(271,4,0,0,48,48,images\wmp11-foobar\search.png,images\wmp11-foobar\search_h.png,Album List,)

IMAGES

http://www.rarhost.com/download-zu3bmf.html

I'm using these Track Info buttons. It works well when I run foobar manually. But if I click on a single mp3 file in Explorer, foobar play the file but the buttons are not there. Someone have the same problem?

I'm using these Track Info buttons. It works well when I run foobar manually. But if I click on a single mp3 file in Explorer, foobar play the file but the buttons are not there. Someone have the same problem?

According to

http://www.hydrogenaudio.org/forums/index....st&p=457065

you should change the button images path

ex:

$button(223,4,0,0,48,48,/images\wmp11-foobar\next.png,/images\wmp11-foobar\next_h.png,next,)

thus can solve your problem

sorry for my poor english, i hope you can understand what i mean

My conf.

Stolen, ripped & edited :)

Header img is from a wallpaper. header in playlist is from somebody else's conf.

Sry for the bad img quality, had to compress to fit the global space limit in here.

Can you post your Foobar200 theme just make a desktop screen shot of your config settings

Row height: 20

Group rows: 2

::: Group by ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$if(%totaltracks%,%album%,-)

::: Item display ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$puts(imagedir,'C:\Program\foobar2000\images\')

$puts(coverstring,$replace(%path%,%filename_ext%,folder.jpg))

$puts(nocover,C:\Program Files\foobar2000\images\itunes\nocover.png)

$puts(font1,200-200-200)

$puts(font2,100-100-100)

$puts(font3,150-150-150)

$puts(font4,180-180-180)

$puts(font5,200-200-200)

$puts(font6,200-200-200)

$puts(font7,94-162-236)

$if(%_selected%,

$puts(font1,245-245-245)

$puts(font2,245-245-245)

$puts(font3,245-245-245)

$puts(font4,245-245-245)

$puts(font5,245-245-245)

$puts(font6,200-200-200)

)

$if($stricmp($mod(%list_index%,2),1),$drawrect(0,0,0,0,brushcolor-245-245-245 pencolor-null))

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-$if($stricmp($mod(%list_index%,2),1),190-190-190,200-200-200) pencolor-null))

$if(%_focused%,$drawrect(-1,0,$add(%_width%,2),0,brushcolor-null pencolor-160-160-160))

$alignabs(100,0,20,%_height%,center,middle)

$font(Tahoma,7,bold,$get(font1))

$num($if(%totaltracks%,%tracknumber%,%_itemindex%),2).

$alignabs(120,0,$sub(%_width%,$if($and(%totaltracks%,$greater(%_itemcount%,4),$greater(6,%_itemindex%)),112,24)),%_height%,,middle)

$font(Tahoma,7,bold,$get(font7))

$if(%isplaying%,'['%playback_time_remaining%$if(%ispaused%,.)']'

$if($or($greater($muldiv(%playback_time_seconds%,100,%length_seconds%),49),$greater(%playback_time_seconds%,239)),) )

$font(Tahoma,7,bold,$get(font2))

$if(%totaltracks%,,%artist% - )%title%

$font(Tahoma,7,bold,$get(font5))[%play_counter%x]

// autorating display

$if(%rating%,$puts(rating,%rating%),$puts(rating,$sub(%play_counter%,$div($cwb_datediff(%cwb_systemdatetime%,%first_played%),28))))

$if($greater($get(rating),5),$puts(rating,5))

$if($greater(0,$get(rating)),$puts(rating,0))

$alignabs($sub(%_width%,93),1,85,18,center,middle)$font(wingdings,10,,$if(%isplaying%,100-130-150,150-150-150))$repeat(?,$get(rating))$font(wingdings,10,,$if(%isplaying%,170-200-220,220-220-220))$repeat(?,$sub(5,$get(rating)))

// lyrics & rating tagcheck

$alignabs($sub(%_width%,15),1,10,18,center,middle)$font(wingdings 2,10,,$if(%lyrics%,$if(%isplaying%,100-130-150,150-150-150),$if(%isplaying%,170-200-220,220-220-220)))P

$if($and(%totaltracks%,$greater(%_itemcount%,4),$greater(6,%_itemindex%)),

$imageabs2(92,92,,,,,0,$sub($add(-4,%_height%),$mul(%_itemindex%,%_height%)),$get(imagedir)albumbg2.png,nokeepaspect)

$imageabs2(76,76,,,,,8,$sub($add(4,%_height%),$mul(%_itemindex%,%_height%)),$get(nocover),nokeepaspect)

$alignabs($sub(%_width%,70),$sub($add(12,%_height%),$mul(%_itemindex%,%_height%)),82,82,,)$font(wingdings 2,52,bold textalpha-30,255-255-255)?

$imageabs2(76,76,,,,,8,$sub($add(4,%_height%),$mul(%_itemindex%,%_height%)),$get(coverstring),nokeepaspect)

)

::: Group display ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$puts(imagedir,'C:\Program\foobar2000\images\itunes\')

// background

$imageabs2(,,,,,,,,$get(imagedir)header.png,)

// top row

$alignabs(22,4,$sub(%_width%,80),20,,)$font(Zurich Cn Bt,9,bold uppercase,240-240-240)

$if(%totaltracks%,%album% / %date%,single tracks)

// bottom row

$alignabs(22,16,$sub(%_width%,80),20,,)$font(ZapfHumnst BT,9,bold lowercase,190-190-190)

$if($or($stricmp(%playlist_name%,most played songs),$stricmp(%playlist_name%,by rating),$not(%totaltracks%)),assorted artists,%band%)

// right side

$if(%totaltracks%,

$alignabs($sub(%_width%,80),6,75,10,right,)$font(Tahoma,7,bold,230-230-230)%_itemcount% tracks

$alignabs($sub(%_width%,80),18,75,10,right,)$font(Tahoma,7,bold,170-170-170)%genre%

,

$alignabs($sub(%_width%,80),12,75,10,right,)$font(Tahoma,7,bold,230-230-230)%_itemcount% tracks

)

// little arrow

$alignabs(,1,20,36,center,middle)$font(Wingdings 3,6,,120-120-120)q

And again, i take no credits for no code. Mostly done by spex. And i dont have premission on any imgs, so you gotta make your o:) :)

post-186739-1167730022.jpg

Trying to make a progress bar with trackinfomod, not having a great deal of luck with the moving of the indicator. Someone wanna help out? The indicator is a small 5x5 box that starts at 32 and ends at 303. I figure that:

* I find what's between 303 and 32 = 271.

* Find 1/100th of 271 = 2.71

Then I just need an incrementing percentage to multiply the 1/100th of the distance on the progress bar with.

* (current playback time / total length) x 100 = percentage of song played

* 2.71 x percentage of song played

and the box should move? :s im tired lol

$puts(PLAYBACK_PERCENTAGE, $mul($div(%playback_time_seconds%, %length_seconds%), 100))
$drawrect($add(32,$mul(2.71,$get(PLAYBACK_PERCENTAGE))),6,5,5,brushcolor-240-240-240 pencolor-null)

Indicator doesn't move. It's pretty late so I'm thinking it's something silly that I've missed. Plus i'm not so hot with maths lol.

@fmxer

Maybe this code is working good ?

$padding(0,-8) 
$drawrect(,,,20,brushcolor-null pencolor-70-115-170) 

$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%)) 

$ifgreater($get(progress),0, 
$padding(2,2)$drawrect(,,$get(progress),16,brushcolor-70-115-170 pencolor-null),)$align(top,left)

Change only the colors, or not. ;)

Or enter to beggining of code in yours configuration:

// PerSecond

Edited by mBunio

mBunio:

Thanks very much for your effort, it works but it's not quite what I'm after, I just want a small moving block, not the whole bar. Appreciate your contribution though. :) Tomorrow when I'm more awake I will have a look over your code and see if I can get something out of it, as I'm still new to foobar config coding.

Thanks. :)

According to

http://www.hydrogenaudio.org/forums/index....st&p=457065

you should change the button images path

ex:

$button(223,4,0,0,48,48,/images\wmp11-foobar\next.png,/images\wmp11-foobar\next_h.png,next,)

thus can solve your problem

sorry for my poor english, i hope you can understand what i mean

It works, Thank you!

I'm totally new to Foobar2k, can anyone link me to stuff that I might need to customise my player like some of the people in this thread have. I'm totally confused by the codes that people are posting and where to put them etc.

Cheers for any help

http://www.hydrogenaudio.org/forums/index.php?showforum=28

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I just started using Teams (and “New” Oiutlook) at work (instead of Slack) and both are truly abysmal pieces of software.
    • If you are willing to go to approx $200, then as mentioned in your other thread I think a refurbished Pixel 8 will be a great deal that will last you for years. I recently recommended that to someone at work, he was on a strict £200 budget, which got him an excellent conditioned refurbished Pixel 8 here. He's since told me its the best phone he's ever had and feels its a massive upgrade over his old Samsung A series device. I don't know the sites which deal in refurbished devices in the US, however I’m sure you will have some options like we do here. Failing that Ebay is also quite good in my experience. If you wanted something a bit cheaper, then you could maybe go for an older Pixel 7, these will still get security updates until the end of 2027. Even after that you have good third party OS support from LineageOS. It doesn't have to be a Pixel though, you can buy many older devices for a good deal that would be better than a new $100 phone and flash LineageOS to them: https://wiki.lineageos.org/devices/
    • I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac. If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud. The only reason I see to use one drive is if your job requires you to have access to it
    • Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
  • Recent Achievements

    • First Post
      DragonOfMercy earned a badge
      First Post
    • First Post
      bella52 earned a badge
      First Post
    • Reacting Well
      Techinmay earned a badge
      Reacting Well
    • Collaborator
      WndSks went up a rank
      Collaborator
    • One Month Later
      Sopa flores earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      PsYcHoKiLLa
      206
    3. 3
      +Edouard
      154
    4. 4
      Steven P.
      87
    5. 5
      ATLien_0
      78
  • Tell a friend

    Love Neowin? Tell a friend!