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
no
cristina
hi. a newbe here tongue.gif
can somebody help me make the images in my single column playlist a bit smaller? let's say around 60x60 px
I have this code (cepiperez's), and I have tried everything but I can't figure out what all those values mean. I thought (82,82 specifies the size of the bounding box of the image, but if I change it it just disappears. I've played around with some of the values but I just seem to move the image inside that bounding box..

CODE

$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,cover.jpg),)
$font(calibri,8,boldshadow glowalpha-50,)
$if($strcmp(%tracknumber%,01),$alignabs(100,-3,120,110,,)%date%,)
$if($strcmp(%tracknumber%,01),$imageabs(96,15,images\lineSHORT.png,))
$font(AvantGarde LT Medium,7,boldshadow glowalpha-50,100-100-100)
$if($strcmp(%tracknumber%,02),$alignabs(100,-3,140,110,,)%album%,)
$if(%_selected%,$drawrect(246,0,0,0,brushcolor-207-216-215 pencolor-null))
$if(%_isplaying%,$drawrect(246,0,0,0,brushcolor-40-40-40 pencolor-null))
$font(AvantGarde LT Medium,7,shadow glowalpha-50,82-115-115)
$alignabs(254,-1,$sub(%_width%,300),12,,)$num(%tracknumber%,1)  
$font(AvantGarde LT Medium,7,shadow glowalpha-50,0-0-0)
$alignabs(272,0,$sub(%_width%,300),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%length%
$alignabs(272,10,220,110,,)$font(CorpoS,7,,140-140-140)
$if($strcmp(%play_count%,?),No plays,%play_count% Plays)
$alignabs($sub(%_width%,126),13,120,20,right,)
$font(wingdings,6,bold,170-170-170)$repeat(,%rating%)
$if(%isplaying%,
$drawrect(246,0,0,0,brushcolor-40-40-40 pencolor-null)
$alignabs(250,-2,900,200,,)$font(Wingdings 3,17,bold glow-100-100-100,250-250-250)m
$font(AvantGarde LT Medium,7,boldshadow glow-100-100-100,250-250-250)
$alignabs(272,0,$sub(%_width%,318),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%length%
$alignabs(272,10,120,110,,)$font(calibri,7,boldshadow glow-70-70-70,180-180-180)
$if($strcmp(%play_count%,?),No plays,%play_count% Plays)
$alignabs($sub(%_width%,126),13,120,20,right,)$font(wingdings,6,boldshadow glow-70-70-70,180-180-180)$repeat(,%rating%)
)



Also, if someone could point me to some page that explains in detail this $imageabs2 function, I'd appreciate it, cause I've searched the wiki and the forum and I couldn't find anything..

thanks in advance
iOsiris
QUOTE(cristina @ Oct 19 2006, 18:51) *

hi. a newbe here tongue.gif
can somebody help me make the images in my single column playlist a bit smaller? let's say around 60x60 px
I have this code (cepiperez's), and I have tried everything but I can't figure out what all those values mean. I thought (82,82 specifies the size of the bounding box of the image, but if I change it it just disappears. I've played around with some of the values but I just seem to move the image inside that bounding box..

CODE

$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,cover.jpg),)
$font(calibri,8,boldshadow glowalpha-50,)
$if($strcmp(%tracknumber%,01),$alignabs(100,-3,120,110,,)%date%,)
$if($strcmp(%tracknumber%,01),$imageabs(96,15,images\lineSHORT.png,))
$font(AvantGarde LT Medium,7,boldshadow glowalpha-50,100-100-100)
$if($strcmp(%tracknumber%,02),$alignabs(100,-3,140,110,,)%album%,)
$if(%_selected%,$drawrect(246,0,0,0,brushcolor-207-216-215 pencolor-null))
$if(%_isplaying%,$drawrect(246,0,0,0,brushcolor-40-40-40 pencolor-null))
$font(AvantGarde LT Medium,7,shadow glowalpha-50,82-115-115)
$alignabs(254,-1,$sub(%_width%,300),12,,)$num(%tracknumber%,1)  
$font(AvantGarde LT Medium,7,shadow glowalpha-50,0-0-0)
$alignabs(272,0,$sub(%_width%,300),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%length%
$alignabs(272,10,220,110,,)$font(CorpoS,7,,140-140-140)
$if($strcmp(%play_count%,?),No plays,%play_count% Plays)
$alignabs($sub(%_width%,126),13,120,20,right,)
$font(wingdings,6,bold,170-170-170)$repeat(,%rating%)
$if(%isplaying%,
$drawrect(246,0,0,0,brushcolor-40-40-40 pencolor-null)
$alignabs(250,-2,900,200,,)$font(Wingdings 3,17,bold glow-100-100-100,250-250-250)m
$font(AvantGarde LT Medium,7,boldshadow glow-100-100-100,250-250-250)
$alignabs(272,0,$sub(%_width%,318),12,,)%title%
$alignabs($sub(%_width%,127),-1,120,20,right,)%length%
$alignabs(272,10,120,110,,)$font(calibri,7,boldshadow glow-70-70-70,180-180-180)
$if($strcmp(%play_count%,?),No plays,%play_count% Plays)
$alignabs($sub(%_width%,126),13,120,20,right,)$font(wingdings,6,boldshadow glow-70-70-70,180-180-180)$repeat(,%rating%)
)



Also, if someone could point me to some page that explains in detail this $imageabs2 function, I'd appreciate it, cause I've searched the wiki and the forum and I couldn't find anything..

thanks in advance


Here is an imageabs2 explaination I got from somewhere + added some a bit of my own:
Look at this code (example):

Actual string: $imageabs2(50,50,,,40,40,10,1,$replace(%path%,%filename_ext%,folder.jpg),)
What it means: $imageabs2(1st,2nd,3rd,4th,5th,6th,7th,8th,path name,)

The 1st and 2nd values (50,50) are for the size you want to show the image (resizes the original)
The 3rd and 4th values (empty values) are for the left and top of the image (usually not used in group display), usually when it is used it would be in item display (and you'd multiple the track height by track number to split the images&offset the layer in the consecutive rows)
The 5th and 6th values (40,40) are for the size of the showed image (you can resize an original 150x150 image to 100x100 with the 1st and 2nd values, but with these values you can show only a part of the resized image)
The 7th and 8th values (10,1) are for set the left and top of the showed image.
rouge
Think it would be possible to add the F2 renaming feature of ColumnsUI to quickly change an ID3 tag field? This is the only feature of ColumnsUI that I miss.

Kudos for a great program!
El Nino
Sorry, could anybody take a look at this piece of code cuz I'm going nuts already headbang.gif
Here I'm trying to calculate the average rating of the album by adding up all the rating fields of its tracks and then divide by number of tracks...
CODE

$puts(average,0)
$puts(tracks,0)

$if($and(%artist%,%album%),
$puts(average,$add($get(average),%rating%))
$puts(tracks,$add(%get(tracks),1))
,)
$puts(average,$div($get(average),$get(tracks)))
$repeat(«,$get(average))
vonmeth
$puts(tracks,$add($get(tracks),1))
Snowsfall
One quick request, the ability to resize images out of ratio(non square images could be made into squares etc)
I don't know if its possible or even smart(in regards to performance) but I thought I'd throw it out there.

edit: actually what I really need is the ability to align the resized object, something other than having it centered in the panel
ciaran
How to do $hsl in this plugin? Question has been asked in thread before but I dont see an answer. A conversion from hsl to rgb can be found here:
http://www.hydrogenaudio.org/forums/index....p;p=80111&#

But how to get the weird X-Y-Z format out of this??

Thx
tool++
QUOTE(cristina @ Oct 20 2006, 01:51) *

but if I change it it just disappears.


This confused the hell out of me to. Restart foobar once you've changed it as it has to reload the images.
...Just Elliott
QUOTE(PlazzTT @ Oct 19 2006, 23:29) *

Is there a site for single_column_playlist and/or trackinfomod configs?


It's called the appearance thread. I'm starting to grow on the disorganized approach of that thread - see, it makes people get inspiration instead of just going and straight copying someone's code in there, then they can merge their ideas and the code when they find it.
El Nino
QUOTE(vonmeth @ Oct 20 2006, 21:11) *

$puts(tracks,$add($get(tracks),1))


Silly mistake...but it didn't help, probably the bug is somewhere in the logic...thx anyway - i'm one step closer smile.gif
LXtreme
QUOTE(El Nino @ Oct 20 2006, 17:36) *

Here I'm trying to calculate the average rating of the album by adding up all the rating fields of its tracks and then divide by number of tracks...

Nice idea, El Nino. I also tried to set up a code based on your idea but failed, too.
As far as i know it is not possible, because all foobar components just read the tags of one song (selected or playing).
If i am wrong about this, please correct me!
El Nino
QUOTE(LXtreme @ Oct 21 2006, 13:06) *

QUOTE(El Nino @ Oct 20 2006, 17:36) *

Here I'm trying to calculate the average rating of the album by adding up all the rating fields of its tracks and then divide by number of tracks...

Nice idea, El Nino. I also tried to set up a code based on your idea but failed, too.
As far as i know it is not possible, because all foobar components just read the tags of one song (selected or playing).
If i am wrong about this, please correct me!

I sincerely wish you were wrong cuz i don't appreciate any other album rating idea, but it looks like you're not...therefore either it is me who needs some improvement or foobar scripting language wink.gif
Russell777
Every line in playlist gets it's data from single track only,and cannot interact with other track's data,so for now it's impossible to sum up the values of many tracks from the playlist,however foo_browser has an ability to calculate average values of a group.
LXtreme
QUOTE(Russell777 @ Oct 21 2006, 21:34) *

...however foo_browser has an ability to calculate average values of a group.

hmmm....ok....some weeks ago i decided not to use foo_browser coz it made a very ressource-intensive & lagging impression to me....(though it is a great plugin!)
but maybe collecting tag-infro from defined tracks is worth a request at cwbowron's other component foo_cwb_hooks?!

anyway, to get stick to this threads topic again, a more single_column_playlist related question:

i am using parts of Snowsfall's group display code for my scpl-view:
CODE
$imageabs2(%_width%,%_width%,0,0,width%,%_width%,0,-$div(%_width%,2),$replace(%path%,%filename_ext%,)%album%.jpg,alpha-100)

some covers did not show up as soon as there was a vertical scrollbar in my playlist. i edited the code to:
CODE
$imageabs2(%_width%,%_width%,0,0,$sub(%_width%,6),%_width%,0,-$div(%_width%,2),$replace(%path%,%filename_ext%,)%album%.jpg,alpha-100)

first this seemed to fix my prob, but later i recognized there are still larger album-covers refusing to show up.
is this some kind of a bug?! is it my stupidity?! right now i have no idea....
(maybe i should go to bed and get rid of my headache blink.gif )

any help is appreciated!




mazy
terrestrial, could you please fix support for columns ui's globals? it works well in your track info panel mod, but still not here.
Snowsfall
QUOTE(LXtreme @ Oct 21 2006, 15:22) *

i am using parts of Snowsfall's group display code for my scpl-view:
CODE
$imageabs2(%_width%,%_width%,0,0,width%,%_width%,0,-$div(%_width%,2),$replace(%path%,%filename_ext%,)%album%.jpg,alpha-100)

some covers did not show up as soon as there was a vertical scrollbar in my playlist. i edited the code to:
CODE
$imageabs2(%_width%,%_width%,0,0,$sub(%_width%,6),%_width%,0,-$div(%_width%,2),$replace(%path%,%filename_ext%,)%album%.jpg,alpha-100)

first this seemed to fix my prob, but later i recognized there are still larger album-covers refusing to show up.
is this some kind of a bug?! is it my stupidity?! right now i have no idea....
(maybe i should go to bed and get rid of my headache blink.gif )

any help is appreciated!


The only problem I ever ran into was that any cover that was smaller than the width would be just that, smaller, since scpl only shrinks images. But other than that I never had any problem with covers not showing.
LXtreme
QUOTE(Snowsfall @ Oct 22 2006, 01:09) *

The only problem I ever ran into was that any cover that was smaller than the width would be just that, smaller, since scpl only shrinks images. But other than that I never had any problem with covers not showing.


hey, i know what you mean. though i do not think it is a problem.
of course a full width cover looks better than a not "resized" one. but NO COVER definitely looks worse than any cover sad.gif .

nevertheless, thanx for your beautiful and inspiring code!!! wub.gif
cacko
Hi,

latest foo_input_matroska says that attachment can be accessed for example with matroska://%path%|cover.jpg.

I tried in foo_uie_albumart and it's working, but when I try:

$imageabs2(85,85,,,,,16,4,'matroska://'%path%'|front.jpg',) in single_column_playlist it doesn't show the file. Is my syntax right or foo_ui_single_column_playlist just won't work for some reason with that new feature ?
Betse
The big downside to an otherwise great plugin is that you cant simply select some tracks like in colums_ui. No simple order changing.
I would really like to use this single comlumn playlist, but i need that simple functionality. How do you cope with that problem? Or do you guys never switch the order?

So will this be possible in the future?
And what about single track mode? Now all track get grouped by some tag.
Joelimite
I have the exact same concerns with using this plug-in. I know it's possible to remove the headers on certain playlists using cwb_hooks, but I can't figure exactly how.

QUOTE(Betse @ Oct 22 2006, 00:47) *

The big downside to an otherwise great plugin is that you cant simply select some tracks like in colums_ui. No simple order changing.
I would really like to use this single comlumn playlist, but i need that simple functionality. How do you cope with that problem? Or do you guys never switch the order?

So will this be possible in the future?
And what about single track mode? Now all track get grouped by some tag.

musosticky
I do miss changing the order of my songs but its just so beautiful so I make sure I'm happy with the playlist order when I'm adding the files
BlindSeer
QUOTE(terrestrial @ Oct 16 2006, 15:13) *

I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.

Thank you for fixing this. However, now keyboard shortcuts that involve enter, e.g. Alt-Enter, do not function.
kejkz
QUOTE(BlindSeer @ Oct 23 2006, 02:23) *

QUOTE(terrestrial @ Oct 16 2006, 15:13) *

I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.

Thank you for fixing this. However, now keyboard shortcuts that involve enter, e.g. Alt-Enter, do not function.


works fine over here... mellow.gif
rouge
QUOTE(...Just Elliott @ Oct 21 2006, 03:25) *

QUOTE(PlazzTT @ Oct 19 2006, 23:29) *

Is there a site for single_column_playlist and/or trackinfomod configs?


It's called the appearance thread. I'm starting to grow on the disorganized approach of that thread - see, it makes people get inspiration instead of just going and straight copying someone's code in there, then they can merge their ideas and the code when they find it.


I totally agree. I post my configs for other people to change so I get more ideas, not just because I'm generous. =]
david_dl
QUOTE(cacko @ Oct 22 2006, 21:22) *
Hi,

latest foo_input_matroska says that attachment can be accessed for example with matroska://%path%|cover.jpg.

I tried in foo_uie_albumart and it's working, but when I try:

$imageabs2(85,85,,,,,16,4,'matroska://'%path%'|front.jpg',) in single_column_playlist it doesn't show the file. Is my syntax right or foo_ui_single_column_playlist just won't work for some reason with that new feature ?


I don't think this plugin uses the fb2k API for reading streams, which is why no file:// is normally used.
BlindSeer
QUOTE(kejkz @ Oct 22 2006, 16:46) *

QUOTE(BlindSeer @ Oct 23 2006, 02:23) *

QUOTE(terrestrial @ Oct 16 2006, 15:13) *

I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.

Thank you for fixing this. However, now keyboard shortcuts that involve enter, e.g. Alt-Enter, do not function.

works fine over here... mellow.gif

Actually, in my case, Alt-Enter starts playback, but Enter alone does nothing. Odd. I'm using version 0.3.2 beta [Oct 16 2006 - 12:21:19].
vulc44n
excellent. With the latest version 'enter' now begins playback of the selected file for me.

Seems to be working better overall... Great work.
jonpb
Hi,
First thanks to CepiPerez for a great and easy to mod config.

I have some questions about image cropping. I tried implementing a "walker" variable like columns_playlist but it didn't work. I believe because there is no concept of "global" variables and an "event model" in single_column_playlist. Basically, I think, it is a one time rendering. Correct?

The problem shows up when there are fewer then the required number of tracks to fill the image, for instance:

[image removed]

I can, sort of make it better by not showing the image if %disc% is equal to 2:

[image removed]

This is not quite what I would like for a few reasons. the problem also shows up when generating a custom playlist:

[image removed]

To solve the first problem I need to add empty rows or space of some kind to finish the image. To solve the second problem I need to start the first line on the first track of the playlist on the album, regardless of the tracknumber. As I mentioned I was hoping a "walker" variable could solve, at least the the playlist (second) problem, but I don't think that is an option.

Is there a solution for this?

Thanks.
Yotsuya
The entire item code gets re-evaluated for every item so your "walker" code will not work.

What many of us do is something like:

$ifgreater(%totaltracks%,4,CODE TO DISPLAY ART,)

so that the art only displays if there are enough tracks to accomodate the image. I've also seen implementations where different sizes are used based on the number of total tracks.
alphaex32
I want to group my tracks based on directory, but I can't get it to work. For some reason it is just grouping them as individual tracks. Here's the grouping code:

$cut(%path%,$sub($len(%path%),5,$len(%filename%)))
Spirit_of_the_ocean
Hello I am trying to make my single columnplaylist look like I want
but I don't know how to start can somebody help me?
I want to ad pictures of the codec.png
How should I do that ?
Nait
QUOTE(alphaex32 @ Oct 24 2006, 16:48) *

I want to group my tracks based on directory, but I can't get it to work. For some reason it is just grouping them as individual tracks. Here's the grouping code:

$cut(%path%,$sub($len(%path%),5,$len(%filename%)))

have you tried %directory% ?
alphaex32
QUOTE(Nait @ Oct 24 2006, 15:45) *
have you tried %directory% ?

Yeah, but I'd rather have it check the entire path just in case there is a duplicate folder name or something.
Insolent
QUOTE(alphaex32 @ Oct 25 2006, 07:50) *

QUOTE(Nait @ Oct 24 2006, 15:45) *
have you tried %directory% ?

Yeah, but I'd rather have it check the entire path just in case there is a duplicate folder name or something.

CODE
$cut(%_path%,$sub($len(%path%),$len(%_filename_ext%)))

smile.gif
Brendan
IPB Image

So I'm having trouble getting that little image in the middle of my group headers to resize vertically/horizontally. When I specify a size in the resizew part of imageabs2, it just moves the image that many pixels to the right, and if I use %_width% it just centers it horizontally. Same deal with resizeh.

So, am I doing something wrong? Here's the code:
CODE
... $imageabs2(%_width%,%_height%,0,0,%_width%,%_height%,0,0,C:\playlist\ovrly.png,alpha-90) ....
4nt1
single colums cannot currently resize - it can only scal an image I am guessing u want to stretch the image horizontally but I dont think that it can be done yet...
q-stankovic
One bug report smile.gif

There are two bug that just occur if ColumnUi Playlist and Single Column Playlist are in one tabbed panel stack:

1. Fresh restart of foobar -> change from ColumnsUi view to Single Column Playlist View by clicking the tab. You will see the result: Some parts of the view still belong to ColumnsUi. The only thing you can do is either scrolling the SCPlaylist or switching back to ColumnsUi and then back again to SCP.

2.Create a playlist with one album -> select several tracks in SCP -> switch to ColumnsUI. The result is that you see the same tracks more than one time



Spirit_of_the_ocean
@Tool ++
IPB Image
This is really good, but I want to know the code, because I want this layout, butI wnat to change the arrow with the picture of the codec (the .icos) (I changed them into PNGs)
alphaex32
QUOTE(Insolent @ Oct 25 2006, 00:42) *
CODE
$cut(%_path%,$sub($len(%path%),$len(%_filename_ext%)))

That's basically the same as what I was trying, but for some reason it still isnt working. It just keeps setting each track as its own group. It seems like maybe one of these variables just doesnt work with this plugin.
kockroach
alphaex32, is that all you are using for the code? Or is there more that you haven't posted?
alphaex32
QUOTE(kockroach @ Oct 25 2006, 10:07) *

alphaex32, is that all you are using for the code? Or is there more that you haven't posted?

In terms of my grouping code, I have tried that exactly how it is there. Obviously I have a lot more in my header and item display code, but that shouldnt have any affect on grouping, as far as I know.

I think I just realized what may be going on, though. The problem (grouping of each track) is only happening when I have duplicate albums. What is happening is that the tracks are being sorted by album and then tracknumber automatically, which is causing this:
Group: track#1 in first folder
Group: track#1 in second folder folder
Group: track#2 in first folder
Group: track#2 in second folder folder
etc..

The only way I could think to fix this would be to have it sort tracks by album, then path, and THEN by tracknumber. I have no idea if this is possible, though.
kockroach
Should be able to sort by album, then path, then by tracknumber. This is my group by code:

%codec%|%date%|%album artist%|%album%

Works just as you would expect. First it groups by codec, then by year, then by Album Artist, then by album. Hope that helps.
alphaex32
Nope, still won't work. If there is a duplicate album and any of the sorting factors are different, it causes the tracks to get grouped individually. I explained why above, and I dont think there is any way to get around it simply because the playlist will always sort by tracknumber. For example, try duplicating an album folder and putting it in two different places on your computer. Load both folders into a playlist and then try getting them to be recognized in two different groups. I've tried everything I can think of to get it to work, but they either get lumped together or put into individual track groups. This really isnt a huge problem anway, since this situation rarely arises (I have one or two albums that are doing it), but it'd be nice to figure out a way around it.
Coppertop
Maybe you can fix it with you sort order? Edit > Sort > Sort by file path
alphaex32
QUOTE(Coppertop @ Oct 25 2006, 13:38) *

Maybe you can fix it with you sort order? Edit > Sort > Sort by file path

Wow, it worked smile.gif I can't believe it was that easy
sune
hi. Some sorting problems here too.

I'm using single column playlist
group by: $if($stricmp(%comment%,'single'),!noheader!,%album artist%)

And my sorting string: %ALBUM ARTIST%|%DISCNUMBER%|%ALBUM%|%TRACKNUMBER%

My problem is that when I start foobar or when I change the playlist, everything is fine EXCEPT the various artists albums. In those, the tracknumbers are completely messed up. but when I do Edit>sort by>%ALBUM ARTIST%|%DISCNUMBER%|%ALBUM%|%TRACKNUMBER%, they get in order. I mean, for this albums I have to refresh the sorting string every time.. Anybody know how to fix that?

And another thing... as you see I group by artist (album artist, in fact), and then album. Is there a way to sort the albums insiden a "artist group" by date? how could I do that?

thanks in advance smile.gif
Nickoladze
is there a way to set an image as the background for the whole panel?
Yotsuya
to use a background image for the entire panel, simply specify the image toward the top of your code so that all other code gets drawn on top of it. For an example of how to tile an image vertically see this post.
Nickoladze
QUOTE(Yotsuya @ Oct 25 2006, 21:56) *

to use a background image for the entire panel, simply specify the image toward the top of your code so that all other code gets drawn on top of it. For an example of how to tile an image vertically see this post.


I know that, but that only works for the background of the items. I want the whole panel to have a background (sometimes my playlists don't reach the bottom of the panel)
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.