Music Banter

Music Banter (https://www.musicbanter.com/)
-   The Lounge (https://www.musicbanter.com/lounge/)
-   -   Foobar2000 - Support and Discussions (https://www.musicbanter.com/lounge/47287-foobar2000-support-discussions.html)

Guybrush 01-30-2010 08:00 PM

Quote:

Originally Posted by noise (Post 818846)
ok now i have a question for you :D

how do you keep your comps and soundtracks from showing up in your Albums/EPs/Singles area?

Right now, the solution is rather unrefined. Here it is :

Code:

NOT %Album Artist% IS Various Artists AND NOT %Album Artist% IS Soundtrack
I'm using library tree (as you know) and that's my active filter for that particular branching order :)

edit :

I wrote it more to get the effect if you understand what I mean. I guess I might make a type tag or something which says what kind of album any album is, then use that .. or some other solution in the future.

For now it works :p:

Guybrush 01-31-2010 09:10 AM

I've now made a %type% tag where I have information about what kind of collection it is, if it's a studio album, live album, single, ep, bootleg, mixed artist compilation, soundtrack and so on. I've put it in the sorting and it works beautifully. :)

I've also made tags for debuts (yes (TRUE)/no (missing)) and bonus tracks that I use in grouping.

So far it's all woking out great and I'm loving it :D

But, I got a question - how (or where) did you get that nifty stuff with the flags, information and so on on the right hand side of your foobar?

noise 01-31-2010 09:58 AM

talking with you also inspired me to fix up my type categories, and now i have a great categorization system for everything from 7" vinyl to remix albums. sweet.

ok so the stuff on the right side is a mix of things. the artist image at the bottom i do manually, and just point the CUI album art viewer to an artist.jpg image i keep in each album's folder.

the middle bit i use a component called Track Info Mod. i script it to pull flag images out of a directory based on a %country% tag, and filetype images based on the codec. the rest gets scripted to display standard file information.

behind that is a biography tab which uses the Biography Panel plugin to pull artist biographies off of last.fm

and behind that is foo_uie_lyrics_panel showing the contents of my %unsynced lyrics% tag.

i'm happy to share my scripts, so let me know if you want them :D

Guybrush 01-31-2010 10:22 AM

I think I found the biography script and I have a different solution for lyrics, but I'd love the Track Info Mod stuff. It looks very neat the way you've done it, I must say. :)

noise 01-31-2010 10:45 AM

ok here it is. it's a real mess, apologies for that. hopefully you can follow it well enough to be able to change some things to suit your system. you'll have to change the paths to the image directories since i didn't use relative paths in the script.

the height is fixed, but the width should adjust to the panel you put it in.

bitrate changes color red to green depending on how good it is :D

flag images are from here, just rename to suit your tags:
alpak on deviantART

filetype icons:
A set of icons for different audio file types - Hydrogenaudio Forums

oh, and you need the Playback Statistics component to display some of the info.

Code:

// Global

$puts(1,$rgb(234,0,0))
$puts(2,$rgb(224,41,00))
$puts(3,$rgb(215,78,0))
$puts(4,$rgb(205,112,0))
$puts(5,$rgb(195,142,0))
$puts(6,$rgb(186,169,0))
$puts(7,$rgb(160,176,0))
$puts(8,$rgb(121,167,0))
$puts(9,$rgb(86,157,0))
$puts(10,$rgb(54,147,0))
$puts(11,$rgb(25,138,0))
$puts(12,$rgb(0,128,0))

$drawrect(0,0,%_width%,15,brushcolor-50-100-140)
$alignabs(0,0,%_width%,15,center,middle)$rgb(255,255,255)NOW PLAYING

$drawrect(0,150,%_width%,15, brushcolor-50-100-140)
$alignabs(0,150,%_width%,15,center,middle)$rgb(255,255,255)TECHNICAL

$drawrect(0,225,%_width%,15, brushcolor-50-100-140)
$alignabs(0,225,%_width%,15,center,middle)$rgb(255,255,255)STATISTICS

// PerTrack

$imageabs2(60,60,0,0,60,60,$sub(%_width%,75),75,D:\Apps\No Install\Audio\Players\foobar2000 CUI\images\Flags\%country%.png,)
$imageabs2(60,60,0,0,60,60,$sub(%_width%,74),163,D:\Apps\No Install\Audio\Players\foobar2000 CUI\images\Types\%codec%.png,)

$alignabs(0,15,65,15,right,)Title:
$alignabs(0,30,65,15,right,)Rating:
$alignabs(0,45,65,15,right,)Artist:
$alignabs(0,60,65,15,right,)Album:
$alignabs(0,75,65,15,right,)Type:
$alignabs(0,90,65,15,right,)Date:
$alignabs(0,105,65,15,right,)Genre:
$alignabs(0,120,65,15,right,)Style:
$alignabs(0,135,65,15,right,)Comments:
$alignabs(0,165,65,15,right,)Codec:
$alignabs(0,180,65,15,right,)Bitrate:
$alignabs(0,195,65,15,right,)Track Gain:
$alignabs(0,210,65,15,right,)Album Gain:
$alignabs(0,240,65,15,right,)Play Count:
$alignabs(0,255,65,15,right,)Last Played:
$alignabs(0,270,65,15,right,)Length:


$alignabs(70,15,$sub(%_width%,60),15,,)$rgb(50,100,140,0,0,0)$replace($replace(%title%,')',')'$rgb(50,100,140,0,0,0)),'(',$rgb(133,176,211,94,74,83)'(')

$alignabs(70,30,$sub(%_width%,60),15,,)
$puts(mychar,$char(9733)$char(8202))
$rgb(245,175,92,225,155,72)
$ifgreater(%rating%,0,
$repeat(★,%rating%)
$repeat($rgb(230,230,230,210,210,210)★,$sub(5,%rating%))
,
$repeat($rgb(230,230,230,210,210,210)★,5)
)

$alignabs(70,45,$sub(%_width%,60),15,,)$rgb(60,100,60)%artist%

$alignabs(70,60,$sub(%_width%,60),15,,)$puts(normal,$rgb(60,100,60))
$puts(light,$rgb(164,180,134))
$puts(bright,$rgb(205,135,52))
$get(normal)
$replace(%album%,
'(',$get(light)'(',
')',')'$get(normal),
'[single]',,
'EP',,
'12"',,
'7"',)
$if(%discnumber%,
$get(sep)$rgb(0,0,255) '['Disc %discnumber%[ of %totaldiscs%]']'
,)

$alignabs(70,75,$sub(%_width%,60),15,,)
$puts(normal,$rgb(60,100,60,30,50,30))
$puts(light,$rgb(164,180,134,82,90,67))
$puts(bright,$rgb(205,135,52,82,90,67))

$get(normal)
$replace($ifequal($strcmp(%live%,A),1,%release type% '('Live')',%release type%),
'(',$get(light)'(',
')',')'$get(normal),
'[',$get(bright)'[',
']',']'$get(normal),
'EP',$get(bright)'[EP]',
'12"',$get(bright)'[12"]',
'7"',$get(bright)'[7"]',
'Single',$get(bright)'['Single']')


$alignabs(70,90,$sub(%_width%,60),15,,)$rgb(50,100,140)%date%

$alignabs(70,105,$sub(%_width%,60),15,,)$rgb(50,100,140)%genre%

$alignabs(70,120,$sub(%_width%,60),15,,)$rgb(50,100,140)%style%

$alignabs(70,135,$sub(%_width%,60),15,,)$rgb(50,100,140)$if2(%comments%,...)

$alignabs(70,165,$sub(%_width%,60),15,,)$rgb(50,100,140)%codec% [%codec_profile%]

$alignabs(70,195,$sub(%_width%,60),15,,)$if(%replaygain_track_gain%,$rgb(50,100,140)%replaygain_track_gain%,$rgb(234,0,0)$char(215))

$alignabs(70,210,$sub(%_width%,60),15,,)$if(%replaygain_album_gain%,$rgb(50,100,140)%replaygain_album_gain%,$rgb(234,0,0)$char(215))

$alignabs(70,240,$sub(%_width%,60),15,,)$rgb(50,100,140)%play_count% $ifequal(%play_count%,1,time,times)

$alignabs(70,255,$sub(%_width%,60),15,,)$rgb(140,150,160)$rgb(50,100,140)$if2(%last_played%,Never)


// PerSecond
$alignabs(70,270,$sub(%_width%,60),15,,)$rgb(50,100,160)%length%$rgb(140,150,160)' [- '%playback_time_remaining%']'

$alignabs(70,180,$sub(%_width%,60),15,,)
$rgb(140,150,160)

$ifgreater(%bitrate%,0,$get(1),)
$ifgreater(%bitrate%,49,$get(2),)
$ifgreater(%bitrate%,74,$get(3),)
$ifgreater(%bitrate%,99,$get(4),)
$ifgreater(%bitrate%,124,$get(5),)
$ifgreater(%bitrate%,149,$get(6),)
$ifgreater(%bitrate%,174,$get(7),)
$ifgreater(%bitrate%,199,$get(8),)
$ifgreater(%bitrate%,224,$get(9),)
$ifgreater(%bitrate%,249,$get(10),)
$ifgreater(%bitrate%,274,$get(11),)
$ifgreater(%bitrate%,299,$get(12),)

%bitrate% $rgb(50,100,140)kbps


Guybrush 01-31-2010 11:12 AM

Wow, great post :) Thanks so much yet again, noise!

Just a quick question, though. What exactly do I do with the script? I'm not sure where it goes!

noise 01-31-2010 11:24 AM

well you need foo_uie_trackinfo_mod. once you've installed it, restart foobar, then put a Track Info Mod panel into your config. right-click, go to settings, and paste the script.

Guybrush 01-31-2010 01:27 PM

Okay, much thanks to you noise, I finally have a foobar which I like :)

I'm not done with it - there are text colours, icons and other little tweaks I wanna get to - but the main stuff I want for now is in place!

SCREENSHOT!

I thought the way you had done artist images seemed like too much work, so what I did was just use the biography panel. It has an option for showing picture, text or both (default) and so I'm using two as you can see. One is now called picture and that fetches a picture from the artists' last.fm page and the other is called Biography and has just the text.

By the way, the country pictures work well but I seem to have a bit of renaming to do as I'd like to have filenames in english. However, the codec picture is acting a bit strange. You can see it in the screenshot .. it's not one of the pictures from the pack so what's the problem? :confused:

Anyways, awesome program and I'll definetly retire old Winamp :D

gotjuice 01-31-2010 06:13 PM

Any particular reason foobar doesn't want to import ratings I've given certain songs? All I get is a question mark whenever I try to create a column to display them.

Guybrush 01-31-2010 07:00 PM

Quote:

Originally Posted by gotjuice (Post 819487)
Any particular reason foobar doesn't want to import ratings I've given certain songs? All I get is a question mark whenever I try to create a column to display them.

I just wrote my own column after reading a quick guide.

If you don't have foo_playcount (you might, so check!), then get it from here and move the dll file to foobar2000/composites folder.

You can now rate your files by right-clicking them and choosing "playback statistics" and then "ratings".

To make a column, you can write one yourself. Right-click the columns, choose "edit this column", then make a new one and call it ratings. Click the scripts tab and then in the script field under the display tab, add something like this :

Code:

$if(%rating%,$repeat(★,%rating%),☆)
or, if you'd like some colour :

Code:

$rgb(250,173,69)$if(%rating%,$repeat(★,%rating%),☆)
This should give you a column where ratings are represented by stars. It's a quick way to do it although I'm sure there are more refined ways to do it.


All times are GMT -6. The time now is 01:55 PM.


© 2003-2024 Advameg, Inc.