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
Pingwinho
QUOTE(vonmeth @ Sep 20 2006, 12:24) *

QUOTE(Pingwinho @ Sep 20 2006, 11:43) *

@ vonmeth, I use this code
CODE
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\albums\'%album artist%'.'%album%'.png',)



I had to change it a bit to fit where my files are, but it seems to work fine on my end.
I did take out the apostrophes, see if that helps any.

Edit: To further clarrify, I used Tool - 10,000 Days, and had the image named Tool.10,000 Days.jpg



Yeah it works with, except Arctic Monkeys
musosticky
Im really confused and wish I was more able to figure this out but I'm stuck and Id love some help.
For every single item I want the filetype icon to appear to the left of the song title. I'm using mazy's config.
The icons are in images/icons/png. and I wish to use the full potential of the row height which is 24.

IPB Image

I want the icons to appear in the positions indicated by the red arrows (classy I know...) and for the fields in that place now to be moved to the right to accomodate the icons

Could you please take a look att the iten display code and make the appropriate changes Id need to do this

CODE
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-36-37-45 pencolor-null))

$padding(2,0)
$font(calibri bold,9,$if(%isplaying%, underline,),250-250-250)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')
$if(%_selected%,$imageabs(0,-10,images\glass.png,))

$alignabs(6,13,%_width%,%_height%,,)
$font(CubicFive10,6,nocleartype,190-190-190)
[%length% | ]
[%bitrate% kbps]

$alignabs(0,-1,$sub(%_width%,2),%_height%,right,)
$font(CubicFive10,6,nocleartype,190-190-190)
[%play_counter%x]
$if(%cwb_queueindex%, '['%cwb_queueindexes%/%cwb_queuelength%']')

$alignabs(0,10,$sub(%_width%,2),%_height%,right,)
$font(Wingdings,9,glow-190-190-190 glowexpand-1,250-250-250)
$repeat(«,%rating%)
beto
QUOTE(acedriver @ Sep 21 2006, 01:12) *

here's my method

CODE
$puts(title,[%tracknumber%.  ][$if($meta(album artist),%artist%'  •  ',)]
$if2(%title%,%filename%))

$iflonger($get(title),60,$trim($cut($get(title),60))...,$get(title))


60 is the length of the string/text


Thanks. that gave me some ideas....
kai-
Hi, i am a noob and am new to foobar.

I have tried installing ui_single_column but it doesnt seen to be working. I have copied the dll to the components director of foobar. I have the lastest columns UI and it is working. When i go to preferences> columns ui> playlist view, i see no groups or items. The dll is active since i see it under components.

Am i missing something?

Thanks

kai-
Stuart60611
QUOTE(kai- @ Sep 21 2006, 17:14) *

Hi, i am a noob and am new to foobar.

I have tried installing ui_single_column but it doesnt seen to be working. I have copied the dll to the components director of foobar. I have the lastest columns UI and it is working. When i go to preferences> columns ui> playlist view, i see no groups or items. The dll is active since i see it under components.

Am i missing something?

Thanks

kai-



You need to add this component in the layout section (under general preference Columns UI). Cnce the single column playlst appears after adding it the layout section, you then right click and select preference to configure it.
chaosblade
You're looking at the wrong place. Go to the Layout tab, And add the Single Column Playlist view. Now go back to the actual UI and right click the new panel for its settings.

EDIT: I'm losing my edge. tongue.gif
kai-
QUOTE(ChaosBladE @ Sep 21 2006, 14:20) *

You're looking at the wrong place. Go to the Layout tab, And add the Single Column Playlist view. Now go back to the actual UI and right click the new panel for its settings.

EDIT: I'm losing my edge. tongue.gif


layout as in view > layout, and i should be able to select it? mine isnt showing.

i only see tabbed and sidebar
chaosblade
The layout tab in the Columns UI Options page, Under File -> Preferences -> Columns UI
Yotsuya
You need to add the playlist to the layout, right click on any splitter:

IPB Image
kai-
ok i found it!
u change the setup in the whitespace correct? I've just done that

configured button is grayed out is that correct?

but when i go back to playlist view i dont see any of those options like groups, etc. o_O
chaosblade
Again, after adding it, You should see it in the main UI. Then right click anywhere in the panel, and chose 'Settings' in the popup menu.
kai-
found it!

thanks! boo i r n00b! haha =(
pylb_etajv
Is it possible, or will it be possible, to display info from different grouped items in the header ?
What I mean is if an album contains tracks of different genres, can the multiple genres be displayed in the header ?

And will it be possible to sort depending on multiple tags ? For example if I have two different albums by two different artists, but these two albums have the same name, I'd like to group them under different headers tongue.gif

Apart from that, I'm lovin the plugin and i doubt i'll ever go back to the regular Columns UI biggrin.gif
spex04
QUOTE(pylb_etajv @ Sep 22 2006, 00:06) *

And will it be possible to sort depending on multiple tags ? For example if I have two different albums by two different artists, but these two albums have the same name, I'd like to group them under different headers tongue.gif


Surely changing the Group By settings to something like %album%%artist% would make that happen..?

I haven't tried so I can't confirm, but I think that's how it works..?
acedriver
if the core sort is set properly, it shouldn't be a problem.
Necrosis
Would it be possible to add the ability to have individual line heights for item display and group headers?
chaosblade
It's odd. If i enter no grouping variable, I get no headers. If i try to condition it so singles wont get headers, It ignores me. I tried something like:

$ifgreater(%totaltracks%,1,%album%,)
jimbo11883
Some bugs that I'm seeing with the latest version...

- Album art using multiple lines requires an image with an aspect ratio of 1:1 (500 pixels by 500 pixels, for example) to prevent breaks in the image.

- Images loaded with GDI+ do not get released after they are drawn. If I try to save/overwrite/delete an image, I get an access denied or similar error message.

- Sometimes the first header in the listview is above the listview's viewport, and resizing the Foobar2000 window fixes this, but will now have blank space at the bottom of the viewport.

Here's my current layout...
IPB Image

Moderation: Please do not inline images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.
marc2003
QUOTE(ChaosBladE @ Sep 22 2006, 10:52) *

It's odd. If i enter no grouping variable, I get no headers. If i try to condition it so singles wont get headers, It ignores me. I tried something like:

$ifgreater(%totaltracks%,1,%album%,)


i have a quick dirty fix for showing singles without a header for every one. i've stripped the %tracknumber% tags from the files and use this code in my group display.... tongue.gif

CODE

$if(%tracknumber%,$if2(%album artist%,%artist%),'(no album info found)')[ - $upper(%album%)]


IPB Image
david_dl
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.
jimbo11883
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
mquander
I strongly agree with david!
Yotsuya
I thought about wether or not to suggest this for awhile as it's obviously intended for use with the albumart in the playlist, something which clearly qualifies as eye candy. However, since now I'm hooked on this way of managing the playlist I'm going to mention it.. please dont flame me too much:

I would like to request the ability to specify a minimum group size. If a group contains less than x entries (x being an integer defined in preferences) then albumlist will append extra (blank?) entries to the end of the group untill it contains x entries. This would allow us to display albumart for albums containing too few tracks to normally accomodate the space for the art.. if we can hook onto something like %list_index% or even better.. a %group_index%.

It would be nice to go even further and allow x to be defined by titleformating so we could do something like $if(%tracknumber%,4,0). Even further continuation of the idea, maybe allowing 0 value to hide the header of the group.
jimbo11883
QUOTE(Yotsuya @ Sep 22 2006, 19:57) *

I thought about wether or not to suggest this for awhile as it's obviously intended for use with the albumart in the playlist, something which clearly qualifies as eye candy. However, since now I'm hooked on this way of managing the playlist I'm going to mention it.. please dont flame me too much:

I would like to request the ability to specify a minimum group size. If a group contains less than x entries (x being an integer defined in preferences) then albumlist will append extra (blank?) entries to the end of the group untill it contains x entries. This would allow us to display albumart for albums containing too few tracks to normally accomodate the space for the art.. if we can hook onto something like %list_index% or even better.. a %group_index%.

It would be nice to go even further and allow x to be defined by titleformating so we could do something like $if(%tracknumber%,4,0). Even further continuation of the idea, maybe allowing 0 value to hide the header of the group.


This would allow me to get rid of my extremely complicated album art resizing code... wink.gif
mobyduck
Probably a dumb question (given the name of the component) but...

I tried to use $tab and it doesn't seem to work: can it be added or is there another way to simulate columns in Item Display?

Alessandro

[Edit]Also (minor glitch): double clicking on the status bar brings the currently playing song at the top (or bottom) of the list, while ColumnsUI places it at the center, which I prefer.
Pingwinho
QUOTE(vonmeth @ Sep 20 2006, 12:24) *

QUOTE(Pingwinho @ Sep 20 2006, 11:43) *

@ vonmeth, I use this code
CODE
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\albums\'%album artist%'.'%album%'.png',)



I had to change it a bit to fit where my files are, but it seems to work fine on my end.
I did take out the apostrophes, see if that helps any.

Edit: To further clarrify, I used Tool - 10,000 Days, and had the image named Tool.10,000 Days.jpg



strange, because my Tool.10,000 Days is not working. It's not the spaces bad. The comas are the ones taht make the cover don't work. I need to change the %album% tag ;(
cartman(2vd)
QUOTE(Pingwinho @ Sep 23 2006, 10:40) *

strange, because my Tool.10,000 Days is not working. It's not the spaces bad. The comas are the ones taht make the cover don't work. I need to change the %album% tag ;(


Do you use the last version released? there was an error with commas in path but in last changelog:

Sep 20, 2006
+ fixed commas in file path
Pingwinho
@cartman(2vd), thx very much. U are my Messiah ][_, ([]) ][_,
andro77
QUOTE(TheDarkLord @ Sep 21 2006, 03:09) *

IPB Image

I love this... could you share the config? smile.gif
marc2003
QUOTE(terrestrial @ Sep 20 2006, 12:16) *

I've posted a new version which fixes the playback status not changing.

The arguments for $imageabs2 are

<snip>


this has me confused (it doesn't take much laugh.gif ). can some kind soul explain how i change over my imageabs code to imageabs2?

CODE

$imageabs(5,$add(25,$mul(-25,%tracknumber%)),'d\my music\full albums\'$if2(%album artist%,%artist%)'\'%album%'\folder.png',)


my row height is 25 and can use 150 as my image size (i have no albums shorter than 6 tracks)

EDIT: nevermind, sorted it. my imageabs2 code....

CODE
$imageabs2(150,150,0,$mul(25,$add(%tracknumber%,-1)),150,0,5,,$replace(%path%,%filename_ext%,)folder.jpg,)


snively
QUOTE
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

CODE
$padding(35,0)$align(right,bottom)[%play_counter%$if($greater(%play_counter%,1),x )]


IPB Image

Also as you can see album art has lines going through it, and it does this on some albums but not all of them. Is there a fix for this yet?

And one final thing, as you can see album art is showing up, but images (noalbum.png, artoverlay.png) in the foobar images directory are not. How can that be fixed? Thanks.

CODE
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\noalbum.png',)
$imageabs2(107,107,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\artoverlay.png',)


anyone? :/
marc2003
QUOTE(snively @ Sep 23 2006, 18:52) *

QUOTE
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

CODE
$padding(35,0)$align(right,bottom)[%play_counter%$if($greater(%play_counter%,1),x )]


[img]http://img111.imageshack.us/img111/9366/foobarscpcz0.jpg[img]

why use the $if $greater. surely that will only draw an x if the count is more than 1? wink.gif

try

CODE
$padding(35,0)$align(right,bottom)[%play_counter%x]


Also as you can see album art has lines going through it, and it does this on some albums but not all of them. Is there a fix for this yet?

this is because your files are not a fixed 1:1 ratio. you can resize them yourself or wait for a fix? whether you'll get one anytime soon, i don't know.... laugh.gif

And one final thing, as you can see album art is showing up, but images (noalbum.png, artoverlay.png) in the foobar images directory are not. How can that be fixed? Thanks.

CODE
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\noalbum.png',)
$imageabs2(107,107,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\artoverlay.png',)


i'm guessing your imageabs code is broken. you might as well use imageabs2 for your noalbum/overlay and then at least the postional/size code will be the same.
chaosblade
Thanks for the suggestion, marc2003, But that still makes single files get grouped together. I prefer to leave them at their designated sort place, just without any headers wink.gif
marc2003
QUOTE(ChaosBladE @ Sep 23 2006, 19:52) *

Thanks for the suggestion, marc2003, But that still makes single files get grouped together. I prefer to leave them at their designated sort place, just without any headers wink.gif


now i'm confused. you have to have one header per playlist. you can't escape that. so on a playlist where no track is tagged with %tracknumber%, it looks like this....

IPB Image

you can sort using the normal method by file path, title, artist, whatever.

what is it that you want? blink.gif tongue.gif
chaosblade
Well, if i write nothing in the Group By box i get no headers at all. So i assumed i can write some string that mimics that behavior just for single tracks.
marc2003
QUOTE(ChaosBladE @ Sep 23 2006, 20:34) *

Well, if i write nothing in the Group By box i get no headers at all. So i assumed i can write some string that mimics that behavior just for single tracks.


here you go....

QUOTE
$if2(%album%,)


smile.gif
Foxhawk
Please forgive the beginner question, but how do I kill (remove, make invisible) the small, grey resizing grips between the different elements of my interface? Thanks.
Yotsuya
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.
chaosblade
nah marc tongue.gif

My singles are more or less fully tagged. thats not the problem anyway, It just doesnt work when ANYTHING is written in the group by box.
marc2003
QUOTE(ChaosBladE @ Sep 23 2006, 21:36) *

t just doesnt work when ANYTHING is written in the group by box.


it does work. you just need a variable in all your files to seperate your singles from your albums. foobar isn't psychic. you have to define something. that's why using $if2(%album%,) works for me - because none of my singles are tagged with album info...

IPB Image
IPB Image

QUOTE
My singles are more or less fully tagged. thats not the problem anyway, It just doesnt work when ANYTHING is written in the group by box.


well like i say, foobar needs to know what is what. you need to come up with a method to differentiate single tracks from album tracks. for example if i create a playlist with random songs that are tagged properly, i get this.... tongue.gif

IPB Image

see?














Yotsuya
QUOTE(marc2003 @ Sep 23 2006, 15:37) *
here you go....

QUOTE
$if2(%album%,)


Have you actually tested that? Because I us $if(%tracknumber%,%album%%discnumber%,) to separate my singles from my albums (based on wether a track number is present) and I still get a header for the singles. As ChaosBlade indicated all that really does is affect the grouping and does not affect the presence of a header.
chaosblade
Exactly. All my singles have TOTALTRACKS=1 anyway, and even checking for that does not work. I suspect there is some check to see if the Group By box contains nothing, and in that case, it draws no headers. Otherwise, it always adds the headers regardless. I could be wrong though, But i've yet to make it work for header-less single.
marc2003
QUOTE(Yotsuya @ Sep 23 2006, 22:32) *

QUOTE(marc2003 @ Sep 23 2006, 15:37) *
here you go....

QUOTE
$if2(%album%,)


Have you actually tested that?


yes. here's a quick video (247kb) tongue.gif

clicky
Yotsuya
I think that is because you have things separated into different playlists. Having no header for singles does not appear to depend on wether the grouping is blank as chaosblade speculated, but wether or not there are any other groups displayed. I played around a little and as soon as an album group was added to the list, the header for singles appeared.
marc2003
QUOTE(Yotsuya @ Sep 23 2006, 22:49) *

I think that is because you have things separated into different playlists. Having no header for singles does not appear to depend on wether the grouping is blank as chaosblade speculated, but wether or not there are any other groups displayed. I played around a little and as soon as an album group was added to the list, the header for singles appeared.


just tested that and you're right. you got me... biggrin.gif

so go back to my original post on this subject....

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

that works (sort of). one header for numerous single tracks?


chaosblade
Which is not the desired result. Perheps this component does not fit with those who like hybrid playlists wink.gif
mquander
People want one playlist to show some files as albums, and others as single tracks, but without any differences in the tags of the album-MP3s and single-track MP3s. That isn't going to happen, whether you're using this or the Columns UI playlist. No tricks will make it happen.
chaosblade
If you actually read the thread, You would notice we DID tag our files to allow foobar to differentiate.
mquander
QUOTE(ChaosBladE @ Sep 23 2006, 18:46) *

If you actually read the thread, You would notice we DID tag our files to allow foobar to differentiate.


That's not the point.

Suppose you have a music library with 1000 albums and then 750 assorted singles, and you want to assemble a playlist for a friend, or for your ipod, or for your car, or for listening while you play a game, or almost any kind of listening at all. Likely as not that playlist will include some tracks from albums, and some singles.

The singles might have a tag letting you know that they're "singles", but obviously the album tracks won't, or else you couldn't ever display them in "album mode." So if you're using a playlist rigged to display albums and singles separately, it's almost definitely going to look ugly as hell, with two thirds of your tracks looking like slices of albums and one third looking like singles.

That's a huge clear limitation that can't really be surmounted in FB2K. So why deal with it? Why not just tag your playlists as singles playlists or album playlists instead? I don't really understand that.
acedriver
on my config, the core sort string will take care of the grouping.. singles are listed first regardless of the date, followed by full albums.

for the single it will display as artirt - album - title

screen:
IPB Image
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.