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

    • Ahh, I didn't know that. It makes sense. I was thinking I would be fine with 50 hours, but 100 is close enough that I wouldn't feel like I am paying for more than I am using. I might check it out sometime.
    • Google's next-gen Tensor AI chips might be produced by Samsung, report says by Hamid Ganji Image via Google Google’s Tensor Processing Unit (TPU) is produced in collaboration with companies such as Broadcom and TSMC, but a recent report suggests that the search giant is in talks with Samsung to hand over part of the production to the Korean tech company. According to a report by The Information, citing people familiar with the matter, Google has begun talks with Samsung about using its chip manufacturing capacity for the next generation of Tensor AI chips. Google’s upcoming TPUs are reportedly codenamed “Icefish” and will be produced using Samsung's 2-nanometer process technology. Meanwhile, Samsung is expected to produce only a portion of the next-generation Tensor chips, with most of the production remaining at TSMC. The Information says the new Tensor chips are currently in the design stage and are scheduled to enter mass production in 2028. TSMC is generally considered one of the most reliable chip manufacturing partners and is trusted by tech giants such as Apple and Google. However, the growing demand for TSMC’s AI chips, combined with the company’s focus on meeting demand from AI data centers, has reportedly prompted Google to seek additional manufacturing partners for its next-generation TPUs. Besides Samsung and TSMC, Intel could also be assigned part of the production. The Information reported this week is that Google has begun talks with Intel to produce up to three million TPUs in 2028. However, this is not the first time Google has partnered with Samsung on chip production, as Samsung has previously manufactured Tensor chips for Pixel smartphones. Google’s Tensor Processing Unit is used in cloud data centers and competes with NVIDIA’s chips, which currently dominate the market. By relying on in-house chips, Google can not only reduce its dependence on third-party providers but also create new revenue opportunities. The company has already supplied its TPUs to the AI firm Anthropic.
    • Reminder that the Premium and Ultimate plans already come with a 100 hour per month limit, which you then have to pay more to increase in 15 hour blocks.
    • It does invite Linux because MS should have been improving their products all along these years instead chose to ignore the users now this year they’re making all of these improvements to their products where as Linux doesn’t have this kind of problems in fact it has gotten so good I can even play Windows games in Steam that I no longer ever needed Windows to carry on with my life, unlike you still use Windows and chose to try beat down down those who don't use Windows because they love their LG TV. (Surprisingly I actually own a 55” LED LG TV and it has been going strong for almost 14 years, longer than any Sony TV”)
    • As much as I love owning my own hardware, it's hard to argue with the value. I'm not a huge gamer, I'd actually be interested in a cheaper plan with limited monthly hours, or even a pay-by-the-hour plan.
  • Recent Achievements

    • Week One Done
      FBSPL earned a badge
      Week One Done
    • One Year In
      Jim Dugan earned a badge
      One Year In
    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      487
    2. 2
      PsYcHoKiLLa
      196
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      69
  • Tell a friend

    Love Neowin? Tell a friend!