Help - Search - Members - Calendar
Full Version: foo_uie_single_column_playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Nickoladze
Sorry if this has been asked before, but how do I not have the cover image show if there aren't enough songs for that album in the playlist?

for example: http://www.envenom.net/uploads/foobarplayl...roblem49348.jpg
In the playlist, the album art wouldn't show if there are less than 7 tracks from the album in the playlist.

I am using this code:
CODE
$imageabs2(150,150,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
Yotsuya
CODE
$ifgreater(%totaltracks%,6,
$imageabs2(150,150,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
,)


This assumes your albums are properly tagged with %totaltracks%.

jimbo11883
Nevermind... Yotsuya's too quick. smile.gif
Yotsuya
And an additional tip, I assume the "23" in your code is because you are using a line height of 23? You can change that to %_height% so that the code dynamically adjusts if/when you change your line height.
jimbo11883
Good tip. wink.gif
Yotsuya
Here's my albumart code if anyone is interested, it's rather small and makes albums look like cd cases. I stole the empty cd case image from the nocover thread:

CODE
// Album Art
$ifgreater(%totaltracks%,3,
$imageabs2(110,110,0,$add($mul(%_height%,$sub(%tracknumber%,2)),29),,,40,,images\nocover.png,)
$imageabs2(85,85,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,55,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).png),)
$imageabs2(85,85,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,55,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).jpg),)
$imageabs2(85,85,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,55,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).gif),)
,)


IPB Image images\nocover.png
Foxhawk
QUOTE(Yotsuya @ Sep 23 2006, 15:28) *

foxhawk:
Can you be more specific about what you mean by "grey resizing grips"? Maybe a picture? If you are referring to the separator lines added by ColumnsUI between each panel then this is a known issue and we hope it's corrected in future versions of ColumnsUI. The best you can do is try to mask it by choosing similar colors in your panels or windows visual style.

If you are referring to something specific to this component please provide more detail.


Thanks Yotsuya, that's exactly what I'm talking about. 'Shame there's such a mistake in visual mod, but oh well. Columns UI is certainly worth the ugliness sleep.gif
marc2003
QUOTE(ChaosBladE @ Sep 24 2006, 00:57) *

Which is not the desired result. Perheps this component does not fit with those who like hybrid playlists wink.gif


well there you go. i like keeping my album/single playlists seperate. means i don't have to worry about resizing or omitting album art in my code. i'm all for the easy life. biggrin.gif
chaosblade
All my tracks, Regardless of their nature, Are tagged to allow such a check be made. All single tracks have the aforementioned TOTALTRACKS=1 tag, While all other albums have a correct TOTALTRACKS tag for their size.

Your point still remains invalid, mquander.
mquander
QUOTE(ChaosBladE @ Sep 24 2006, 04:02) *

All my tracks, Regardless of their nature, Are tagged to allow such a check be made. All single tracks have the aforementioned TOTALTRACKS=1 tag, While all other albums have a correct TOTALTRACKS tag for their size.

Your point still remains invalid, mquander.


My point was that when I put track 7, "Disposable Parts," from my Enon album "High Society" with 13 tracks, and I put it on a playlist with 9 tracks from 9 other albums to put in my car, no detection in the world will tell the playlist that it's supposed to be displayed as a "single." That seems to be a usage pattern that would be almost impossible to avoid, and it is going to look pretty silly.
Masahiko
Hi,
IPB Image

I should have a white text color when the text is selected but the $textcolor and $font(,,,color) don't change the color, i don't know why.

My item display code :

CODE
$if($strcmp($num(%tracknumber%,1),$add($div(%totaltracks%,2),-1)),$repeat(' ',57)$font(,,bold,108-120-135)%artist%,)
$if($strcmp($num(%tracknumber%,1),$add($div(%totaltracks%,2),0)),$repeat(' ',57)$font(,,bold,108-120-135)%date%,)
$if($strcmp($num(%tracknumber%,1),$add($div(%totaltracks%,2),2)),$repeat(' ',57)$font(,,bold,108-120-135)'('%codec% %bitrate% kbps[ %codec_profile%]')',)
$padding(300,0)
$align(left,middle)$font(,,,139-154-173)%tracknumber%. $font(,,,108-120-135)%title%
$padding(-240,0)
$align(right,middle)%length%
$padding(-60,0)
$align(right,middle)$font(Wingdings,8,glow-0-0-0 glowalpha-20,108-120-135)$repeat(«,%rating%)

$imageabs2(103,103,,$add(-$add($div($mul(%totaltracks%,15),2),-30),$mul(%tracknumber%,15)),,,10,,images\shadow.png,)
$imageabs2(100,100,,$add(-$add($div($mul(%totaltracks%,15),2),-30),$mul(%tracknumber%,15)),,,10,,$replace(%path%,%filename_ext%,)front.png,)
$imageabs2(100,100,,$add(-$add($div($mul(%totaltracks%,15),2),-30),$mul(%tracknumber%,15)),,,10,,images\artoverlay.png,)

$if(%_selected%,$drawrect(297,0,380,0,brushcolor-null pencolor-108-120-135))
$if(%_selected%,$font(,,,255-255-255))


Thanks
marc2003
QUOTE(Masahiko @ Sep 24 2006, 11:46) *

I should have a white text color when the text is selected but the $textcolor and $font(,,,color) don't change the color, i don't know why.


that's because you've left the colour code until after the text has already been written..... tongue.gif the code is executed line by line as it's written.

omit that last line and change your code that writes the title to this...

$if(%_selected%,$font(,,,255-255-255),$font(,,,108-120-135))%title%

smile.gif
chaosblade
I never said it should mquander, But that is NOT the case here. I have songs SPECIFICALLY tagged as singles, and songs SPECIFICALLY tagged as albums. If I'll pick a random album song and move it to somewhere else, I don't expect it to become a single. If i move a single into a playlist which has the same album as he does, I don't expect that single to become part of the album either. All I'm asking for is a hybrid playlist. Singles get no headers, Album do get headers. Thats all there's too it. Nothing impossible, I assure you.
marc2003
QUOTE(ChaosBladE @ Sep 24 2006, 13:41) *

I never said it should mquander, But that is NOT the case here. I have songs SPECIFICALLY tagged as singles, and songs SPECIFICALLY tagged as albums. If I'll pick a random album song and move it to somewhere else, I don't expect it to become a single. If i move a single into a playlist which has the same album as he does, I don't expect that single to become part of the album either. All I'm asking for is a hybrid playlist. Singles get no headers, Album do get headers. Thats all there's too it. Nothing impossible, I assure you.


edit: removed. i typed this in a hurry and wasn't thinking straight. i was spouting nonsense. apologies for wasting time.... unsure.gif
Brendan
You know what would be awesome? An option in the imageabs() thing for tiling.

Do you know how much memory 535 instances of a 25x850 png uses, especially when scrolling?
chaosblade
Do we want to know? tongue.gif

marc2003: Odd. So there's no reason for the "group by" section at all? I think I'm misunderstanding something here.
kejkz
@yotsuya:

thanks for album art code!
Masahiko
QUOTE(marc2003 @ Sep 24 2006, 13:57) *

QUOTE(Masahiko @ Sep 24 2006, 11:46) *

I should have a white text color when the text is selected but the $textcolor and $font(,,,color) don't change the color, i don't know why.


that's because you've left the colour code until after the text has already been written..... tongue.gif the code is executed line by line as it's written.

omit that last line and change your code that writes the title to this...

$if(%_selected%,$font(,,,255-255-255),$font(,,,108-120-135))%title%

smile.gif


Thank you marc2003, it's ok now smile.gif
Nickoladze
QUOTE(Yotsuya @ Sep 23 2006, 22:54) *

CODE
$ifgreater(%totaltracks%,6,
$imageabs2(150,150,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
,)


This assumes your albums are properly tagged with %totaltracks%.


that doesnt work

for example. if i have an album with 12 tracks and i put just song #1 in my playlist, it'll still show
marc2003
QUOTE(ChaosBladE @ Sep 24 2006, 15:39) *

Do we want to know? tongue.gif

marc2003: Odd. So there's no reason for the "group by" section at all? I think I'm misunderstanding something here.


see my edit above. sorry.... blink.gif

you have a choice - either headers on or headers off regardless of your files and their tags. that's the way i see it? once you introduce at least one header into a playlist, any files that follow will also have headers... i think.....

i should stop posting on this subject now.... rolleyes.gif


QUOTE(Nickoladze @ Sep 24 2006, 21:02) *

QUOTE(Yotsuya @ Sep 23 2006, 22:54) *

CODE
$ifgreater(%totaltracks%,6,
$imageabs2(150,150,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
,)


This assumes your albums are properly tagged with %totaltracks%.


that doesnt work

for example. if i have an album with 12 tracks and i put just song #1 in my playlist, it'll still show


that's because the condition in your $if statement has been met. track #1 does have totaltracks more than 6 so an image will be rendered. as for a solution, i don't know. biggrin.gif

perhaps condition your code so that an image only gets displayed depending on the name of your playlist? you cannot differentiate between single and album tracks in the same playlist when the files are tagged with both %tracknumber%, %album% and %totaltracks%.
chaosblade
Seems so, at least by current code. Let's hope it will change later on tongue.gif
Yotsuya
earlier I had posed a request for a %group index% and I think the recent debates about placing partial albums in playlists could benefit from this so I'll rephrase and reiterate my previous request.

I would like to request the addition of two variables for this component:
%_group_index%: A variable similar to %list index% that would resolve to an integer representing an item's position in it's group.
%_group_total%: A variable that would resolve to an integer representing the total number of items in the current group.

By using something such as $if($strcmp(%tracknumber%,%_group_index%),[probably album view],[probably singles view]) or $if($strcmp(%totaltracks%,%_group_total%),[probably album view],[probably singls view]), a combination of the two, or something more thought out we would be able properly mix and match single tracks from albums.

Also we would be able to use things such as $ifgreater(%_group_total%,4,[display art],[dont display art]) to determine if a group is large enough for the art and we could use %_group_index% instead of %tracknumber% and display art for items that do not have track numbers (such as online radio genre groups).

This sort of request will inevitably fuel fire to the old eyecandy vs. functionality debate but I thought I'd put forth the request. If anyone has any refinements or a better idea please speak up.
kockroach
I love the idea Yotsuya. That is exactly what I would want for lists that have full albums, as well as individual tracks from albums (not necessarily single tracks).
terrestrial
QUOTE(tool++ @ Sep 20 2006, 13:28) *

Can you make it so one doesn't? GDI+ lags my games :'(


gdi+ shouldn't make a difference... have you noticed the same lag when using the new version?


QUOTE(beto @ Sep 20 2006, 18:20) *

Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...


you can use $alignabs to wrap and prevent overwriting.

QUOTE(david_dl @ Sep 22 2006, 17:50) *

Since one of the main attractions of this component appears to be displaying album art, and because loading and resizing the images as the playlist is scrolled is slow and a strain on the disc drive, I think it might be a good idea to implement caching of resized images, in the same way as explorer does with Thumbs.db. 'cached' could be an option for the $image* functions, and when this parameter is specified, the first time the function is run for that file, the image will be loaded, resized and saved in an 'image database' file. Subsequent accesses would read the cached data from the database. The modification date of the image could be stored to detect when the image needs to be re-loaded (if it has been changed/deleted).
Of course if someone decides to change from 150x150 display of images to 160x160 the database would no longer be of any use, for this situation there could be a 'Clear database' button on the settings page.

Keep up the good work, thanks for this wonderful component.


to be honest, I haven't tried album art so I don't know how slow it is when scrolling (initially)... it should be significantly faster the second time through as the images are loaded, resized and cached in memory. Nevertheless, it seems to be a good idea, and I will try to get to it when I get the chance.


QUOTE(jimbo11883 @ Sep 22 2006, 17:57) *

Excellent idea, david_dl.

As a fellow programmer, here are some of my thoughts...

Correct me if I'm wrong, but I think the playlist is an owner-drawn ListView common control? Whether it is or not, wouldn't a custom control be more efficient? So that you can draw the whole album art image in one step, and everything could be more customizable, such as different row heights and other things. The whole playlist viewport could respond to events, and only repaint when and where needed. The display language could be improved upon to be easier to read and write as well. Something resembling XML would be cool, and could be stored in files to be imported/exported.

Obviously that would be a lot of work, but it would make FB2k the best audio player ever if the whole UI could be done like this.

Regardless, this is incredible work, Terrestrial! smile.gif


yep, owner drawn listview. A custom control isn't necessarily going to be more efficient, although it will be more customizable- but a lot more work for me wink.gif also, I'm not a big fan of XML, so nothing like that from me.

I should also remind everyone to properly use clipping for images. Leaving the clipping height blank when doing slices for album art is inefficient as more of the image than necessary may get drawn and then clipped- whereas using a proper clipping height will only draw the necessary part of the image. use something like:

CODE

$imageabs2(150,150,0,$sub($mul(%_height%,$sub(%_itemindex%,1)),5),,%_height%,4,0,$replace(%path%,%filename_ext%,folder.jpg),alpha-80)


*******************

I've upload a new version. few fixes, some new features.
Yotsuya
QUOTE
Sep 24, 2006

+ fixed centering/resizing bug
+ option to span group display over one or more rows
+ !noheader! to suppress header
+ readded updating every second
+ selectable playlist
+ columns ui globals (untested..)
+ _itemcount _itemindex


Thank you terrestrial for another impressive update, I'd like to especially thank you for the %_itemcount% and %_itemindex%. Lots of new toys to play with in this one :)

Edit: That first one means all the ugly lines are gone from images resized with different aspect ratios.. yay!
Edit: Image files are no longer locked, so you can update album art without closing foobar.. yay!
terrestrial
QUOTE(Yotsuya @ Sep 24 2006, 22:55) *

Thank you terrestrial for another impressive update, I'd like to especially thank you for the %_itemcount% and %_itemindex%. Lots of new toys to play with in this one smile.gif


yeah, I changed the name wink.gif it seemed better (at least for me smile.gif)

*************

Important note before upgrading

your font settings / row height / background will not be carried over to the new version, so remember what they are or write them down somewhere.
Yotsuya
um.. I upgraded and all my settings carried over including row heigh and background color ... did I get lucky?
terrestrial
maybe.. or your settings could have been the same as the defaults.
apathy
Just updated and its great smile.gif

But now my playlist is messed up at the bottom. The last song shouldnt be there, when u click on it foobar just crashes crying.gif

IPB Image
vonmeth
My settings did not get erased either, and they are not the default ones. *shrug*

Great update! =)
carmenm
Did not test the last version but with the one i had it wasnt possible to delete a n entry from a playlist with del or backspace or mouse middle button. Could you add a feature like that terrestrial?

Thank for your work
bender2115
QUOTE(apathy @ Sep 24 2006, 22:26) *

Just updated and its great smile.gif

But now my playlist is messed up at the bottom. The last song shouldnt be there, when u click on it foobar just crashes crying.gif

IPB Image



same behavior here
jimbo11883
Excellent work, terrestrial! This is becoming one of the best components for fb2k ever! smile.gif

bender2115, I get the same problem with the bottom of my playlist, but it seems I have extra space.
apathy
QUOTE(jimbo11883 @ Sep 25 2006, 05:28) *

Excellent work, terrestrial! This is becoming one of the best components for fb2k ever! smile.gif

bender2115, I get the same problem with the bottom of my playlist, but it seems I have extra space.



i have extra space as well, whatever is behind my foobar at time is what shows up unsure.gif
kejkz
QUOTE(carmenm @ Sep 25 2006, 08:10) *

Did not test the last version but with the one i had it wasnt possible to delete a n entry from a playlist with del or backspace or mouse middle button. Could you add a feature like that terrestrial?

Thank for your work


Strange, it works here huh.gif
jimbo11883
QUOTE(kejkz @ Sep 25 2006, 04:45) *

QUOTE(carmenm @ Sep 25 2006, 08:10) *

Did not test the last version but with the one i had it wasnt possible to delete a n entry from a playlist with del or backspace or mouse middle button. Could you add a feature like that terrestrial?

Thank for your work


Strange, it works here huh.gif

He must of been using an old build of the component...

QUOTE(apathy @ Sep 25 2006, 04:41) *

QUOTE(jimbo11883 @ Sep 25 2006, 05:28) *

Excellent work, terrestrial! This is becoming one of the best components for fb2k ever! smile.gif

bender2115, I get the same problem with the bottom of my playlist, but it seems I have extra space.



i have extra space as well, whatever is behind my foobar at time is what shows up unsure.gif


Exactly. It's owner-drawn so that portion of the playlist is not being drawn, so anything in front of it will "stick" there. It seems that it could be a problem with the item measurement code...
kejkz
There is a update problem with new version of singlecolumns. I have a code that displays remaining time of currently playing song, but it doesen't update until you click on other row or move a selector with a mouse.
kockroach
terrestrial, I want to thank you for adding in the %_itemcount% and %_itemindex% commands. They have allowed me to give specific headers to Album-based lists, and a generic header to random lists.

There is, however, one thing I was wanting to see about adding to this amazing plugin. Could we have the option to "regroup" entries upon adding new items to a playlist?

My goal is to be able to give a specific heading to an Album in a list, as well as a generic heading to any random songs in the same list. Currently, if I have a list of random songs it throws them under a "Singles" heading. If I add a whole album to the list, it does not generate a new heading for the album. Instead it keeps the new entries in the same group as the random songs. The same applies if I start with a list of full albums. Each album has a specific heading, when random songs are added it places them under the last album's heading, but it actually changes it to my "singles" heading.

Here is the code that I am using:
Group by:
CODE
%_itemindex% %codec%

Item Display:
CODE
//Playing Row Colors
$puts(p-fill,$drawrect(130,0,0,0,brushcolor-115-135-170 pencolor-null))
$puts(p-odd,$drawrect(130,0,0,0,brushcolor-null pencolor-40-40-40 width-3))
$puts(p-even,$drawrect(130,0,0,0,brushcolor-null pencolor-0-0-0 width-3))

//Non-playing Row Colors
$puts(n-odd,$drawrect(130,0,0,0,brushcolor-0-0-0 pencolor-40-40-40 width-3))
$puts(n-even,$drawrect(130,0,0,0,brushcolor-40-40-40 pencolor-0-0-0 width-3))

//Selected Row Border Colors
$puts(s-odd,$drawrect(130,0,0,0,brushcolor-null pencolor-115-135-170 width-3))
$puts(s-even,$drawrect(130,0,0,0,brushcolor-null pencolor-115-135-170 width-3))

//Images
$puts(p-image,$imageabs(130,0,images\1bit\item_playing.png,flow))
$puts(n-image,$imageabs(130,0,images\1bit\item.png,flow))

//Playing Fonts
$puts(p-font1,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font2,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font3,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font4,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font5,$font(Kroeger 05_55,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font6,$font(Kroeger 05_55,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))

//Non-Playing Fonts
$puts(n-font1,$font(segoe ui,8,bold,180-180-180))
$puts(n-font2,$font(segoe ui,8,bold,115-135-170))
$puts(n-font3,$font(segoe ui,8,bold,150-150-150))
$puts(n-font4,$font(segoe ui,8,bold,180-180-180))
$puts(n-font5,$font(Kroeger 05_55,8,,120-120-120))
$puts(n-font6,$font(Kroeger 05_55,8,,180-180-180))

///////Layout

//Art & Album
$if($greater(%tracknumber%,5),
$if($greater(9,%tracknumber%),$drawrect(23,0,104,0,brushcolor-250-250-250 pencolor-null)
$padding(28,3)$font(calibri,8,bold,100-100-100)
$if($strcmp($num(%tracknumber%,2),06),Artist: $font(calibri,8,bold,140-140-140)%artist%)
$if($strcmp($num(%tracknumber%,2),07),Album: $font(calibri,8,bold,140-140-140)%album%)
$if($strcmp($num(%tracknumber%,2),08),Year: $font(calibri,8,bold,140-140-140)$if2(%date%,Unknown))
$padding(-28,-3)
))
$imageabs2(128,128,0,0,,,4,$add(32,$mul(-32,%tracknumber)),images\nocover.png,)
$imageabs2(128,128,0,0,,,4,$add(32,$mul(-32,%tracknumber%)),$replace(%path%,%filename_ext%,)folder.jpg,)
$imageabs(4,$add(32,$mul(-32,%tracknumber)),'images\artoverlay-1.png',)

$padding(0,0)
$drawrect(127,0,1,0,brushcolor-161-170-179 pencolor-null)
$drawrect(128,0,2,0,brushcolor-222-225-228 pencolor-null)
$if(%_isplaying%,$drawrect(128,0,0,0,brushcolor-0-0-0 pencolor-0-0-0)
$imageabs(128,0,'images\bg1.png',)
,
$ifequal($mod(%_playlist_number%,2),0,
$drawrect(130,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(130,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)
)


//Track Listing
$if(%_isplaying%,
$get(p-fill)$imageabs(130,-25,'images\glass.png',)
$ifequal($mod(%_playlist_number%,2),0,$get(p-odd),$get(p-even))
,
$ifequal($mod(%_playlist_number%,2),0,$get(n-odd),$get(n-even)
))

$if($and(%_selected%,$not(%_isplaying%))
,
$ifequal($mod(%_playlist_number%,2),0,$get(s-odd),$get(s-even)
))

$padding(2,2)
$if(%_isplaying%,$get(p-image),$get(n-image))

$alignabs(132,0,%_width%,21,left,top)
$if(%_isplaying%,$font(calibri,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140),$font(calibri,8,bold,140-140-140))


$alignabs(144,0,%_width%,21,left,top)
$if(%_isplaying%,$get(p-font1),$get(n-font1))
[Disc %discnumber% ][$if(%track%,$left(%track%,2),1). ]

$if(%_isplaying%,$get(p-font2),$get(n-font2))
$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,$get(p-font3),$get(n-font3))
%title%

$align(right,center)
$if(%_isplaying%,$get(p-font4),$get(n-font4))
%length%

$alignabs(144,2,%_width%,21,left,bottom)
$if(%_isplaying%,$get(p-font5),$get(n-font5))
[$if($greater($div(%_filesize%,1024),1024),$left($div(%_filesize%,1024),1),0).$right($left($div(%_filesize%,1024),3),2)MB ][%__bitrate%Kbps]

$align(right,bottom)
$if(%_isplaying%,$get(p-font6),$get(n-font6))
[%play_count% play$if($greater(%play_count%,1),s)]

Group Display:
CODE
//Variables
$puts(group0,$if($stricmp(%_itemcount%,$substr(%track%,4,5)),%album%,'Singles'))
$puts(group1,$if($stricmp(%_itemcount%,%totaltracks%),%album%,'Singles'))
$puts(border0,pencolor-null)
$puts(border1,pencolor-40-40-40 width-3)
$puts(fill0,brushcolor-null)
$puts(fill1,brushcolor-100-100-100)
$puts(font1,Frutiger Linotype)
$puts(size1,12)
$puts(fx1,bold glow-25-25-25 glowexpand-2 glowblur-2)
$puts(color1,115-135-170)
$puts(font2,kroeger 05_55)
$puts(size2,8)
$puts(fx2,bold glow-25-25-25 glowexpand-2 glowblur-2)
$puts(color2,115-135-170)

$drawrect(0,0,0,0,$get(fill1)$get(border0))
$imageabs(0,-10,'images\glass.png',)
$imageabs2(32,32,0,0,,,,,images\Jyriks_Foo_Icons_Pngs\png\$replace(%filename_ext%,%filename%.,).png,)
$drawrect(0,0,0,0,$get(fill0)$get(border1))

$padding(36,0)

$padding(0,4)
$align(left,bottom)
$imageabs(0,0,images\1bit\folder.png,flow)

$font($get(font1),$get(size1),$get(fx1),$get(color1))
$if($stricmp(%codec%,FLAC),$get(group0))
$if($stricmp(%codec%,MP3),$get(group1))

$padding(-30,-2)
$align(right,top)
$font($get(font2),$get(size2),$get(fx2),$get(color2))
$if($meta_test(album artist),%album artist%,%album%)

$align(right,bottom)
$font($get(font2),$get(size2),$get(fx2),$get(color2))
[%date% '| '][%genre%]


Edit: It actually seems to occur when adding songs that are of a different codec to a list. Such as adding MP3s to a list containing only FLAC files. I can get it to work in certain circumstances by performing a re-sort, but I would think that having the ability to re-group the tracks in place would work better.
Sihkih
on my foobar single colum playlist is very slow... when i add more songs, scrolling them takes some time... is it normal?
Spirit_of_the_ocean
I am using Foobar 9.4 final
The Plug-in does't seem to work huh.gif

It says
QUOTE
Failed to load DLL: foo_uie_single_column_playlist.dll, reason: Diese Anwendung konnte nicht gestartet werden, weil die Anwenungskonfiguration nicht korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren.

which means that the application could be started and that the config is incorrect. And it says that you should install it once again blink.gif

And I want to know if it is possible to show the icons (Wma etc.) in the playlist if the plug-in works.
stalnation
@Spirit...
try to install the .net Framework, then it should work...
And yes, you are able to display png images with the plugin, so it is possible
R2D2
I can confirm here.

IPB Image

The thing right below the songs is my desktop background shining through. I don't see anything happening when I click.
It's not my desktop background all the time though but the application you had open before you restored Foobar.
Yotsuya
Using the new features I came up with a chunk of code I think some of you might find useful. If you place this at the top of your "Item Display" box, you will have a variable you can use to determine wether or not to display the current line as an album or single.

All this basically does is check to see if the item's track number matches it's position in the group, and if the group is the same size as the album. This is a basic check and there is the slight possibility that a single would be in a group with the same size as it's album and in the same position as it's track number. Refinements/alternatives are welcome, but this should help solve the problem of mixing singles and albums.

CODE
$puts(album_mode,$if($and($strcmp($mod(%totaltracks%),%_itemcount%),$strcmp($mod(%tracknumber%),%_itemindex%)),1,))


You can call it like this:
CODE
$if($get(album_mode),album,single)


Edit: After playing around a bit, this makes a nice drop-in replacement for $if(%tracknumber%,album,single) that many of you are probably already using in your code.
vonmeth
QUOTE(jimbo11883 @ Sep 25 2006, 03:59) *

QUOTE(kejkz @ Sep 25 2006, 04:45) *

QUOTE(carmenm @ Sep 25 2006, 08:10) *

Did not test the last version but with the one i had it wasnt possible to delete a n entry from a playlist with del or backspace or mouse middle button. Could you add a feature like that terrestrial?

Thank for your work


Strange, it works here huh.gif

He must of been using an old build of the component...

QUOTE(apathy @ Sep 25 2006, 04:41) *

QUOTE(jimbo11883 @ Sep 25 2006, 05:28) *

Excellent work, terrestrial! This is becoming one of the best components for fb2k ever! smile.gif

bender2115, I get the same problem with the bottom of my playlist, but it seems I have extra space.



i have extra space as well, whatever is behind my foobar at time is what shows up unsure.gif


Exactly. It's owner-drawn so that portion of the playlist is not being drawn, so anything in front of it will "stick" there. It seems that it could be a problem with the item measurement code...



QUOTE(kejkz @ Sep 25 2006, 04:39) *

There is a update problem with new version of singlecolumns. I have a code that displays remaining time of currently playing song, but it doesen't update until you click on other row or move a selector with a mouse.



QUOTE(Sihkih @ Sep 25 2006, 08:30) *

on my foobar single colum playlist is very slow... when i add more songs, scrolling them takes some time... is it normal?



I don't seem to be encountering any of these problems ... Odd.
mazy
globals still seem not to work. i may be doing something wrong though wink.gif.
Spirit_of_the_ocean
QUOTE(stalnation @ Sep 25 2006, 17:17) *

@Spirit...
try to install the .net Framework, then it should work...
And yes, you are able to display png images with the plugin, so it is possible


my Pc tells me I have installed Ms .Net Framework 1.1

But foobar couldn't load the plug-in
marc2003
QUOTE(Yotsuya @ Sep 25 2006, 19:00) *

Using the new features I came up with a chunk of code I think some of you might find useful. If you place this at the top of your "Item Display" box, you will have a variable you can use to determine wether or not to display the current line as an album or single.

All this basically does is check to see if the item's track number matches it's position in the group, and if the group is the same size as the album. This is a basic check and there is the slight possibility that a single would be in a group with the same size as it's album and in the same position as it's track number. Refinements/alternatives are welcome, but this should help solve the problem of mixing singles and albums.

CODE
$puts(album_mode,$if($and($strcmp($mod(%totaltracks%),%_itemcount%),$strcmp($mod(%tracknumber%),%_itemindex%)),1,))


You can call it like this:
CODE
$if($get(album_mode),album,single)


Edit: After playing around a bit, this makes a nice drop-in replacement for $if(%tracknumber%,album,single) that many of you are probably already using in your code.


that's fantastic. tested and it works perfectly. but now i have to tag all my files with totaltracks. can i do this with a script rather than doing each album manually? i'm guessing the answer is yes, i just haven't a clue how. huh.gif

also any ideas on the syntax for the !noheading! option?
Yotsuya
foobar's internal auto-tracknumber routine will add totaltracks for you. Make a copy of a few albums to test first, but if I remember correctly I was able to load all my albums (use foo_browser to filter out anything without %tracknumber%) into a playlist, Ctrl+A to select all.. then right click the selection, choose properties, then auto-track number

I have had no luck playing with the !noheading! option. see below
terrestrial
it should be !noheader!. if that is the result of the group by value, then the header is not displayed.
Yotsuya
Thanks for the clarification, this worked well for me as the "Group By" string:

$if(%tracknumber%,%album%%discnumber%,!noheader!)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.