HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: terrestrial on 2006-08-29 03:40:11

Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-29 03:40:11
I have made a plugin that displays the playlist in a single column with "headers", which I find useful for creating a narrower and smaller layout.

(http://img220.imageshack.us/img220/5039/minifooim0.png) (http://imageshack.us)

This is a beta so user beware. Download (http://users.bowie-cass.com/singa/foobar)

For documentation, please refer to the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Single_Column_Playlist_%28foo_uie_single_column_playlist%29&action=history). (thanks to FofR, and the other contributors).

Requires:

MS Visual C++ 2005 Runtime Library (http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en)
GDI+ - only needed for Windows 2000 (http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en)
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-08-29 04:42:40
Oooo, great idea. =)
Title: foo_uie_single_column_playlist
Post by: year98 on 2006-08-29 04:46:06
It's good idea... But It doesn't work for me.

Please example code...
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-29 04:54:18
there were supposed to be some defaults loaded, but I guess not. I've edited the first post with what I use.
Title: foo_uie_single_column_playlist
Post by: year98 on 2006-08-29 05:05:42
It's not working as ever...
Only shows black line(and blue, red)
And edge style is always "none"...
I'm windows 2000. Does it work with only XP?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-29 05:08:41
did you set the "row height"? maybe restart after that?
Title: foo_uie_single_column_playlist
Post by: year98 on 2006-08-29 05:13:03
Yes, I changed row height, but result was same. line thickness was changed. Restarting is same too.
Sorry to bother you and my poor English.
And Good luck!
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-08-29 05:29:58
Try changing the height to 40, and I'm sure something will pop up.

Edit: And for some odd reason, 16 height doesn't work for me. I had to use 18.  Odd
Title: foo_uie_single_column_playlist
Post by: year98 on 2006-08-29 05:39:49
Oh, thx it works...^^
Then, why edge style is always "none"?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-29 05:47:19
edge style isn't implemented yet.
Title: foo_uie_single_column_playlist
Post by: Anas on 2006-08-29 07:43:18
Thanks, I like it. Looks very promising! I also have a feature request: Grouping by multiple fields e.g. first by %artist% and then by %album% which would result in an header for each artist and one for each album.

EDIT: and configurable header height would be great also

EDIT2: Found a bug also:
Shortcuts seem not to work - I have 'P' set as shortcut for Properties when I use it the selection jumps up to the header and that's it. But when I open the properties window manually and close it and then press 'P' instantly it works as expected.
Title: foo_uie_single_column_playlist
Post by: unknownllama on 2006-08-29 08:25:55
Great Plugin!
Perfect for my new mini foobar setup
Title: foo_uie_single_column_playlist
Post by: Strictly4me on 2006-08-29 09:05:21
Perfect for my sidebarconfig (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=43077&view=findpost&p=420640)! - Thanks. 

((((( Strictly4me )))))
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-08-29 10:26:18
Are those album headers tracks?
Title: foo_uie_single_column_playlist
Post by: foosion on 2006-08-29 10:50:04
Some first (negative) impressions:Don't get me wrong, I really like the idea of being able to group playlist items. I just think that there are currently too many (unnecessary) obstacles for people who just want a grouped playlist view that works out of the box and is easy to configure. The current version is geared too much toward advanced formatting script users. Some good, simple defaults and a way to select a default font and text color without using formatting script could do a lot here.
Title: foo_uie_single_column_playlist
Post by: Andreasvb on 2006-08-29 11:34:50
Great idea, will try it.

I really like the grouping feature.

foosion, I hava a plugin for 0.8x that I think you did, foo_coruscate.
I really liked that one. Hope to see it for 0.9 some day =)
Title: foo_uie_single_column_playlist
Post by: Hamallainen on 2006-08-29 12:37:18
Hi,
Thanks a lot, really good idea 
that's very promising.

one little suggestion : when we click on an album header , i think it would be better if it could automatically select the whole album instead of only the first track.
Title: foo_uie_single_column_playlist
Post by: vlada on 2006-08-29 20:14:18
How can I display it? I don't see it anywhere in Columns UI panels.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-08-29 21:49:12
I am encountering the same problem with the ctrl+p not bringing up preferences.

How can I display it? I don't see it anywhere in Columns UI panels.


It is under playlist views.

Edit: And that is inside the layout tab under Columns UI.

Are those album headers tracks?


No.

To add to foosions feature requests:

1. Being able to change the selection color.

2. Ability to make basically mini columns for the item and group display. Maybe this is possible, but as of now, I don't know how. If that isn't clear, I mean, basically for each thing (like track number, track name, and track length) to have its own static width. I think this might be possible with some regular code formats that one can use in trackinfo (paddng and cut?), but the ablity to possibly create specific boxes (possibly just like the current columns_ui?) would make setting it up far, far easier.

3. Ability to display album art (or any sort of picture) inside the group/item (mainly group) display.

4. "No focus rectangle for the active item. I really don't care, if this can be achieved using some formatting code; I don't want to have to read through the documentation to get something as simple as that." I would also add the ability to change anything, including font, what is displayed, how it is displayed, the works 


Sorry, I'm sure you are already working on some (as it is still in beta as you mentioned), if not all, of these, but having a list of requested features should be helpful.

Thanks once again!
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-08-29 23:44:20
Thanks terrestrial, I can see this plugin becoming very popular! I like it a lot!!
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-08-30 01:26:53
"No focus rectangle for the active item. I really don't care, if this can be achieved using some formatting code; I don't want to have to read through the documentation to get something as simple as that."

For the ones wishing to achieve this for the time being, till something simplier is put in, just use the following code.

Code: [Select]
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-113-122-134 pencolor-255-255-255),)


I like the drawrect syntax.
Could use it later (or now, havn't messed with it enough to see) to help display when a song is missing a certain tag field, display hotness, rating, etc.

Edit: Er, maybe a bug. When useing that coding I supplied, it leaves the focus rectangle after the song is done or changed to another. Only way to get rid of it (as far as I can tell) is by selecting and then deselecting it.

Edit2: (http://img291.imageshack.us/img291/6558/examplekk8.jpg)

Something I whipped up real fast.

Code: [Select]
$if(%isplaying%,$drawrect(6,0,21,0,brushcolor-113-122-134 pencolor-255-255-255),$drawrect(0,0,0,0,brushcolor-null pencolor-null))
$if(%isplaying%,$drawrect(235,0,45,0,brushcolor-113-122-134 pencolor-255-255-255),$drawrect(0,0,0,0,brushcolor-null pencolor-null))

$padding(10,0)
$font(ocr a extended,7,,255-255-255)
$align(left,center)%tracknumber%$align(right,center)$font(dicotmedium,7,,241-241-243)%title%    $pad_right($font(gulimche,6,,241-241-243){$font(ge inspira small caps,7,,241-241-243)%length%$font(gulimche,5,,241-241-243)'}',10)
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-08-30 03:14:09
i really like this plugin, quick try with it:

(http://mazy.johanka.cz/my_pics/temp/foobar/single_column_playlist-2.png)

alternating colors for rows:

(http://mazy.johanka.cz/my_pics/temp/foobar/single_column_playlist-3.png)


btw i have realized that one can specify glow color, glow intensity etc.

terrestrial, thank you for this! i would like you to solve foosion's remarks, $hsl and colors are essential to me + it would be nice if it could handle selection color in the standard way of many foobar's plugins and places.

requests:
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-08-30 03:57:37
i really like this plugin, quick try with it:

You sir, are a genius.
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-08-30 03:59:44
skelly831, thanks, but it's terrestrial who made this great plugin
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-08-30 06:40:55
terrestrial please listen to foosion, he knows what he is talking about... the more we can integrate the components the better

this is a good component but can get alot better  keep it up
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-08-30 21:38:44
Is there a way to define the color for the background and text of the currently selected item? I know how to do this with $rgb() but not $font(). Though to be honest I think I'd be more happy if I could do something like:

$if(%selected%,$drawrect(0,0,0,0,pencolor-233-233-233),)

To retain whatever colors are already there and just draw a border.

Pretty please, with sugar on top, add the function to middle-mouse click an entry to add it to the playback queue.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-31 06:50:54
Quote
Thanks, I like it. Looks very promising! I also have a feature request: Grouping by multiple fields e.g. first by %artist% and then by %album% which would result in an header for each artist and one for each album.


I'll have to think about this one some more. I would think having just one header makes it easier to see where things fit it with less scrolling.

Quote
EDIT: and configurable header height would be great also biggrin.gif


The listview limits the size of rows to be the same, but I think I may be able to make the headers occupy 2 (or more) rows.

Quote
EDIT2: Found a bug also:
Shortcuts seem not to work - I have 'P' set as shortcut for Properties when I use it the selection jumps up to the header and that's it. But when I open the properties window manually and close it and then press 'P' instantly it works as expected.


fixed.

Quote
# The playlist view only allows a single instance, but uses a popup configuration window.
# The aforementionted configuration window is modal.


I will try to get this fixed for the next version. I used the trackinfo code as a skeleton, hence the similarities.

Quote
# The initial defaults after installing the component come up blank here. Changes in row height in this state only took effect after resizing the playlist view.
# The component uses its own custom color code format. It is not possible to use the existing color code generation and manipulation functions provided by foobar2000 itself ($rgb, $hsl, $blend).
# No focus rectangle for the active item. I really don't care, if this can be achieved using some formatting code; I don't want to have to read through the documentation to get something as simple as that.


fixed, added, and fixed (with some default code). Eventually I want to be able to remove this and use the columns ui "globals" for the various colors.

Quote
one little suggestion : when we click on an album header , i think it would be better if it could automatically select the whole album instead of only the first track.


I think this is doable. I need to make some other tweaks to the selection code as well.

Quote
1. Being able to change the selection color.


added.

Quote
2. Ability to make basically mini columns for the item and group display. Maybe this is possible, but as of now, I don't know how. If that isn't clear, I mean, basically for each thing (like track number, track name, and track length) to have its own static width. I think this might be possible with some regular code formats that one can use in trackinfo (paddng and cut?), but the ablity to possibly create specific boxes (possibly just like the current columns_ui?) would make setting it up far, far easier.


you can kinda have columns using $alignabs(x,y,width,height,h-align,v-align).

Quote
3. Ability to display album art (or any sort of picture) inside the group/item (mainly group) display.


you can already display .pngs using $imageabs

Quote
provide us with some group-related info (summary tags) - like number of group items, group length (time), group size (in bytes), group average bitrate etc. maybe even function to test whether given tag varies among group items (like %artist% - for properly detecting variable artists albums). it could be just few of them, or general functions like $group_sum(tag) and $group_varies(tag).


interesting idea. I will add it to the list.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-31 07:31:35
Quote
separate height for group display and item display. if it could change the height from the formatting, that would be great (so we could have more detailed group display when there's additional information available and less detailed when not).


row heights have to all be the same.... but maybe I can hack it where the some lines could occupy 2 or more rows. I like the idea of expanding the height based on formatting though.. for example the height could be tripled for the playing song to display more detailed info, etc...

Quote
i'm sure people would like to be able to display album art for example as background under group items or draw rectangle over all of them etc. imho some sort of "group items display" supplementing item and group display would be nice ...


unfortunately, I don't think this is going to be feasible with the listview control as drawing occurs row by row.

Quote
vertical padding in $padding has to be negative to pad content from the border into the rectangle. that's not consistent with the horizontal padding and coordinates ...


fixed. good catch.

Quote
Is there a way to define the color for the background and text of the currently selected item? I know how to do this with $rgb() but not $font(). Though to be honest I think I'd be more happy if I could do something like:

$if(%selected%,$drawrect(0,0,0,0,pencolor-233-233-233),)

To retain whatever colors are already there and just draw a border.


it's like you can read my mind

Quote
Pretty please, with sugar on top, add the function to middle-mouse click an entry to add it to the playback queue.


can this be added through the foobar preferences and I would pass on the middle click, or would it need to be added separately?

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

New version uploaded with some of the aforementioned fixes.

Default code for "Item Display"

Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8))
$padding(4,0)
$align(left,top)%list_index%$align(right,top)%title%


Default code for group display:

Code: [Select]
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)
$padding(4,0)
$align(left,top)$font(,,bold,64-0-0)%album% '['%date%']'
$align(right,top)$font(,,bold,0-64-0)%composer%
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-08-31 08:05:52
Quote
Pretty please, with sugar on top, add the function to middle-mouse click an entry to add it to the playback queue.


can this be added through the foobar preferences and I would pass on the middle click, or would it need to be added separately?


This is an existing feature with the regular ColumnsUI playlist and I rather miss it. I poked around foobar a bit and found the command "Add to Playback Queue" available for context menus and buttons. Maybe a more elegant solution would be to have this component allow the user to link doubleclick and middle button to any standard foobar event. I believe the original playlist did this for doubleclick.  But yes as far as I can tell the whole adding to queue bit is already built into foobar you'd just need to hook the mouse buttons and trigger the existing events.

EDIT: There was some talk about this in the past and it sparked a great deal of interest; would it be possible to doubleclick on the header and collapse/expand all the entries under that header? So you could view a playlsit that contained only a bunch of headers that can be expanded to view their contents?

Keep up the good work, this and your trackinfo_mod really expand the flexibility of the foobar interface.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-08-31 08:39:12
This isnt specific to this plugin, but can anyone confirm if %isplaying% breaks if the currently playing track also exists in the playback queue? (add a song to the queue more than once then cycle to the first entry)  I've notice d the behavior in both this component and the ColumnsUI playlist.  Can anyone suggest an alternative way to determine if a track is playing?
Title: foo_uie_single_column_playlist
Post by: kanak on 2006-08-31 14:05:44
skelly831, thanks, but it's terrestrial who made this great plugin


mazy, just want to add that i too am a big fan of your wok. you do stuff that i can't even conceive. bravo!

PS could you please share the code that you used?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-08-31 15:05:35
i really like this plugin, quick try with it:

Could you please post your code for this? Really nice!
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-08-31 15:18:06
just a test using the track info mod and foo_uie_single_column_playlist:

(http://mazy.johanka.cz/my_pics/temp/foobar/foobar-mazy-2006-08-31.png)

formatting for the playlist. the overlay image is here (http://mazy.johanka.cz/temp/playlist-refl.png). you would need some fonts used (CubicFive10 and CubicFive12 among with Calibri). row height is 23.

it's just a test. that album / artist split box doesn't handle situations when there's not enough space; there's no selection / focus indication and insufficient playing item indication; i don't use album rating so for testing i just did $rand.

item display:

Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-245-245-245 pencolor-null))

$padding(2,0)
$font(calibri bold,9,$if(%isplaying%,underline,),170-170-170)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')

$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_count%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%)
group display:

Code: [Select]
$padding(1,0)
$drawrect(,,,,brushcolor-119-213-249 pencolor-51-191-238)$padding(4,1)

$align(left,center)$font(calibri bold,9,,255-255-255)
$font(,,bold glow-18-173-224 glowexpand-1,)
%album%

$align(right,center)$font(,,bold,255-255-255)
%artist%
$puts(ar_w,$calcwidth(%artist%))

$drawrect($sub(%_width%,$get(ar_w),18),-1,3,%_height%,brushcolor-51-191-238 pencolor-null)
$drawrect($sub(%_width%,$get(ar_w),17),-1,1,%_height%,brushcolor-250-250-250 pencolor-null)

$alignabs(6,13,%_width%,%_height%,,)
$font(CubicFive12,6,nocleartype,18-173-224)
[%date% | ][%genre%]

$alignabs(0,10,$sub(%_width%,$get(ar_w),13),%_height%,right,)
$font(Wingdings,10,,)
$repeat(«,$rand(5))

$imageabs($sub(%_width%,$get(ar_w),98),0,data\misc images\playlist-refl.png,)
$imageabs($sub(%_width%,87),0,data\misc images\playlist-refl.png,)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-31 16:08:05
looks good, mazy

could you do me a favor and check if the same character problems happen in this plugin as trackinfo_mod? thanks.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-08-31 16:14:23
My request: Collapsible headers.
Im going to play around with this tonight, see what designs I can come up with.

Also I think this needs a wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Single_Column_Playlist_%28foo_uie_single_column_playlist%29)
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-08-31 16:16:38
looks good, mazy

could you do me a favor and check if the same character problems happen in this plugin as trackinfo_mod? thanks.

thank you. yes, it does 
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-08-31 17:19:00
i second collapsable headers
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-08-31 18:01:26
Upon install, with no modification I get something that looks like this:
(http://fofr.trivialbeing.net/images/screenshot_foobar.png)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-08-31 19:30:28
a restart should fix it. There are still some settings glitches I'm working on.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-08-31 20:18:57
I'm not very familiar with the modified trackinfo formatting code. I was just wondering if it is possible to specify a background image using tagz. If so, we could integrate album art into the playlist itself, which would be awesome. For example: $replace(%path%,%filename_ext%,)folder*
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-08-31 20:32:05
$imageabs(,,images\backdrop.png,)

If you would like to place the image at a specific place you can put the x,y coordinates in the first two parameters:

$imageabs(10,5,images\backdrop.png,)

As mentioned before, the images are currently restricted to .png format and if I am not mistaken they must reside relative to the main foobar directory (in the above example x:\path\to\foobar2000\images). Also I do not believe there is currently any way to resize images from their original dimensions.

I havnt played around with images yet but I would suspect you may also be limited to fitting the image inside the current row.

EDIT: I did a little exprimenting and any image is indeed clipped so that it only appears in the current row.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-08-31 20:35:52
Oh, ok. I just remembered that the group headers need to be the same height as the items, so it wouldnt be really practical anyway (uness, of course he added an option to set the header and item heights independently). Kind of strange that only PNG is supported, also.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-08-31 22:24:00
EDIT: I did a little exprimenting and any image is indeed clipped so that it only appears in the current row.

If you based the image on tracknumber you could make an image spread across the album. e.g. a shift by y depending on tracknumber

Like this:
(http://fofr.trivialbeing.net/images/overlappingfoobar.png)

Code: [Select]
$imageabs(0,  $add(25,$mul(-26,%tracknumber%)),images/test.png,)

I put this at the end. Of course at the beginning it would be beneath the songs. 26 is my row height.

Also on this logic, knowing how many items are in a group becomes very helpful - assigning images for first and last group items will allow a custom border for that group. Combine this with a genre specific border (as from the tags) and now we are talking some pretty sweet and functional foobar looks.

Bugs and Feature Requests:
* Different size definition for header - I'd like to include lots more info here
* One annoyance / bug I have found is that whenever I press a normal key the playlist resets its display to the first item.
* There is a redraw bug. I have an auto hide feature, when this is shown the panel shrinks and a scroll bar appears on the right, when the auto hide disappears again the scroll bar goes away but the panel stays in its squished shape until the window is resized.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-08-31 23:31:10
So basically each row automatically offsets the image so that it's "slice" lines up with all the others based on track number.. that's pretty slick :)
Title: foo_uie_single_column_playlist
Post by: RevivalofHonor on 2006-09-01 01:31:41
I'm having quite a bit of fun with this plug-in, just as with your track_info_mod plug-in.

However, I'm having a problem.  Maybe it's something you haven't implemented, or maybe it's dumb scripting on my part, but I'm trying to make a script that handles albums playlists and singles playlists.  For singles playlists, I have an exclamation point (!) precede the playlist name (for example, !Rock), while albums playlists are normally named (for example, Story of the Year).

Here is my code.

Group By
Code: [Select]
$if($stricmp($left(%playlist_name%,1),!),%playlist_name%,%album%)


Item Display
Code: [Select]
$ifequal($mod(%list_index%,2),0,
$drawrect(0,0,0,0,brushcolor-40-40-40 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8))
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-null pencolor-255-255-255))
$padding(10,0)
$font(,16,,230-230-230)
$align(left,middle)$if($stricmp($left(%playlist_name%,1),!),%list_index%,%tracknumber%)
$font(,10,,230-230-230)
$align(left,top) '['%length%']'$align(right,top)%title%
$font(,8,,230-230-230)
$alignset() - $align(right,middle)%artist%[ '['Arr. - %arranger%']']


Group Display
Code: [Select]
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)
$padding(4,0)
$if($stricmp($left(%playlist_name%,1),!),
$align(left,top)Playlist: $right(%playlist_name%,$sub($len(%playlist_name%),1)),
$align(left,top)%album%[ '['%date%']']$align(right,top)%composer%)


It's supposed to display album information for albums playlists, while showing only the playlist name for singles playlists.  Any help would be appreciated.

Edit: Here is what my foobar2000 currently looks like.
Singles view (http://i101.photobucket.com/albums/m52/ronoholiv/single_column_playlist1.jpg)
Albums View (http://i101.photobucket.com/albums/m52/ronoholiv/single_column_playlist2.jpg)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-01 04:40:03
Using FofR's idea for embedding images beyond the row, I played around and came up with some nice borders on the side of my playlist:

(http://img181.imageshack.us/img181/7492/footx4.th.png) (http://img181.imageshack.us/my.php?image=footx4.png) 
Images Used:
(http://img258.imageshack.us/img258/3089/columnleftzt8.png) (http://imageshack.us)      (http://img311.imageshack.us/img311/3626/columnrightuu9.png) (http://imageshack.us)
column.left.png, column.right.png

Group By
Code: [Select]
$if(%tracknumber%,%album%%discnumber%,)
Item Display
Code: [Select]
// -- Backgrounds -- //
$if(%tracknumber%,$drawrect(0,0,0,0,brushcolor-140-186-236 pencolor-null),)
$if(%cwb_queueindex%,$drawrect(0,0,0,0,brushcolor-58-110-165 pencolor-null),)
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-10-36-106 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-233-233-233),)

// Side Art
$puts(art.width,30)
$puts(art.height,60)
$puts(art.num,$add($div($mul(%list_index%,%_height%),$get(art.height)),1))
$puts(art.offset,-$sub($sub($mul(%list_index%,%_height%),$mul($sub($get(art.num),1),$get(art.height))),%_height%))
$imageabs(0,$get(art.offset),images\column.left.png,)
$imageabs($sub(%_width%,$get(art.width)),$get(art.offset),images\column.right.png,)

// -- Text -- //
$font(tahoma,8,,)

// Track Number
$alignabs(50,,%_width%,%_height%,,)
$if(%tracknumber%,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
%tracknumber%$font(,,,233-233-233).
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))

// Title
$alignabs(75,,%_width%,%_height%,,)
$if(%title%,$trim($left(%title%,$sub($strrchr(%title%,$char(40)),1))),)

$if($strrchr(%title%,$char(40)),
$font(,,,233-233-233) $char(40)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
$substr(%title%,$add($strrchr(%title%,$char(40)),1),$sub($strrchr(%title%,$char(41)),1))
$font(,,,233-233-233)$char(41)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
)
,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
[%artist% - ]%title%
)


// Queue Indicator
$if(%cwb_queueindex%,
$alignabs($sub(%_width%,$calcwidth(%cwb_queueindexes%),150),,%_width%,%_height%,,)
$font(,,,233-233-233)Q
$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236)):
$font(,,,233-233-233)$char(91)$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236))%cwb_queueindexes%$char(47)%cwb_queuelength%$font(,,,233-233-233)$char(93)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
,)

// Length
$padding(50,0)
$align(right,)%length%
Group Display
Code: [Select]
$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null)$padding(4,0)
$font(tahoma,7,,233-233-233)
$align(left,middle)$if(%CDID%,$char(91)$font(,,,140-186-236)%CDID%$font(,,,233-233-233)$char(93),)
$align(center,middle)

$if(%album artist%,
$if($strrchr(%album artist%,$char(12300)),
$font(,,,140-186-236)$char(12300)$font(,,,233-233-233)$substr(%album artist%,2,$sub($len(%album artist%),1))$font(,,,140-186-236)$char(12301)
,%album artist%)
,)

$if($and(%album artist%,%album%),$font(,,,140-186-236) - $font(,,,233-233-233),)
$trim($left(%album%,$sub($strrchr(%album%,$char(40)),1)))
$align(right,middle)[$char(91)$font(,,,140-186-236)[%genre%]$if($and(%genre%,%date%), - ,)[%date%]$font(,,,233-233-233)$char(93)]
,
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)$padding(4,0)
$align(center,)$font(tahoma,7,italic,0-0-0)~ Singles ~
)

This component is a bit of fun once you get going :)
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-01 08:27:05
Nice idea using the %list_index%, I hadn't thought of that. Some pretty code also
I added these tricks to the wiki.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-01 10:04:23
I want to add some details about $drawrect to the wiki, should I put it on the trackinfo mod panel page where all the other tags are currently or on the single column playilst page?

I am thining panel page plus link on playlist page. This way tags that work in both only appear once and the playlist page can keep to neat tricks and techniques.

What are the specific attributes of $drawrect?
Code: [Select]
$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null)

The first four zeros, do these correspond to pos-x, pos-y, width, height?
Title: foo_uie_single_column_playlist
Post by: Jensen on 2006-09-01 10:33:23
Great plugin!
But why don't you allow us to change the order by draging items?
And can you write a function list for us?
Thanks!
Title: foo_uie_single_column_playlist
Post by: Xerion on 2006-09-01 11:30:10
Why doesn't this component have an every second update option?
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-01 11:32:46
Why doesn't this component have an every second update option?

CPU resource strain?
Title: foo_uie_single_column_playlist
Post by: Xerion on 2006-09-01 11:58:29

Why doesn't this component have an every second update option?

CPU resource strain?


It can be a toggle just like in the trackinfo mod. And on my conroe foobar seems to use 0% cpu while playing anyway
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-01 18:06:10
I want to add some details about $drawrect to the wiki, should I put it on the trackinfo mod panel page where all the other tags are currently or on the single column playilst page?

I am thining panel page plus link on playlist page. This way tags that work in both only appear once and the playlist page can keep to neat tricks and techniques.

What are the specific attributes of $drawrect?

imho most of the specifics and common stuff of these two plugins should be on the track info page with links to it from the other one.

$drawrect(_x,_y,_width,_height,brushcolor-_r-_g-_b pencolor-_r-_g-_b alpha-_alpha expand-_size blur-_size width-_border)

omitting (or setting to 0) _x, _y, _width or _height substitutes the value for maximal (_width and _height) or minimal (_x, _y) with respect to $padding. for example if you omit _width and set _x to 10, _width gets substituted to %_width% (minus / plus any possible paddings), but because of _x set to 10, you wouldn't see part of the rectangle.

both brushcolor and / or pencolor can be disabled like brushcolor-null.

when using any advanced features like alpha blending or blurring, rectangle is drawn only using pen color. if you specify brushcolor, it takes pen's color. you can draw only border though, using brushcolor-null.

example: $drawrect(,,,,pencolor-0-0-255 brushcolor-null width-2 alpha-100 blur-2)

alpha is for alpha blending with value from interval 0-255.

expand expands the rectangle by given pixels.

blur blurs it with given strength

width controls border's width (drawn using pencolor). default is 1 unless you disable border by pencolor-null. setting it to 0 doesn't disable border (as it stays at 1). border is on central (i.e. not fully inside or outside). for _width=1, the whole border is inside. for even widths the top-left part is by one pixel outside, the bottom-right one by one pixel inside. for odd numbers from 3 on it's exactly central (the same on the inside as on the outside).

compare examples:

$drawrect(,,,,brushcolor-200-200-255 width-1)
$drawrect(,,,,brushcolor-200-200-255 width-2)
$drawrect(,,,,brushcolor-200-200-255 width-3)

i hope you can make this informatin into useful stuff on the wiki. maybe some images could help .

there's a lot of similar things for $font, would you be interested in them too?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-01 21:01:11
I love this plugin. I'd like to request a song notifier based on the foo_uie_trackinfo_mod code. It could work like pretty popup but much more customizable. The more consistency between plugins, the better.
Title: foo_uie_single_column_playlist
Post by: Blitzmeister on 2006-09-02 05:20:29
Has any tryed to get the album art in the tracks?
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-02 10:53:58
I love this plugin. I'd like to request a song notifier based on the foo_uie_trackinfo_mod code. It could work like pretty popup but much more customizable. The more consistency between plugins, the better.

i can see the base rendering core being used in multiple componets. maybe terrestrial could implement it as standalone service plugin and use that service from his other plugins.
Title: foo_uie_single_column_playlist
Post by: RevivalofHonor on 2006-09-02 17:57:44
I have a new question, which is probably related to my first one (here (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=426214)):

Does the "Group By" panel recognize $if()?  I did several tests, and it doesn't seem to for me.

Edit: placed correct link.
Title: foo_uie_single_column_playlist
Post by: SwiftBass on 2006-09-02 18:42:02
EDIT: nevermind problem solved
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-02 19:00:07
Does the "Group By" panel recognize $if()?  I did several tests, and it doesn't seem to for me.

Yes it does, I am currently using this setup:
Code: [Select]
$if($strstr(%cwb_activelist%, '-s-'), %rating%, %album%)

So when the playlist has "-s-" in it groups by rating not album.
Title: foo_uie_single_column_playlist
Post by: RevivalofHonor on 2006-09-02 19:09:44
Thank you, FofR.

I guess I did something wrong with my script.  It's odd, though, cause the same $if condition I tried to use works in other areas.  Oh well.

Thanks again.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-02 19:53:28
Stuff keeps disappearing
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-02 20:39:14
Has any tryed to get the album art in the tracks?

(http://img169.imageshack.us/img169/7855/foobarxp5.jpg)
You mean like this?

Code: [Select]
$imageabs(375,$add(25,$mul(-16,%tracknumber%)),images/%album%.png,)


You'll have to play around with the 375, and rename your art to the album name as in the ID3 tags and put it in the images folder to get it to work, until someone comes up with a more elegant way :P
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-02 21:41:59
Hi there, thanks for this great plugin

theres something i want to point out

when i use this with tabs (foo_uie_tabs) after I switch to other tab and back to the plugin, the column will not display correctly, (totally blank) until i scroll down and up again , it will show up fine again

Request : add transparency option, this would be awesome!

great plugin anyway
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-02 22:06:04
Code: [Select]
$imageabs(375,$add(25,$mul(-16,%tracknumber%)),images/%album%.png,)


You'll have to play around with the 375, and rename your art to the album name as in the ID3 tags and put it in the images folder to get it to work, until someone comes up with a more elegant way


Found a slightly more elegant way.

Code: [Select]
$imageabs(230,  $add(25,$mul(-26,%tracknumber%)),../../$directory(%path%)/%album%.png,)


This will look in the folder of where the music is. This one assumes that you have your music on the C:\, which most probably do not have. I couldn't figure out how to get it to look in a different drive (my music is on D:\, though foobar is on C:\)

Another problem is having to copy all my album art over to .png format. 



terrestrial is it possible to make it so that it can handle more formats, pretty much the ones that the current albumart panel is capable of useing?




After that, it would not be all that difficult to create a small chunk of coding, similiar to the one above, that works just like album art does. (meaning it looks for one type, then the next, then the next)
Title: foo_uie_single_column_playlist
Post by: upNorth on 2006-09-02 22:33:23
@terrestrial:
IMHO, this is the most exciting plugin for quite a while. I'm positive it will have a huge impact around here (read: present in a lot of "my foobar2000" screenshots).

IMO it has a huge potential, but what are your future plans with it? Are you planning to develop it much further, or is it close to satisfactory for your needs? Nothing wrong with the latter, but it would be nice to know before I get too excited and invest too much time. (I really enjoyed coding for foo_looks, but suddenly danZ, the developer, vanished, and it was closed source...  . I wish he was still around.) Is the source available for this plugin, and if not, will you release it at some point?

Assuming you want to keep on developing it:
The current config isn't dimensioned for advanced layouts. Combining code for graphics, fonts and general formatting, demands structure to be readable and features to reduce redundancy. Currently everything is crammed into three formatting boxes. Global variables, as seen in UI Columns, or maybe LUA, as seen in foo_looks, could help take the visual presentation of foobar2000 to the next level.

Btw: I'm sorry if some of this is answered earlier. I read most of the thread and skimmed the rest.

@zackorah and others with more advanced layouts:
Do you experience any lag when scrolling the playlist? Probably not if you have a state of the art PC, but what about on older single-core-not-even-DDR-RAM systems? (reference: I've currently got a AMD XP1800+, 512MB RAM)

edit: typo
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-02 22:43:14
terrestrial, seeing all the posts about other formats, resizing etc. for images, maybe it would be time to implement $imageabs using gdi+ now .

also it would be nice to have more primitives other than rectangle. maybe arc for nice pie-progresses / indicators ... but that's really not important ...
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-02 23:06:22
Hi there, thanks for this great plugin

theres something i want to point out

when i use this with tabs (foo_uie_tabs) after I switch to other tab and back to the plugin, the column will not display correctly, (totally blank) until i scroll down and up again , it will show up fine again

Request : add transparency option, this would be awesome!

great plugin anyway


yup same here... but as far as ive tested its problem of uie_tabs. the whole port of tabs plugin was quite suspicious and it has some problem with updating/redrawing currently viewed panel. synced lyrics are messed up and if you change somethin in albumlist for example even playlist view is messed before you clik or scroll it... problem is imho in uie_tabs... im planning to invest some time in single_column plugin sou ill abandon uie_tabs scheme and just drop it because of this update issue.
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-02 23:42:15
@zackorah and others with more advanced layouts:
Do you experience any lag when scrolling the playlist? Probably not if you have a state of the art PC, but what about on older single-core-not-even-DDR-RAM systems? (reference: I've currently got a AMD XP1800+, 512MB RAM)

edit: typo


The machine I was doing it on was a pentium 4, 1.6ghz with 1gb of ram, and a geforce 6200. It flickers for a second when it comes out of being minimized as it redraws everything, but no lag when scrolling, even with azureus (40+ torrents) and a lot of other apps open.


EDIT: Been playing around with it a bit more, currently figuring out how to get it to seek to a different drive than foobar is on (My music is on a network drive), and figuring out if i can get some text under my album art with details of the album etc.

)
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-03 00:46:45
Can I see your code for that? I'd like to play around with it a bit. First I need to make a batch conversion of my album art to the same size and png... and renamed.

My aim in the end is to get something similar to this:
(http://fofr.trivialbeing.net/images/aim.jpg) (obviously with some nicer formatting)
With clickable/expandable headers.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-03 01:03:13
That would be ridiculously insane.

Sorta WMP11 style?


(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/2006-09-02_foo-2.png)

The result of my plays. Going to keep this, hopefully for a while.
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-03 01:15:42
Can I see your code for that? I'd like to play around with it a bit. First I need to make a batch conversion of my album art to the same size and png... and renamed.

My aim in the end is to get something similar to this:
(http://fofr.trivialbeing.net/images/aim.jpg) (obviously with some nicer formatting)
With clickable/expandable headers.


'course you can, that's what I've been trying to get (but this is the first time working with this scripting), so I can't work out how to make text under my album art or I would have, can't work out how to read the art from another drive too. It's modified from what Yotsuya posted.

Item display

Code: [Select]
$if(%tracknumber%,$drawrect(0,0,0,0,brushcolor-239-243-253 pencolor-null),)
$if(%cwb_queueindex%,$drawrect(0,0,0,0,brushcolor-58-110-165 pencolor-null),)
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null),)

$puts(art.width,119)
$puts(art.height,21)
$puts(art.num,$add($div($mul(%list_index%,%_height%),$get(art.height)),1))
$puts(art.offset,-$sub($sub($mul(%list_index%,%_height%),$mul($sub($get(art.num),1),$get(art.height))),%_height%))
$imageabs(0,$get(art.offset),images\column.left.png,)
$imageabs(6,$add(25,$mul(-14,%tracknumber%)),images/%album%.png,)
$imageabs(3,$add(22,$mul(-14,%tracknumber%)),images/overlay.png,)

$font(tahoma,8,,)

$alignabs(125,,%_width%,%_height%,,)
$if(%tracknumber%,
$if(%isplaying%,$font(,,,233-233-233)$imageabs(122,0,images\playing.png,),$font(,,,10-36-106))
%tracknumber%$font(,,,233-233-233).
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))

$alignabs(160,,%_width%,%_height%,,)
$if(%title%,$trim($left(%title%,$sub($strrchr(%title%,$char(40)),1))),)

$if($strrchr(%title%,$char(40)),
$font(,,,233-233-233) $char(40)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
$substr(%title%,$add($strrchr(%title%,$char(40)),1),$sub($strrchr(%title%,$char(41)),1))
$font(,,,233-233-233)$char(41)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
)
,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
[%artist% - ]%title%
)


$if(%cwb_queueindex%,
$alignabs($sub(%_width%,$calcwidth(%cwb_queueindexes%),150),,%_width%,%_height%,,)
$font(,,,233-233-233)Q
$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236)):
$font(,,,233-233-233)$char(91)$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236))%cwb_queueindexes%$char(47)%cwb_queuelength%$font(,,,233-233-233)$char(93)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
,)

$padding(5,0)
$align(right,)%length%


Group display
Code: [Select]
$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null)$padding(4,0)
$imageabs(0,0,images\title.png,)
$font(tahoma,7,,233-233-233)
$align(left,middle)$if(%CDID%,$char(91)$font(,,,140-186-236)%CDID%$font(,,,233-233-233)$char(93),)
$padding(120,0)
$align(left,middle)

$if(%album artist%,
$if($strrchr(%album artist%,$char(12300)),
$font(,,,140-186-236)$char(12300)$font(,,,233-233-233)$substr(%album artist%,2,$sub($len(%album artist%),1))$font(,,,140-186-236)$char(12301)
,%album artist%)
,)

$if($and(%album artist%,%album%),$font(,,,140-186-236) - $font(,,,233-233-233),)
$trim($left(%album%,$sub($strrchr(%album%,$char(40)),1)))

,
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)$padding(4,0)
$align(center,)$font(tahoma,7,italic,0-0-0)~ Singles ~
)

$imageabs(0,0,images\column.left.png,)


and I'll upload the images if you need, (added an icon for what's currently playing and added some more images for clearer reading, and an overlay for album art.

(http://img102.imageshack.us/img102/842/foobar3bc8.png)

also, with 21 albums in playlist;

(http://img50.imageshack.us/img50/525/taskerpd8.png)
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-03 01:40:18
That is fricken sweet.

How would I adapt my current code to have like  a side column with art?

All my stuff is either folder.png or folder.jpg.


This seems really solid. Once it nails bugs (like not "spawning" properly for instance on a UI change), and also has a better config dialog (exporting, integration with columns blah blah) it seems like a really sweet base for many a config.

Due to the fact that I have 13k+ tracks on a playlist, and it doesn't lag at all if I scroll through them (and does on coulmns pl)
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-03 06:56:49
I've got a few more ideas:
First, variable line height (based on tagz). This would allow us, for example, to make higher rated songs bigger in the playlist. Another good use could be to make single tracks bigger to stand out better from full albums. It would also make it possible to make the group headers big enough to fit album art on one line.

I dont know if this is possible, but could there be group side margins as well as headers? This would allow us to put info and art to the side of each group (album) without having to use workarounds to stretch it between multiple tracks. Combined with a gdi+ implementation, this would open up so many possiblities such as wmp11-like interfaces.

Some kind of implementation of columns would be great, as well. And, with that, there could be new sorting options to change how tracks are grouped based on which column is controlling the sort, as well the formatting of the group headers (or sidebars).

I know this is all very ambitious and is probably not going to happen, but I just wanted to put the ideas out there just in case.
Title: foo_uie_single_column_playlist
Post by: SwiftBass on 2006-09-03 07:33:49
May I recommend a mouse activated inline metafield editing.  I know its a sinlge column, but I would want one to at least change thhe %title% on the spot.  Just a suggestion

btw thx for the singles.  I've spent more time using this plugin than i have with any other
Title: foo_uie_single_column_playlist
Post by: shane 4 sure on 2006-09-03 08:23:31
Beat me to death but placing this plug-in in the components folder ( foobar 0.9.3.1, Win XP SP2 ) throws the following error:
Code: [Select]
Failed to load DLL: foo_uie_single_column_playlist.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

I have never had any troubles with the program config, but this is beyond me.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-03 09:28:00
Beat me to death but placing this plug-in in the components folder ( foobar 0.9.3.1, Win XP SP2 ) throws the following error:
Code: [Select]
Failed to load DLL: foo_uie_single_column_playlist.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

I have never had any troubles with the program config, but this is beyond me.


http://wiki.hydrogenaudio.org/index.php?ti...d)#Installation (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_(foo_uie_trackinfo_mod)#Installation)
Title: foo_uie_single_column_playlist
Post by: shane 4 sure on 2006-09-03 09:59:26
@ vonmeth
Thanks a lot for the hint.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-03 11:42:48

Hi there, thanks for this great plugin

theres something i want to point out

when i use this with tabs (foo_uie_tabs) after I switch to other tab and back to the plugin, the column will not display correctly, (totally blank) until i scroll down and up again , it will show up fine again

Request : add transparency option, this would be awesome!

great plugin anyway


yup same here... but as far as ive tested its problem of uie_tabs. the whole port of tabs plugin was quite suspicious and it has some problem with updating/redrawing currently viewed panel. synced lyrics are messed up and if you change somethin in albumlist for example even playlist view is messed before you clik or scroll it... problem is imho in uie_tabs... im planning to invest some time in single_column plugin sou ill abandon uie_tabs scheme and just drop it because of this update issue.


ah ic, thanks for the reply , now i noe its not really a problem with this  strange but changing the row height will fix it  something with the refresh/update I think
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-03 13:07:45
there's a lot of similar things for $font, would you be interested in them too?

I have added your drawrect stuff, more details concerning FONT would be great also.
Title: foo_uie_single_column_playlist
Post by: sicutero on 2006-09-03 15:15:52
That would be ridiculously insane.

Sorta WMP11 style?




could you post your conf about the single column playlist ?
thanx mate
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-09-03 15:29:36
ok I am sure someone has said this before but there is a bug where I have it setup and when I first load foobar the single playlist thingy is blank and when I scroll it redraws...

I am not going to use this component till that is fixed... it just confuses my gf too much.. I want my foobar functional and pretty...

once this component is fixed up a little it well may replace the default columns playlist if I can get it all using album art/ fancy formatting etc..
Title: foo_uie_single_column_playlist
Post by: Comwan on 2006-09-03 15:56:56
This is a beta so user beware.


That says it all. Wait for it to get stable or read the thread and you will see that ppl before you have the same problem. 

Your (and my) post is not necessary... The developer is trying as hard as he/she can just relax whould'ya?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-03 17:02:48


Hi there, thanks for this great plugin

theres something i want to point out

when i use this with tabs (foo_uie_tabs) after I switch to other tab and back to the plugin, the column will not display correctly, (totally blank) until i scroll down and up again , it will show up fine again

Request : add transparency option, this would be awesome!

great plugin anyway


yup same here... but as far as ive tested its problem of uie_tabs. the whole port of tabs plugin was quite suspicious and it has some problem with updating/redrawing currently viewed panel. synced lyrics are messed up and if you change somethin in albumlist for example even playlist view is messed before you clik or scroll it... problem is imho in uie_tabs... im planning to invest some time in single_column plugin sou ill abandon uie_tabs scheme and just drop it because of this update issue.


ah ic, thanks for the reply , now i noe its not really a problem with this  strange but changing the row height will fix it  something with the refresh/update I think


but true is that single_column suffers from this much more than others... original playlist is at least shown, lyrics work also if not synced, but single_column just stay blank until you move svrollbar... maybe terrestial can include some update procedure to overcome this tabs bug... but its stupid to add code because of someones other mystake
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-03 18:08:08
heh we all just have to wait  its up to the developer to decide what they will do
a great addition though, the playlist looks much more neat than the default column ui

and oh, i dont know if anyone has already stated

here are my current list of wanted function , just a suggestion to terrestial

1) transparency option , this might sound abit to personal preference but having a transparent playlist while keeping other component in normal mode is great.

2) ability to drag playlist item, just like the default column

3) a resizeable code window , might be abit cramp if the code is long , am I the only one who notice this? 

EDITED 4) management of single tracks, possibly if with the playlist string -s- (like the navigator suite) or any other method like acedriver did (add Singletrack=1 to files)
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-03 19:03:34
I've put the component in the right folder, it appears in my component list, but I don´t see anything to set it up in my preference pannel. I've got the .NET thing and columns also installed.
Title: foo_uie_single_column_playlist
Post by: kanak on 2006-09-03 19:50:58
@superunknown

Go to Column UI layout options and add Playlist Views -> SIngle column view

then right click the single playlist view, and click settings to change settings.

hope that helps
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-03 20:12:56
it has !! thank you soo much !
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-03 21:01:26

That would be ridiculously insane.

Sorta WMP11 style?




could you post your conf about the single column playlist ?
thanx mate



I said in my appearance thread I'm not releasing anything 'till someone helps me with my CPU issues. (using lots of trackinfo panels brings CPU usage to 80%).

Consider it a friendly ransom.
Title: foo_uie_single_column_playlist
Post by: sicutero on 2006-09-03 21:12:48


That would be ridiculously insane.

Sorta WMP11 style?




could you post your conf about the single column playlist ?
thanx mate




I said in my appearance thread I'm not releasing anything 'till someone helps me with my CPU issues. (using lots of trackinfo panels brings CPU usage to 80%).

Consider it a friendly ransom.


my apologies tool++ I didn't notice your statement, I was just amazed from the work you've on the single column playlist only .
good luck with your CPU issues hope everything clears out
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-03 22:06:17
Aww don't apologize, makes me feel mean

I'm waiting for mazy to get back to me as to how he did his complex layouts without destroying the CPU :/
Title: foo_uie_single_column_playlist
Post by: BlindSeer on 2006-09-03 23:00:17
Nice component. It would be very useful to have a setting wherein tracks that are not part of a group would not be given a header. Thanks.
Title: foo_uie_single_column_playlist
Post by: david_dl on 2006-09-03 23:04:10
(http://img218.imageshack.us/img218/2606/foobar2la3.png)


OT: What VS is this? Me want.
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-03 23:04:50
(http://fofr.trivialbeing.net/images/aim.jpg) (obviously with some nicer formatting)
With clickable/expandable headers.

Figured something like it, I'll work on making it like yours and a new (nice) layout when I wake up;

(http://img204.imageshack.us/img204/2801/foobar4rv7.png)


EDIT: and it is system 5 VS, I got it from deviantart.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-04 00:06:57
Nice component. It would be very useful to have a setting wherein tracks that are not part of a group would not be given a header. Thanks.

I use $if(%singletrack%,,%album%%disc%) for Group by and tagged the files with "SINGLETRACK=1"
Title: foo_uie_single_column_playlist
Post by: david_dl on 2006-09-04 00:30:18

Nice component. It would be very useful to have a setting wherein tracks that are not part of a group would not be given a header. Thanks.

I use $if(%singletrack%,,%album%%disc%) for Group by and tagged the files with "SINGLETRACK=1"


Perhaps using $if(%singletrack%,Singles,%album%%disc%) would give them their own header ("Singles")
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-09-04 00:56:31
This plugin is sweet.

(http://xs306.xs.to/xs306/06361/singcolskelly2.png)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-04 04:18:11
However, I'm having a problem.  Maybe it's something you haven't implemented, or maybe it's dumb scripting on my part, but I'm trying to make a script that handles albums playlists and singles playlists.  For singles playlists, I have an exclamation point (!) precede the playlist name (for example, !Rock), while albums playlists are normally named (for example, Story of the Year).

Here is my code.

Group By
Code: [Select]
$if($stricmp($left(%playlist_name%,1),!),%playlist_name%,%album%)


should work in the next version.

I love this plugin. I'd like to request a song notifier based on the foo_uie_trackinfo_mod code. It could work like pretty popup but much more customizable. The more consistency between plugins, the better.


Yeah, eventually I want to write one using layered windows....

terrestrial is it possible to make it so that it can handle more formats, pretty much the ones that the current albumart panel is capable of useing?


yes, eventually.

@terrestrial:
IMO it has a huge potential, but what are your future plans with it? Are you planning to develop it much further, or is it close to satisfactory for your needs? Nothing wrong with the latter, but it would be nice to know before I get too excited and invest too much time. (I really enjoyed coding for foo_looks, but suddenly danZ, the developer, vanished, and it was closed source...  . I wish he was still around.) Is the source available for this plugin, and if not, will you release it at some point?


I intend to develop it further as time permits and I have the will to

Quote
The current config isn't dimensioned for advanced layouts. Combining code for graphics, fonts and general formatting, demands structure to be readable and features to reduce redundancy. Currently everything is crammed into three formatting boxes.


Eventually I want to use text files, but for the time being the current boxes work, albeit crudely.


I dont know if this is possible, but could there be group side margins as well as headers?


Maybe I'm not understanding you correctly, but you can already create "margins" using $align...

Quote
Some kind of implementation of columns would be great, as well.


you can also fake columns with $align().



I have added your drawrect stuff, more details concerning FONT would be great also.


thanks for maintaining the wiki page

Figured something like it, I'll work on making it like yours and a new (nice) layout when I wake up;


very nice

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

I've uploaded a new version. Mostly a couple of bug fixes + a few changes.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-04 05:42:50
Maybe I'm not understanding you correctly, but you can already create "margins" using $align...

I mean side margins which would span entire groups, instead of single tracks:
(http://img237.imageshack.us/img237/4206/plmockupsz5.th.jpg) (http://img237.imageshack.us/my.php?image=plmockupsz5.jpg)
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-09-04 08:12:57
Figured something like it, I'll work on making it like yours and a new (nice) layout when I wake up;


Could you share our code please. I would love to use it as a starting point. Thanks and congrats
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-04 10:16:03
I would like to request the ability to disable, hide, or otherwise move the vertical scrollbar which appears on the side of the playlist.
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-04 13:42:08

terrestrial is it possible to make it so that it can handle more formats, pretty much the ones that the current albumart panel is capable of useing?


yes, eventually.
would be great !
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-04 15:14:30
I have in each album folder a folder.png (or. jpg actually) file with the cover, so I'd like to get it with the same command used with album art :

Code: [Select]
$left(%path%,$sub($len(%path%),$len(%filename_ext%)))folder.png


So using the model given above, I've made that line :

Code: [Select]
$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$left(%path%,$sub($len(%path%),$len(%filename_ext%)))folder.png,)


But it doesn-t work
Anyone have a solution ?
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-04 15:30:49
Your image path needs to relative to the foobar directory, I suggest reading the trackinfo panel mod wiki page for details about using images.
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-04 15:38:08
ohhh, it's pretty sad. I don't think it's logical to put the covers in the foobar folder, they're better with the rest of the albums... :-(
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-04 19:15:12


to the guy who asked for my code;

Code: [Select]
==========
ITEM
-==========







$if(%tracknumber%,$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-null),)
$if(%cwb_queueindex%,$drawrect(0,0,0,0,brushcolor-58-110-165 pencolor-null),)
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null),)

$puts(art.width,119)
$puts(art.height,21)
$puts(art.num,$add($div($mul(%list_index%,%_height%),$get(art.height)),1))
$puts(art.offset,-$sub($sub($mul(%list_index%,%_height%),$mul($sub($get(art.num),1),$get(art.height))),%_height%))
$imageabs(0,$get(art.offset),images\column.left.png,)
$imageabs(6,$add(25,$mul(-14,%tracknumber%)),images/%album%.png,)
$imageabs(3,$add(22,$mul(-14,%tracknumber%)),images/overlay.png,)

$alignabs(5,,%_width%,%_height%,,)
$if($stricmp($num(%tracknumber%,2),09),$font(tahoma,8,bold,)$abbr(%artist%,12) - %date%,)
$if($stricmp($num(%tracknumber%,2),10),$font(tahoma,8,bold,62-128-223)$abbr(%album%,16),)
$if($stricmp($num(%tracknumber%,2),11),$font(tahoma,8,bold,)Total Tracks: $font(tahoma,8,,)%totaltracks%,)
$if($stricmp($num(%tracknumber%,2),12),$font(tahoma,8,bold,)Genre: $font(tahoma,8,,)%genre%,)
$font(tahoma,8,,)


$alignabs(125,,%_width%,%_height%,,)
$if(%tracknumber%,
$if(%isplaying%,$font(,,,233-233-233)$imageabs(122,0,images\playing.png,),$font(,,,10-36-106))
%tracknumber%$font(,,,233-233-233).
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))


$align(right,middle)
$if(%title%,$trim($left(%title%,$sub($strrchr(%title%,$char(40)),1))),) %length%

$if($strrchr(%title%,$char(40)),
$font(,,,233-233-233) $char(40)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
$substr(%title%,$add($strrchr(%title%,$char(40)),1),$sub($strrchr(%title%,$char(41)),1))
$font(,,,233-233-233)$char(41)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
)
,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
[%artist% - ]%title%
)


$if(%cwb_queueindex%,
$alignabs($sub(%_width%,$calcwidth(%cwb_queueindexes%),150),,%_width%,%_height%,,)
$font(,,,233-233-233)Q
$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236)):
$font(,,,233-233-233)$char(91)$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236))%cwb_queueindexes%$char(47)%cwb_queuelength%$font(,,,233-233-233)$char(93)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
,)


$align(right,)

---------------


GROUP

-----------------

$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-62-128-223 pencolor-null)$padding(4,0)
$imageabs(0,0,images\title.png,)
$font(tahoma,7,,233-233-233)
$align(left,middle)$if(%CDID%,$char(91)$font(,,,140-186-236)%CDID%$font(,,,233-233-233)$char(93),)
$padding(120,0)
$align(left,middle)

$if(%album artist%,
$if($strrchr(%album artist%,$char(12300)),
$font(,,,140-186-236)$char(12300)$font(,,,233-233-233)$substr(%album artist%,2,$sub($len(%album artist%),1))$font(,,,140-186-236)$char(12301)
,%album artist%)
,)

$if($and(%album artist%,%album%),$font(,,,140-186-236) - $font(,,,233-233-233),)
$trim($left(%album%,$sub($strrchr(%album%,$char(40)),1)))

,
$drawrect(0,0,0,0,brushcolor-130-130-255 pencolor-null)$padding(4,0)
$align(center,)$font(tahoma,7,italic,0-0-0)~ Singles ~
)

$imageabs(0,0,images\column.left.png,)



With updates every xx seconds, more image types, and ability to include images from other drives then this plugin would be complete, Imo!

EDIT: Took out two comments that shouldn't have been in the code

EDIT2: oh and draggable sorting

[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Moderation: Converted [ code ] to [ codebox ] to preserve forum layout.[/size]
Title: foo_uie_single_column_playlist
Post by: legzalito on 2006-09-04 21:24:35
That is really amazing!

It seems rather limitating though.. But, when the improvements you speak about will be here, it will be just great!
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-05 13:49:05


...


your layout si quite awsome can you share these images also?

Code: [Select]
$imageabs(0,$get(art.offset),images\column.left.png,)
$imageabs(3,$add(22,$mul(-14,%tracknumber%)),images/overlay.png,)
$imageabs(0,0,images\title.png,)


and your lineheight and group by parameters?

... when i come home from work i would like to try to use your layout and im looking really forward to it  thanks for you work
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-05 17:16:04
http://zack.leafo.net/foobar (http://zack.leafo.net/foobar)

Everything for my new layout is on there; I deleted the images (overwritten) for my older one, sorry :s
Title: foo_uie_single_column_playlist
Post by: BlindSeer on 2006-09-05 21:36:14

Nice component. It would be very useful to have a setting wherein tracks that are not part of a group would not be given a header. Thanks.

I use $if(%singletrack%,,%album%%disc%) for Group by and tagged the files with "SINGLETRACK=1"

When I try this, it produces a header for every single track preceded by non-single tracks. I would prefer no header at all.
Title: foo_uie_single_column_playlist
Post by: Fitret on 2006-09-05 22:32:59
http://zack.leafo.net/foobar (http://zack.leafo.net/foobar)

Everything for my new layout is on there; I deleted the images (overwritten) for my older one, sorry :s


I'm trying to use this and I'm having one slight issue.  You appear to be pulling album art from your App Data folder, but I have all of my album art stored in the folder that the songs are stored in (and it's also stored in the tags, I think).  Anyways, I tried changing the one line to:

$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$replace(%path%,%filename_ext%,'folder.jpg'),)

but it's not loading the image.  I also tried folder.png, no luck.  I printed out the result of the $replace() statement, and the path is correct.  Any ideas as to why this wouldn't be working?
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-05 22:41:13

http://zack.leafo.net/foobar (http://zack.leafo.net/foobar)

Everything for my new layout is on there; I deleted the images (overwritten) for my older one, sorry :s


I'm trying to use this and I'm having one slight issue.  You appear to be pulling album art from your App Data folder, but I have all of my album art stored in the folder that the songs are stored in (and it's also stored in the tags, I think).  Anyways, I tried changing the one line to:

$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$replace(%path%,%filename_ext%,'folder.jpg'),)

but it's not loading the image.  I also tried folder.png, no luck.  I printed out the result of the $replace() statement, and the path is correct.  Any ideas as to why this wouldn't be working?


it HAS to be png, files can't come from another drive other than foobar too, and try..

$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$replace(../../%path%,%filename_ext%,'folder.png'),)

Read back a few in the topic, someone did something like this.
Title: foo_uie_single_column_playlist
Post by: Fitret on 2006-09-05 22:51:45


http://zack.leafo.net/foobar (http://zack.leafo.net/foobar)

Everything for my new layout is on there; I deleted the images (overwritten) for my older one, sorry :s


I'm trying to use this and I'm having one slight issue.  You appear to be pulling album art from your App Data folder, but I have all of my album art stored in the folder that the songs are stored in (and it's also stored in the tags, I think).  Anyways, I tried changing the one line to:

$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$replace(%path%,%filename_ext%,'folder.jpg'),)

but it's not loading the image.  I also tried folder.png, no luck.  I printed out the result of the $replace() statement, and the path is correct.  Any ideas as to why this wouldn't be working?


it HAS to be png, files can't come from another drive other than foobar too, and try..

$imageabs(6,$add(25,$mul(-14,%tracknumber%)),$replace(../../%path%,%filename_ext%,'folder.png'),)

Read back a few in the topic, someone did something like this.


I knew the png thing, which is why I tried it out, but I didn't know about the hard drive thing.  My foobar is on a different drive than my MP3s, and I plan on keeping it that way.  I'm assuming that (hopefully soon) the plugin will be updated to load art from other hard drives?
Title: foo_uie_single_column_playlist
Post by: zackorah on 2006-09-06 00:40:15
I knew the png thing, which is why I tried it out, but I didn't know about the hard drive thing.  My foobar is on a different drive than my MP3s, and I plan on keeping it that way.  I'm assuming that (hopefully soon) the plugin will be updated to load art from other hard drives?


Yeah, that is how it is for me, seperate 200gb hard drive for music. Thus the reason I just batch converted my art to png, and batch resized to 100x100 and renamed to album and put into the app dir .

EDIT: infact, terrerstrial do you plan to release the source code?
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-06 01:11:58
Edit: Someone already answered the question I was going to answer.
Title: foo_uie_single_column_playlist
Post by: Fitret on 2006-09-06 01:30:14


I knew the png thing, which is why I tried it out, but I didn't know about the hard drive thing.  My foobar is on a different drive than my MP3s, and I plan on keeping it that way.  I'm assuming that (hopefully soon) the plugin will be updated to load art from other hard drives?


Yeah, that is how it is for me, seperate 200gb hard drive for music. Thus the reason I just batch converted my art to png, and batch resized to 100x100 and renamed to album and put into the app dir .

EDIT: infact, terrerstrial do you plan to release the source code?


I also have a seperate 200gb drive for music.  Maybe I should do this... did you do it in photoshop?  I know how to resize and change to png in batch mode, but not how to rename the file based on the directory structure. (All of my music is Artist\Album\music.mp3)
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-06 12:44:25


I knew the png thing, which is why I tried it out, but I didn't know about the hard drive thing.  My foobar is on a different drive than my MP3s, and I plan on keeping it that way.  I'm assuming that (hopefully soon) the plugin will be updated to load art from other hard drives?


Yeah, that is how it is for me, seperate 200gb hard drive for music. Thus the reason I just batch converted my art to png, and batch resized to 100x100 and renamed to album and put into the app dir .

EDIT: infact, terrerstrial do you plan to release the source code?



How would I do this?

All my art is in F:\music\Artist\[Year]Album\folder.png/jpg

Whereas foobar is in D:\fb2k
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-06 13:23:56
First off, amazing work man.

Second. Is it possible to select multiple tracks for tagging and/or converting purposes?
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-06 13:34:59
First off, amazing work man.

Second. Is it possible to select multiple tracks for tagging and/or converting purposes?

yes, you can.
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-06 13:36:01
Can someone enlighten me?
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-06 14:02:33
ctrl+click the items?
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-06 14:05:58
ctrl+click and shift+click
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-06 14:07:34
Hmmm....yeah, thanks, but how about with just the mouse, (like the regular Columns UI) I don't want to have to ctrl+click 20 times if I can avoid it.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-06 14:13:18
Shift Click start, then shift click end of where you want to select.


Will select all between those points.
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-06 14:14:21
EDIT: Shift+click at least narrows it down to 2 clicks.

Thanks again.


2ND EDIT: Thanks tool, just realized that.

Title: foo_uie_single_column_playlist
Post by: Blitzmeister on 2006-09-06 16:13:18
Hoping someone can help me out here. What part do i change to get a black selection bar instead of white?
Code: [Select]
 $if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-45-45-45 pencolor-null))

$padding(2,0)
$font(Calibri MOD2,8,,$if(%isplaying%,85-217-255,170-170-170))
[  %tracknumber%  ]$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')

Cheers
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-06 16:18:55



I knew the png thing, which is why I tried it out, but I didn't know about the hard drive thing.  My foobar is on a different drive than my MP3s, and I plan on keeping it that way.  I'm assuming that (hopefully soon) the plugin will be updated to load art from other hard drives?


Yeah, that is how it is for me, seperate 200gb hard drive for music. Thus the reason I just batch converted my art to png, and batch resized to 100x100 and renamed to album and put into the app dir .

EDIT: infact, terrerstrial do you plan to release the source code?


I also have a seperate 200gb drive for music.  Maybe I should do this... did you do it in photoshop?  I know how to resize and change to png in batch mode, but not how to rename the file based on the directory structure. (All of my music is Artist\Album\music.mp3)


You will have to get a new program for batch renameing. Simply type in "batch rename" into any search engine and you will come up with many results. Just look at the faqs/info on the programs to see if they support that sort of renameing process. I think the first result from google actually did, but not sure.

I'm just going to wait till I can change the drive. 
Title: foo_uie_single_column_playlist
Post by: Imperecedero on 2006-09-06 20:05:54
amazing plug in, really amazing, anyway i can't get any image shown. I'm completely sure that the path is correct "C:\Archivos de Programa\Foobar2000\images" i have a spanish winXP, could be this the problem?????

In my other pc, i can't even get the dll load, i'm missing something like the png lib or .net framework???
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-06 23:05:50
Hoping someone can help me out here. What part do i change to get a black selection bar instead of white?
Code: [Select]
 $if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-45-45-45 pencolor-null))

$padding(2,0)
$font(Calibri MOD2,8,,$if(%isplaying%,85-217-255,170-170-170))
[  %tracknumber%  ]$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')

Cheers
add this:

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null),)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-07 02:52:57
I am trying to accomplish something but am not having much success, does anyone have any suggestions? I have a playlist full of online radio stations from shoutcast and other sources. I would like to use this component to group them by genre.

The core of the problem stems from the fact that online radio stations contain several genres in the %genre% tag and there does not appear to be any practical means to modify meta information.  I attempted to parse the %genre% tag into predefined genres for grouping with the following code:

Code: [Select]
$if2(
$if($strstr($replace($lower(%genre%),', ',' '),jpop),JPop,)
$if($strstr($replace($lower(%genre%),', ',' '),jrock),JPop,)
$if($strstr($replace($lower(%genre%),', ',' '),japanese),JPop,)
$if($strstr($replace($lower(%genre%),', ',' '),anime),Anime,)
$if($strstr($replace($lower(%genre%),', ',' '),japanimation),Anime,)
$if($strstr($replace($lower(%genre%),', ',' '),trance),Trance,)
$if($strstr($replace($lower(%genre%),', ',' '),techno),Trance,)
,Other)


I placed this code in both the "Group By" section for grouping and the "Group Display" section to display the appropriate genre but everything seems to get grouped into the Other category.  I have tried changing the $if2() into an $if() and duplicating the genre parsiing with no success. I tried several other approaches using cascading if statements again with no success.

Can anyone suggest an alternative approach to grouping online playlists by genre?
Title: foo_uie_single_column_playlist
Post by: Nova5000 on 2006-09-07 03:38:16
Absolutely marvelous plugin!

I, too, cannot get images to show up. The path is correct to the best of my knowledge and I have the necessary library's.

Cheers,

Nova
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-07 04:02:18
hi the updated version fixed the blank display problem , thanks! but why the playing song is always like updating something , blinking (but not clearly visible)

i hope its just some bug though  thanks terrestial for the awesome plugin
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-07 05:29:16
When specifying an image with this plugin, the path must be relative to the foobar directory. For example:

If you foobar resides in:

C:\Program Files\foobar2000

and the image you would like to display is:

C:\Program Files\foobar2000\images\picture.png

You should specify the image as:

images\picture.png
Title: foo_uie_single_column_playlist
Post by: Krpano on 2006-09-07 14:42:57
How can i change the frame selection color on the playlist ?

Actually is black.
:|
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-07 15:08:54
Krpano you can change the color of the frame for the row that is currently selected by combining %_selected% and the pencolor parameter of the $drawrect() function. For example you can place this code in the "Item Display" box:
Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-233-233-233),)


Note that if you have any other $drawrect() functions or $imageabs() functions you will need to keep in mind the order in which they are drawn. I would suggest placing the above code after any existing $drawrect() functions.

I assume that by the "frame" you are referring to the outer edge of the current row. If you would like to fill the entire header row then use brushcolor instead of pencolor, and place the code in the "Group Display" box instead of the "Item Display" box.
Title: foo_uie_single_column_playlist
Post by: Krpano on 2006-09-07 16:32:27
thanks you..
Title: foo_uie_single_column_playlist
Post by: Sword on 2006-09-07 21:30:34
thanks for the great plugin
Title: foo_uie_single_column_playlist
Post by: Zurman on 2006-09-07 22:27:12
Amazing plugins... Could be the one that will make me switch to 0.9.x
Title: foo_uie_single_column_playlist
Post by: peercortsa on 2006-09-08 07:57:39
ok am i missing something because i thought we are able to hit the configure button in the columns ui layout tab but it isnt highlighted when i add it in and click on single column playlist view so basically i cant do anything with it
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-08 08:02:26
To configure the playlist, right click on the playlist and choose "Settings..." from the top of the popup menu.  I do not know why the configuration is not available from the ColumnsUI Layout tab.. perhaps the author is planning on allowing multiple instances of the component.
Title: foo_uie_single_column_playlist
Post by: peercortsa on 2006-09-08 08:18:52
To configure the playlist, right click on the playlist and choose "Settings..." from the top of the popup menu.  I do not know why the configuration is not available from the ColumnsUI Layout tab.. perhaps the author is planning on allowing multiple instances of the component.

oh duh thanks the funny part is i probably would never have figured that out myself thanks again
Title: foo_uie_single_column_playlist
Post by: peercortsa on 2006-09-08 08:42:05
is there any way to make the group display go more than one row
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-08 08:55:18
Back in post #27 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=425932) terrestrial indicated he may be changing things:

Quote

EDIT: and configurable header height would be great also biggrin.gif


The listview limits the size of rows to be the same, but I think I may be able to make the headers occupy 2 (or more) rows.


However in the meantime you can increase your row height then use $align()/$alignabs() functions to make the row twice the height and then place text either on the top (first line) or bottom (second line). Just remember that all header rows and item rows will be the same height so you might want to come up with something to fill in the extra space on your items such as using a larger font or adding info about the track on the second line.
Title: foo_uie_single_column_playlist
Post by: pirlouy on 2006-09-08 23:40:14
Request: ability to delete playlist elements (with Suppr hotkey). Ok, I know it's in the todo list, it's just a reminder.

Thanks for this nice plugin. 
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 01:41:26
er, about the blinking issue, any update ? or I am the only one who got this issue? 
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 02:58:07
.. my foobar does not blink.  Can you be more specific? Maybe a screencap and/or code?
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 03:24:49
sorry, i dunno how to take a animated screencap

but its the now playing item , it will like blink (something like updating) once in a while , a few seconds gone than it is back

only the playing tracks though , dont know what is happening 

and here is my code

Group by
Code: [Select]
$if(%singletrack%,,%artist%)
%album%


List
Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-207-210-216 pencolor-null))
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-212-215-220 pencolor-null)$if(%_selected%,$drawrect(0,0,0,0,brushcolor-207-210-216 pencolor-null)))


$padding(2,1)
$font(,,bold,100-100-100)
$if(%singletrack%,%artist% | %title%,
%tracknumber%    %title%
//%play_counter%      
)
$if(%isplaying%,    Ω)

$align(right,)
$font() $rgb(100,100,115)%play_counter% times |  
$rgb(100,100,125)%length%  
$font(Mangal,8,,) $repeat($rgb(105,105,105)$char(9733),%rating%)
$repeat($rgb(137,160,160)$char(9733),$sub(5,%rating%))


Group Display
Code: [Select]
$drawrect(0,0,0,0,brushcolor-193-197-203 pencolor-null)

$padding(4,1)
$upper($font(Verdana,7,,)
$font(,,bold,85-85-85)$if(%singletrack%,Singles,
$align(left,top)$font(,,bold,85-85-85) %artist%
// '['%date%']'
$padding(1,0)
$align(right,top)$font(Century Gothic,7,bold,55-55-55)%album%

)
)


btw, i am using 0.9.3.1

updated : weird, i revert back to old version of single column ui, the blink is gone
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 03:55:07
I dont see anything that would actually make it blink, however the first section of your list code is having the component draw the background many times for selected items, using alternating colors if they sit on one of every other line in your playlist. This may be causing the blinking effect under low resource conditions. Try changing it to:

Code: [Select]
// Modified code
$if($strcmp($mod(%_playlist_number%,2),1),$drawrect(,,,,brushcolor-212-215-220 pencolor-null))
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-207-210-216 pencolor-null))


// Existing code
$padding(2,1)
$font(,,bold,100-100-100)
$if(%singletrack%,%artist% | %title%,
%tracknumber%    %title%
//%play_counter%     
)
$if(%isplaying%,    Ω)

$align(right,)
$font() $rgb(100,100,115)%play_counter% times | 
$rgb(100,100,125)%length% 
$font(Mangal,8,,) $repeat($rgb(105,105,105)$char(9733),%rating%)
$repeat($rgb(137,160,160)$char(9733),$sub(5,%rating%))

If that doesnt fix it you can probably put the first $if() as the fail condition of the second $if().
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 03:56:56
I dont see anything that would actually make it blink, however the first section of your list code is having the component draw the background many times for selected items, using alternating colors if they sit on one of every other line in your playlist. This may be causing the blinking effect under low resource conditions. Try changing it to:

Code: [Select]
// Modified code
$if($strcmp($mod(%_playlist_number%,2),1),$drawrect(,,,,brushcolor-212-215-220 pencolor-null))
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-207-210-216 pencolor-null))


// Existing code
$padding(2,1)
$font(,,bold,100-100-100)
$if(%singletrack%,%artist% | %title%,
%tracknumber%    %title%
//%play_counter%     
)
$if(%isplaying%,    Ω)

$align(right,)
$font() $rgb(100,100,115)%play_counter% times | 
$rgb(100,100,125)%length% 
$font(Mangal,8,,) $repeat($rgb(105,105,105)$char(9733),%rating%)
$repeat($rgb(137,160,160)$char(9733),$sub(5,%rating%))

If that doesnt fix it you can probably put the first $if() as the fail condition of the second $if().

thanks man, gonna try it later, need to go for exam now 
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 08:43:44
:: Sorting Online Radio Stations by Genre ::

Awhile back in this (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=428089) post I asked for some help getting my online radio playlist sorted by genre. I have had some limited success and would like to share the results.

As mentioned before, online radio stations from shoutcast and other sources usually contain many genres in different order in the %genre% tag so simply grouping by this tag is not a practical solution. What we need to do is parse the tag and place each station into predefined genre groups. After quite a bit of experimenting I whipped up this code to accomplish this:
Code: [Select]
$if($strstr($replace($lower(%genre%),', ',' '),goa),Goa,
$if($strstr($replace($lower(%genre%),', ',' '),trance),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),techno),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),anime),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),japanimation),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),jpop),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),jrock),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),japanese),JPop,
Other))))))))
On the end of each line you see on the left the word to search for in the %genre% tag (notice everything was sent to lower case because $strstr() is case sensitive) and on the right is the name of the predefined genre group. You'll need to create a line like this for every genre you want to group.  Because of the nature of the cascading if statement, you'll want to place the most specific genres first.  If a station would fit into more than one genre, it will be placed into the first category on the list (i.e.: "jpop anime" would be placed into the anime group).  The last line is the name of the group where we lump all the stations that dont fit in one of our predefined groups and a bunch of end parenthesis to close the cascading if. If you add more lines for groups you'll need to make sure the parenthesis count increases accordingly.

The next major hurdle I came accross is that even though the above code will group consecutive playlist entries, it will not combine identical subgroups into one large group. In order to achieve proper grouping we need to sort the playlist. Unfortunately I could find no automated way to accomplish this, however we can manually choose Edit> Sort> Sort By... from the foobar menu and enter this variation of the above code:
Code: [Select]
$if($strstr($replace($lower(%genre%),', ',' '),goa),Goa,$if($strstr($replace($lower(%genre%),', ',' '),trance),Trance,$if($strstr($replace($lower(%genre%),', ',' '),techno),Trance,$if($strstr($replace($lower(%genre%),', ',' '),anime),Anime,$if($strstr($replace($lower(%genre%),', ',' '),japanimation),Anime,$if($strstr($replace($lower(%genre%),', ',' '),jpop),JPop,$if($strstr($replace($lower(%genre%),', ',' '),jrock),JPop,$if($strstr($replace($lower(%genre%),', ',' '),japanese),JPop,$char(255)))))))))|%codec%|$num($sub(1000,%bitrate%),3)

This is essentially the first chunk of code with the linebreaks removed and a few more parameters at the end to polish off the sorting.
---
(http://img244.imageshack.us/img244/3203/radiofz6.th.png) (http://img244.imageshack.us/my.php?image=radiofz6.png)Here is my current playlist setup for reference:

Row Height: 24

Group By:
Code: [Select]
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$if($strstr($replace($lower(%genre%),', ',' '),goa),Goa,
$if($strstr($replace($lower(%genre%),', ',' '),trance),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),techno),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),anime),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),japanimation),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),jpop),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),jrock),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),japanese),JPop,
Other))))))))
,
$if(%tracknumber%,%album%%discnumber%,)
)

Item Display:
Code: [Select]
// Backgrounds
$ifequal($mod(%list_index%,2),0,
$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-140-186-236 pencolor-null)
,
$drawrect(0,0,0,0,brushcolor-130-164-209 pencolor-null)
)
,)

$if(%cwb_queueindex%,$drawrect(0,0,0,0,brushcolor-58-110-165 pencolor-null),)
$if(%isplaying%,$drawrect(0,0,0,0,brushcolor-10-36-106 pencolor-null),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-233-233-233),)

// Side Art
$puts(art.width,35)
$puts(art.height,128)
$puts(art.num,$add($div($mul(%list_index%,%_height%),$get(art.height)),1))
$puts(art.offset,-$sub($sub($mul(%list_index%,%_height%),$mul($sub($get(art.num),1),$get(art.height))),%_height%))
$imageabs(0,$get(art.offset),images\frames\dark stone\frame.left.png,)
$imageabs($sub(%_width%,$get(art.width)),$get(art.offset),images\frames\dark stone\frame.right.png,)

// Track Number
$padding(50,)
$align(left,middle)$font(tahoma,10,,)
$if(%tracknumber%,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
%tracknumber%$font(,,,233-233-233).
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))

// Title
$alignabs(75,,%_width%,%_height%,,)$font(tahoma,10,,)
$if(%title%,$trim($left(%title%,$sub($strrchr(%title%,$char(40)),1))),)

$if($strrchr(%title%,$char(40)),
$font(,,,233-233-233) $char(40)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,10-36-106))
$substr(%title%,$add($strrchr(%title%,$char(40)),1),$sub($strrchr(%title%,$char(41)),1))
$font(,,,233-233-233)$char(41)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
)
,
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$align(left,top)$left(%title%,60)
,
$alignabs(50,,%_width%,%_height%,,)$font(tahoma,10,,)
[%artist% - ]%title%
)
)

// Subtext
$alignabs($if(%tracknumber%,75,50),14,%_width%,%_height%,,)$font(tahoma,7,,$if(%isplaying%,233-233-233,10-36-106))
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$if2(%url%,%path%)
,
$if2(%codec% ,)$if2(%bitrate%kbps,)
)

// Queue Indicator
$font(tahoma,10,,)
$if(%cwb_queueindex%,
$alignabs($sub(%_width%,$calcwidth(%cwb_queueindexes%),150),,%_width%,%_height%,,)
$font(,,,233-233-233)Q
$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236)):
$font(,,,233-233-233)$char(91)$if(%isplaying%,$font(,,,233-233-233),$font(,,,140-186-236))%cwb_queueindexes%$char(47)%cwb_queuelength%$font(,,,233-233-233)$char(93)
$if(%isplaying%,$font(,,,233-233-233),$font(,,,0-0-0))
,)

// Length or Codec
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$if(%bitrate%,$align(right,top),$align(right,middle))$font(tahoma,9,,$if(%isplaying%,233-233-233,0-0-0))
[%codec%]
$align(right,bottom)$font(tahoma,7,,$if(%isplaying%,233-233-233,10-36-106))
[%bitrate%kbps]
,
$align(right,middle)
$font(tahoma,10,,$if(%isplaying%,233-233-233,0-0-0))
%length%
)

Group Display:
Code: [Select]
$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),
$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null)$padding(4,0)
$font(tahoma,7,,233-233-233)
$align(left,middle)
$align(left,middle)$font(tahoma,12,bold,140-186-236)↘  $font(tahoma,12,,233-233-233)
$if($strstr($replace($lower(%genre%),', ',' '),goa),Goa,
$if($strstr($replace($lower(%genre%),', ',' '),trance),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),techno),Trance,
$if($strstr($replace($lower(%genre%),', ',' '),anime),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),japanimation),Anime,
$if($strstr($replace($lower(%genre%),', ',' '),jpop),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),jrock),JPop,
$if($strstr($replace($lower(%genre%),', ',' '),japanese),JPop,
Other))))))))
,
$if(%tracknumber%,
$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null)$padding(4,0)
$font(tahoma,7,,233-233-233)

// Disc Number
//$if(%discnumber%,
//$align(center,bottom)
//$font(,,,233-233-233)$char(40)$font(,,,140-186-236)Disc %discnumber%[ of %totaldiscs%]$font(,,,233-233-233)$char(41)
//)

// Title
$align(left,middle)$font(tahoma,12,bold,140-186-236)↘  $font(tahoma,12,,233-233-233)
$if(%album artist%,
$if($strrchr(%album artist%,$char(12300)),
$font(,,,140-186-236)$char(12300)$font(,,,233-233-233)$substr(%album artist%,2,$sub($len(%album artist%),1))$font(,,,140-186-236)$char(12301)
,%album artist%)
,)

$if($and(%album artist%,%album%),$font(,,,140-186-236) - $font(,,,233-233-233),)
$trim($left(%album%,$sub($strrchr(%album%,$char(40)),1)))

// Genre & Year
$font(tahoma,7,,)
$align(right,top)[$char(91)$font(,,,140-186-236)[%genre%]$if($and(%genre%,%date%), - ,)[%date%]$font(,,,233-233-233)$char(93)]

// CDID
$align(right,bottom)$if(%CDID%,$char(91)$font(,,,140-186-236)%CDID%$font(,,,233-233-233)$char(93),)
,
$drawrect(0,0,0,0,brushcolor-166-202-240 pencolor-null)
$drawrect(0,4,0,4,brushcolor-140-186-236 pencolor-null)
$drawrect(0,10,0,4,brushcolor-130-164-209 pencolor-null)
$drawrect(0,$sub(%_height%,8),0,4,brushcolor-140-186-236 pencolor-null)
$align(center,middle)$font(tahoma,10,italic,0-0-0)
~ Singles ~
)
)

Images Used:
(http://img175.imageshack.us/img175/4011/frametopleftvc8.png) (http://imageshack.us)  (http://img244.imageshack.us/img244/4677/frametopyk6.png) (http://imageshack.us)  (http://img142.imageshack.us/img142/9136/frametoprightme8.png) (http://imageshack.us)
frame.top.left.png, frame.top.png, frame.top.right.png

(http://img175.imageshack.us/img175/7153/frameleftuv5.png) (http://imageshack.us)    (http://img175.imageshack.us/img175/4674/framerightvr6.png) (http://imageshack.us)
frame.left.png, frame.right.png

(http://img142.imageshack.us/img142/3878/framebottomleftly6.png) (http://imageshack.us)  (http://img142.imageshack.us/img142/6264/framebottomet6.png) (http://imageshack.us)  (http://img175.imageshack.us/img175/5283/framebottomrightlv6.png) (http://imageshack.us)
frame.bottom.left.png, frame.bottom.png, frame.bottom.right.png
---
FEATURE REQUEST: I would like to request that this component add a field where we can enter a custom sort string, and then I would like for the component to automatically apply that sort any time the playlist changes.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 09:47:29
Yotsuya, tried ur method, still the same

guess I'll use the old version for awhile

What version u using?
Title: foo_uie_single_column_playlist
Post by: pirlouy on 2006-09-09 11:15:06
No I had the last version, and it does blink too. :-)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 13:01:20
My verion of foo_uie_single_column_playlist identifies itself as v0.1 beta [Aug 30 2006 - 19:56:34] and again I do not experience any flickering.  We tried tackling the code with no effect and pirlouy appears to be experiencing the same problem as you. Have you tried copying your foobar to another computer with different OS, Video, etc to see if you still experience the problem? Maybe there is interferance from another component that I do not use?  Try installing a second foobar with a basic layout and see if you still experience the problem.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 13:06:43
hmph v0.1 beta [Aug 30 2006 - 19:56:34]  , this is an older version, a newer version is the sep and yea,i am using back the aug30 0.1 beta and the flickering gone

I think it is because of the update function that fixed the blank display when using tabs

it is like always updating something on the background

Oh btw, another question: When i put the image on my group display ,it is on top of my font, I cant view my text at all , any help?

(http://img237.imageshack.us/img237/6757/1kl0.png)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 13:10:14
the script is processed in the order it is written.  If you tell it to draw text then tell it to draw an image.. it will "layer" the image on top of your text. I would suggest moving the code for your image toward the top of your script so that it is drawn before the text, and therefore the text will layer on top of the image instead.

I was out of town for a few days last week and it appears half my components got updated while I was away lol.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 13:12:06
the script is processed in the order it is written.  If you tell it to draw text then tell it to draw an image.. it will "layer" the image on top of your text. I would suggest moving the code for your image toward the top of your script so that it is drawn before the text, and therefore the text will layer on top of the image instead.


thank u so much, it works, silly me, been reading some code from the user example here and they put it on the bottom    Thank you again
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 13:16:12
lol I just updated my component and now my foobar is flickering too. that's a definite bug in the plugin, I'm putting the older version back in :)

Tested under Windows2003 Server, WindowsXP x64, and Vista RC1. Used nVidia GeForce 6600 dualcore, Radeon 9700 AIW, and Intel GMA900. I tested it under both minimal and excessive resource availablity.  I'm now fairly certain the bug is not hardware specific.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 13:41:14
man i am having problem with the font setting ,etc

is there some sort of documentation of what can we put the syntax on the column?

for example , i am using $font(,,shadow,) but the shadow is black by default, how to set it to other color?(if can)

really need some documentation for this 
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-09 13:51:54
You may find the foo_uie_trackinfo_mod (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29) wiki helpful as it uses pretty much the same functions as this component. There are also several excellent examples on text effects by mazy.
Title: foo_uie_single_column_playlist
Post by: sHsIkuA on 2006-09-09 14:13:50
You may find the foo_uie_trackinfo_mod (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29) wiki helpful as it uses pretty much the same functions as this component. There are also several excellent examples on text effects by mazy.




Ok I am off to play with my foobar , thanks m8
Title: foo_uie_single_column_playlist
Post by: R2D2 on 2006-09-09 15:28:18
Just downloaded this, great.
However, the font doesn't look at all as clear as the text in the browser panel even though they have the same font settings. Why is that?
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-09-09 17:39:51
Where can i get the older version of this plugin? (Blinkin' drives me mad)
Title: foo_uie_single_column_playlist
Post by: Slourte on 2006-09-09 18:42:05
Is it just me or the keyboard shorcuts stop working with this plugin?

Great work, by the way!
Title: foo_uie_single_column_playlist
Post by: ryanir on 2006-09-09 19:19:57
Is it just me or the keyboard shorcuts stop working with this plugin?

Same here.
Title: foo_uie_single_column_playlist
Post by: peercortsa on 2006-09-09 19:41:21
ok heres the layout ive been workin on. its not even close to being done and the way i want it. i still gotta finish the track info mod panel too.

(http://www.ihateyou2.com/foos.jpg) (http://www.ihateyou2.com/foo.jpg)

...edit

whoops good thing i looked closely at the picture or else i wouldnt notice my compression ratio being messed up haha
Title: foo_uie_single_column_playlist
Post by: AsD on 2006-09-09 23:24:05

Is it just me or the keyboard shorcuts stop working with this plugin?

Same here.


You can use ctrl+ something else...
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-10 01:51:21
I have received several PMs requesting the older version of this component that does not blink.  You can download the 0.1 beta [Aug 30 2006 - 19:56:34] version here (http://rapidshare.de/files/32564067/foo_uie_single_column_playlist.dll.7z).
Title: foo_uie_single_column_playlist
Post by: Lance Uppercut on 2006-09-10 13:44:15
(http://img82.imageshack.us/img82/3573/foobarot4.th.png) (http://img82.imageshack.us/my.php?image=foobarot4.png)

does any one else have this problem indicated by the red arrow?
its the first set of items in the playlist and I can't scroll up any further.
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-09-10 14:06:00
(http://img82.imageshack.us/img82/3573/foobarot4.th.png) (http://img82.imageshack.us/my.php?image=foobarot4.png)

does any one else have this problem indicated by the red arrow?
its the first set of items in the playlist and I can't scroll up any further.

No,but here's a few things you can try:
change the row height (foobar restart needed),try to align the text in the group dsplay part as $align(,bottom).
Title: foo_uie_single_column_playlist
Post by: Lance Uppercut on 2006-09-10 15:44:52
No,but here's a few things you can try:
change the row height (foobar restart needed),try to align the text in the group dsplay part as $align(,bottom).


Thanks, resizing the row heights fixed everything!
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-09-10 16:22:17
CTRL-P. no workie.
CTRL-F, no workie.
Delete, no workie.

Please, take away this one bug <.<

Also, there's some display problems in combination with the tabs component.
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-10 17:10:18
Confirming Ken-chan's bug-report. It seems non-global hotkeys will not function when using this plugin. Or is it something I ought to do but haven't done?

Other than that, great plugin. I changed my whole layout around it.
Title: foo_uie_single_column_playlist
Post by: AsD on 2006-09-10 17:42:15
CTRL-P. no workie.
CTRL-F, no workie.
Delete, no workie.


Maybe i am using an old version but thouse keys are working here and keys without ctrl are working fine with the problem that the playlist scrolls up to the top.
Title: foo_uie_single_column_playlist
Post by: R2D2 on 2006-09-10 18:47:19
What about different row height for group and item displays?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-10 21:34:55
What about different row height for group and item displays?


it was already answered... not possible right now... maybe multiple row for group will be. we shall see.

Also, there's some display problems in combination with the tabs component.


im trying to investigate this bug because i have troubles with updating tabs with other components too. im trying to find out something in this topic (http://www.hydrogenaudio.org/forums/index....showtopic=48145 (http://www.hydrogenaudio.org/forums/index.php?showtopic=48145)) but got no response from comunity so far.

edit: typo, bad url
Title: foo_uie_single_column_playlist
Post by: machekku on 2006-09-11 02:21:03
How would I do this?

All my art is in F:\music\Artist\[Year]Album\folder.png/jpg

Whereas foobar is in D:\fb2k
After seeing some people looking for a workaround for this problem, I remembered about junction (http://www.sysinternals.com/Utilities/Junction.html) utility. Maybe it's not the best solution, but maybe some people will find it useful.

Junction creates something like a symbolic link on linux systems. For people who are not familiar with this: it's like a shortcut, but behaves much more like a real folder.

To use tool++'s example:
Running
Code: [Select]
D:\fb2k>junction music F:\music
will create a D:\fb2k\music link to F:\music folder. It will look like a copy at first (meaning that all files will be accessible inside foobar's folder) but this is just a link, not a real copy.

Warning: Since this is a link, changes in one of the locations appear in both locations. So if you delete something inside D:\fb2k\music, it will be also deleted in F:\music and your file will be lost. Be careful, especially when searching for "duplicated" files.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-11 15:08:59
If any of you have glass.png laying around from russell's home stereo display I dicovered that it makes a nice effect for selected items under this component:
Code: [Select]
$if(%_selected%,$imageabs(0,0,images\glass.png,))
(http://img95.imageshack.us/img95/5460/clipboard01yc2.th.png) (http://img95.imageshack.us/my.php?image=clipboard01yc2.png)
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-11 16:33:54
A higher transparency level might make that look a little better.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-11 16:43:35
Unfortunately there are no transparency/alpha levels available for the image function, however due to the nature of the transparent gradient image all you gotta do is shift it vertically to achieve the same effect. I found this to work nicely:

$if(%_selected%,$imageabs(0,-10,images\glass.png,))

Thanks for the suggestion FofR it looks much nicer now
Title: foo_uie_single_column_playlist
Post by: Earthworm on 2006-09-11 18:36:25
I think I've found a bug, but I'm not sure if this was posted already..

If you switch Edge-Style to "none", you can't change the Row height. Nice Component, though. I really like it. Go on like this!
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-12 09:29:30
Is there any way to have the albums sort themselves by artist, and then by date (if available), and then album title?

Also, non-global hotkeys still won't work for me with this plugin. It seems a few other people have the same problem, but not everyone, anyone have any idea why?
Title: foo_uie_single_column_playlist
Post by: maji on 2006-09-12 10:27:25
I think I've found a bug, but I'm not sure if this was posted already..

If you switch Edge-Style to "none", you can't change the Row height. Nice Component, though. I really like it. Go on like this!


Mmm, I think you can. But thing is, you have to apply the row height then move foobar around. Try stetching it and it should change. Kind of annoying but it works.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-12 11:20:21
@Earthworm, usually I restarted foobar after changing row height.. it works.

Is there any way to have the albums sort themselves by artist, and then by date (if available), and then album title?

Also, non-global hotkeys still won't work for me with this plugin. It seems a few other people have the same problem, but not everyone, anyone have any idea why?

try this:
Code: [Select]
%artist%$num(%date%,4)%disc%%album%$num(%tracknumber%,2))|%_path%


put it in pref > general > sort incoming files by:
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-12 13:36:20
I can change my row height and click either Apply or OK and the changes are immediately apparent without foobar so much as skipping a beat of the music. However, as mentioned previously regarding the flickering bug I am still using the August 30th version of this plugin. Can anyone verify if the row height bug is restricted to the newer release?
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-12 14:02:54
try this:
Code: [Select]
%artist%$num(%date%,4)%disc%%album%$num(%tracknumber%,2))|%_path%


put it in pref > general > sort incoming files by:


That seems to do the trick when manually adding directories, but not when getting tracks from the album list, which is how I usually get them.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-12 14:09:43
That seems to do the trick when manually adding directories, but not when getting tracks from the album list, which is how I usually get them.

if you use album list panel, select "apply core sort settings to added items"
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-12 14:13:57
FEATURE REQUEST: I would like to request that this component add a field where we can enter a custom sort string, and then I would like for the component to automatically apply that sort any time the playlist changes.


I use a playlist for online radio stations that I routinely add and remove entries from and there simply is no way to auto-sort this list.  I think that if this component were to implement it's own sorting then it would solve not only your issue but mine as well.
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-12 17:30:25

That seems to do the trick when manually adding directories, but not when getting tracks from the album list, which is how I usually get them.

if you use album list panel, select "apply core sort settings to added items"


Ha! Man do I feel stupid for not noticing that. Thanks alot acedriver!
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-12 18:09:34
How do I make my text have a big left margin (for album art etc)?

If I use padding it pads on the right too and looks ridiculous.

This is what I have at the moment:

(http://img136.imageshack.us/img136/7007/20060912foobetaxf1.png)

Suggestions for cleaning things up?
Title: foo_uie_single_column_playlist
Post by: unabatedshagie on 2006-09-12 18:38:21
^^ woah, looking good. Mind posting the code for it?
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-12 19:40:08
Not until I make it useable.


How do you detect if there is cover available/the image exists?

Else there's ridiculous looking gaps?
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-12 21:25:19
Not until I make it useable.


How do you detect if there is cover available/the image exists?

Else there's ridiculous looking gaps?


You could draw a no cover image first and then draw the album art after (on top), so if there's no album art, then the no cover image should just display.

I think that would work...
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-12 22:33:03
Woo.

I'll try it.

Any ideas on the old padding issue?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-12 22:36:37
Tool:

If you use $alignabs() functions before each chunk of text it should be a simple matter to adjust the horizontal values by a constant amount to create the left margin without affecting the right.  You can also apply that constant amount to your $drawrect() functions so that the margin also applies to background coloring and selection bars.

I dont know how practical this approach would be with your code but that's how I'd go about it.
Title: foo_uie_single_column_playlist
Post by: maji on 2006-09-12 22:39:46
Woo.

I'll try it.

Any ideas on the old padding issue?


I'm not too sure but couldn't you add the left aligned text last, meaning under the right aligned text in your code so that way the left aligned text would be the only thing padded.. I'm not sure if that's possible, but you get my meaning? Sorry if I sounded ignorant there, I'm not too good with code.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-12 23:02:12
I'll give it a go.

e: Arrrgh it seem sso much work. Maybe give it another go tomorrow.

Anyhow, I've been playing and made a no-art thing.


The shineyness is overlayed on all art, btw.

(http://img142.imageshack.us/img142/1730/20060912foonoartlm9.png)


Is there any way I can wrap text in that left column?


EDIT: I worked out how to use alignabs properly, and thus made:

(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/albumartexamples.png)

/cheers
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-09-13 01:51:55
I'll give it a go.

e: Arrrgh it seem sso much work. Maybe give it another go tomorrow.

Anyhow, I've been playing and made a no-art thing.


The shineyness is overlayed on all art, btw.

(http://img142.imageshack.us/img142/1730/20060912foonoartlm9.png)


Is there any way I can wrap text in that left column?


EDIT: I worked out how to use alignabs properly, and thus made:

(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/albumartexamples.png)

/cheers

Simply beautiful! But if i understand it correctly you had to manualy resize all the images in order to fit
the borders?
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-13 10:58:40
Is there any way I can wrap text in that left column?


I'm still learning this whole scripting thing and I'm not great at it yet, so this might not be useful advice, but can't you use $alignabs() on the names of the artists/albums etc, and then make the bounding rectangle short enough that it fits under the album art and high enough that it can fit three lines or so, while aligning the text at the top left of that rectangle?

Man that's a long sentence, I hope it helps. I don't think that allows you to make it so that the line underneath moves down if necessary, though that would be nice, but perhaps it's a start.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-13 11:20:09
Yeah I think I'll try alignabsing that text on ze left.


Quote
Simply beautiful! But if i understand it correctly you had to manualy resize all the images in order to fit
the borders?


Indeed, did a batch job in irfanview!
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-09-13 15:32:04
What did tool++ is just amazing but i dont really want to copy all my covers. I have already done it for Rockbox, and two copies of my covers is enough for me.
I hope one day we will be able to give fullpath for images

Congrats to terrestrial for his plugin and to all of you for giving life to it.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-09-13 15:42:14
Indeed, did a batch job in irfanview!

Does IrfanView create the PNG required as well? How about the problem of moving the files to relative paths?
I really want to implement this but the hassle of configuring my music collection is forcing me to wait.

Also this component really doesn't like auto hide
Title: foo_uie_single_column_playlist
Post by: yatahaze on 2006-09-13 17:15:56
How do you use this plugin? I dont see it in the list of panels to add, but I see it in the components list.
Title: foo_uie_single_column_playlist
Post by: obrobkareczna on 2006-09-13 17:42:34
I'm trying to add cover to my config i don't know what i'm doing wrong. Can anyboy help me?

first i was trying to add jpg files..ok i know now that i can do it only in png.

second i convertec cover to png 24bit file and was tring to write proper line that will show me my cover that is placed in directory with my music (D:/music/artist/album/cover.png) but i couldn't do that also.

next i trided to do comething simpler, i took tool++ code and just tried to make noalbum.png to be shown.
I've put noalbum.png file on my C drive in root directory and changed code in item list to :

Quote
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'C:\noalbum.png',)

but it still doesn't work

can somebody tell me what i'm doing wrong. and maybe how to make pluging to show me my covers?

please help!

sorry for my bad english, hope you understand what i wrote
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-09-13 19:06:23
After a few weeks umming and ahhing I finally made the jump over from the columns playlist and am loving my new playlist which a very slightly modified version of what mazy posted on this thread.

Thanks to terrestrial for giving foobar two excellent components that make it even more beautiful than previously thought possible and to mazy for testing them so thoroughly and coming up with beautiful designs that I love to steal
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-13 19:25:32
I'm trying to add cover to my config i don't know what i'm doing wrong. Can anyboy help me?

first i was trying to add jpg files..ok i know now that i can do it only in png.

second i convertec cover to png 24bit file and was tring to write proper line that will show me my cover that is placed in directory with my music (D:/music/artist/album/cover.png) but i couldn't do that also.

next i trided to do comething simpler, i took tool++ code and just tried to make noalbum.png to be shown.
I've put noalbum.png file on my C drive in root directory and changed code in item list to :

Quote

$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'C:\noalbum.png',)

but it still doesn't work

can somebody tell me what i'm doing wrong. and maybe how to make pluging to show me my covers?

please help!

sorry for my bad english, hope you understand what i wrote


path has to be relative to foobar dir. absolute path isnt possible yet
Title: foo_uie_single_column_playlist
Post by: AsD on 2006-09-13 19:51:34
How do you use this plugin? I dont see it in the list of panels to add, but I see it in the components list.

It isnt in the panels menu. It is in the "playlist views" menu.
Title: foo_uie_single_column_playlist
Post by: yatahaze on 2006-09-13 20:58:09

How do you use this plugin? I dont see it in the list of panels to add, but I see it in the components list.

It isnt in the panels menu. It is in the "playlist views" menu.


I meant it's not in the "insert panels" menu anywhere, not even the playlist views section. It says it's installed in the components list and the console doesnt have any errors in it, so I dunno what's up. Maybe my version of columns_ui is out of date.

Edit: That's exactly what it was.
Title: foo_uie_single_column_playlist
Post by: random.n on 2006-09-14 00:03:04
Absolute pathing is somewhat possible, if you use NTFS on your drives. Just create a junction folder in your foobar2000 directory that points to your audio storage location (which is free to be on any other NTFS drive). There's still the problem of non-NTFS drive and network shares, but it's certainly an improvement.

In addition to proper pathing though, what I'd really like to see is having the path surrounded by double-quotes ("), so paths with commas in them work properly. (eg; "D:\Music\Mötley Crüe\2005 - Red, White & Crüe\art.png").

Otherwise, this is an awesome plugin... I really had to laugh when I saw iTunes 7 today, with the same kind of album view that people have been building with this for a few weeks now.
Title: foo_uie_single_column_playlist
Post by: Blitzmeister on 2006-09-14 02:39:31
Would there be any chance of getting a couple of variables for this wonderful thing?  I was wondering if we could get a total of all the tracks in the tracklist as well as the total time. Is this at all possible?

Cheers
Title: foo_uie_single_column_playlist
Post by: maziu on 2006-09-14 03:11:47
I was wondering if we could get a total of all the tracks in the tracklist...


This much at least can be done with the Titleformat (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference) reference %list_total% (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference#.25list_total.25).
Title: foo_uie_single_column_playlist
Post by: Davison on 2006-09-14 18:28:05
Iget this problem, and i am unaware as to how to solve it via
Single Columns Playlist's sort code
or
by renaming the album (check renamed Versus The World [Bonus Disc] to V. The World [Bonus Disc] and no change)

(http://img301.imageshack.us/img301/3231/untitled2tq5.th.jpg) (http://img301.imageshack.us/my.php?image=untitled2tq5.jpg)


any help would be appreciated.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-15 05:43:06
Davison:

At first glance it appears you have the %album% tag defined differently for different tracks of the same album, this is causing foobar to think they are part of different albums.  To correct this select all the tracks of the album (Ctrl+Click, repeat) then right click on the selection and choose "Properties" from the popup.

For the album name I suspect you will see "<multiple values>", if so this confirms my suspicions. Replace the string with the name of the album. Click [Apply], then [OK] and this should update all the tracks so that their album tag is identical and foobar will then be able to group them properly.

You may need to refresh your playlist for the grouping to take effect.  If your album tags are already defined properly and you still experience this improper sorting after refreshing your playlist.. please post your current sort string so that we can help you debug it.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-09-15 06:38:56
anyone know when the new version is coming out because I cannot use single colum playlist due to the not showing up bug - ie nothing displays in the  list until i start scrolling
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-15 22:12:19
The issuess I've found:

- Numerous things are broken such as find, preferences (eg keyboard shortcuts)
- It flickers like mad.
- The edit boxes are annoyingly small.
- Things don't refresh/appear properly.
- Images can only be relative to foobar path.
- No scaling on images.
- No other image formats.

(probably others that I've missed).

Other than that, great plugin.


Davison:

At first glance it appears you have the %album% tag defined differently for different tracks of the same album, this is causing foobar to think they are part of different albums.  To correct this select all the tracks of the album (Ctrl+Click, repeat) then right click on the selection and choose "Properties" from the popup.

For the album name I suspect you will see "<multiple values>", if so this confirms my suspicions. Replace the string with the name of the album. Click [Apply], then [OK] and this should update all the tracks so that their album tag is identical and foobar will then be able to group them properly.

You may need to refresh your playlist for the grouping to take effect.  If your album tags are already defined properly and you still experience this improper sorting after refreshing your playlist.. please post your current sort string so that we can help you debug it.



Actually I think the issue is that the sorting is such that the tracks from the bonus disc and the main disc are getting mixed up :]

Just make sure they have good filenames and are sorted right.
Title: foo_uie_single_column_playlist
Post by: P Giddy on 2006-09-15 22:53:02
Could somebody help me please? I want the artist name to show up after the track if the album is a compilation, but when I try it, I get the artist after the track on all albums. How do I sort this?

(http://img157.imageshack.us/img157/6867/problemrg7.th.png) (http://img157.imageshack.us/my.php?image=problemrg7.png)
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-15 23:18:25
Could somebody help me please? I want the artist name to show up after the track if the album is a compilation, but when I try it, I get the artist after the track on all albums. How do I sort this?

tag the compilation album with ALBUM ARTIST tag and use this

Code: [Select]
%tracknumber% %title%[ '('$if($meta(album artist),%artist%,)')']
Title: foo_uie_single_column_playlist
Post by: P Giddy on 2006-09-15 23:25:50
Cheers, that's worked perfectly.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 01:10:30
Feature request / bug report:  You can't drag and drop to move songs around a playlist : O  Seems like pretty basic functionality.
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-16 03:45:57
Feature request / bug report:  You can't drag and drop to move songs around a playlist : O  Seems like pretty basic functionality.


Could end up with several identical headers then though, which is probably not wanted..?
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 03:51:30

Feature request / bug report:  You can't drag and drop to move songs around a playlist : O  Seems like pretty basic functionality.


Could end up with several identical headers then though, which is probably not wanted..?


I guess it wouldn't be beautiful, but it wouldn't look tremendously terrible, and it sure beats not being able to rearrange files on a playlist at all.  Besides, a playlist that you are rearranging files on is probably tagged with -s- in the name or some such to designate it as a singles playlist, and will have styling that recognizes that.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-16 03:56:23
I'd rather have a definable sort string for the playlist that was automatically applied. If I want to move a track I'd just adjust the sort string.
Title: foo_uie_single_column_playlist
Post by: mellotron on 2006-09-16 04:12:14
Alright, I'm losing my mind because I can't figure out how to configure this plug-in.

So I've loaded the plugin and it's displaying properly but after that I don't know what to do, the Configure button under Item details under Columns UI/Layout is grayed out. I either need more sleep because I'm sure I'm missing something blindingly obvious.

EDIT: I need more sleep.
Title: foo_uie_single_column_playlist
Post by: Imperecedero on 2006-09-16 04:15:45
about the *.png dont showing i want to share how did i solved it.

first, the relative path is in "document & settings\user\....\foobar2000"
second, C++ runtime libraries
third, real PNG files. i have troubles with one editor that saved the file as .png extension but it was really a JPG.

I need some help here, i have my covers in every folder & everyone is named "cover.png", which program could batch rename all my covers with the correct %album% information????? I think it's too complicated

SO---> i look forward next update could look in every folder like the good old foo_uie_albumbart

anyway, %$#% amazing plugin
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 05:15:20
I'd rather have a definable sort string for the playlist that was automatically applied. If I want to move a track I'd just adjust the sort string.


Well, there's three situations in which I really like to be able to drag things around a single playlist:

A)  I'm playing streaming audio for someone via shoutcast or communication programs.

B)  I'm messing around queueing up 1-3 hours of audio for myself while I am going to be busy playing a game fullscreen or away from my computer and don't want to have to come fuck with fb2k.

C)  I am burning a mixed CD of tracks.

Both of those revolve around assembling a pretty much arbitrary order of a bunch of different files, and drag-and-drop makes that way simpler.

Perhaps I should be using the playback queue for these things.  The reason I don't is because it isn't obviously viewable or manipulable without a plugin, and a panel to manipulate the playback queue seems extremely redundant when the queue might have 10-50 files; isn't that what the playlist is for?

I don't really have any solution for doing any of those three things as it stands with this playlist, and I don't think having a definable sort string would solve any of them either.
Title: foo_uie_single_column_playlist
Post by: fabiospark on 2006-09-16 13:34:21
Is there a way to show/hide this playlist view according to some tag content(%cwb_activelist% or %playlist_name%, for instance)?

It would be most useful with an "History" playlist.
I tried using the Auto hide feature of columns UI but I got weird results.

The next step, if columns_UI does7will let it, would be to link this playlist view to only a specific playlist.

The further step would then be to allow more than one instance of foo_uie_single_column_playlist or the ability to assign its settings and formattings to a chosen playilist (under the same playlist tabs as the standard playlist view) without the need of a separate panel.


Found a bug. I can't say if it's a "single c_p one or a foo_uie_tabs_mod one:

I placed the single column playlist view inside a tab stack panel where the other panel is a playlist tree one. If I make show the plt panel, then, when I go back showing the single column playlist it is totally blank. If I click on a row either in that panel or in an ordinari playlist view, the same row gets refreshed in the "single" panel. If I change playlist all the panel it's refreshed.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-16 17:35:56
I have a suggestion that makes this plugin more usable with hybrid displays (single tracks and albums) - If the total count for a group of items is 1, Display just the header or just the single item itself. Right now it seems funny when it shows the header and a single item for every single track.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 17:54:30
I have a suggestion that makes this plugin more usable with hybrid displays (single tracks and albums) - If the total count for a group of items is 1, Display just the header or just the single item itself. Right now it seems funny when it shows the header and a single item for every single track.


Disagree - I have several albums that consist of one track.  The proper answer, in my opinion, is to allow conditionals to work properly in the "group by" box.  Something like this:

$if($stricmp($strstr(%playlist_name%,'(S)'),0),%album%,%list_total%)

Should group by album unless "(S)" is in the playlist name, in which case it should show one header for the whole playlist (since it's grouping by list_total, which is a constant for every file.)

Doesn't work as is though.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-16 18:23:40
I wonder how a single track can be called an album though. Even if its a single physical file with many parts considered as tracks, its usually displayed as parts using cue files and the such.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-16 18:33:39
I have several albums that include a separate bonus disc that contains a single track. Under the current setup these single track discs are handled just like any other multidisc album and I would like them to continue to be handled that way. I group my tracks by disc, not necessarily by album.

Depending on your application, you should be able to formulate some tagz code in the Group By section to handle several loose files as a single group.. maybe something like $ifgreater(%totaltracks%,1,%album%,).

mquander: Have you applied any logic to your playlist sort string so that your tracks appear together in one large group instead of being distributed accross your lists as several small subgroups?  I tried applying similar code to my online radio station playlist to group by genre and learned that "group by" only determines where the group headers go it does not determine the position of any tracks in your playlist.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 21:47:55
I have several albums that include a separate bonus disc that contains a single track. Under the current setup these single track discs are handled just like any other multidisc album and I would like them to continue to be handled that way. I group my tracks by disc, not necessarily by album.

Depending on your application, you should be able to formulate some tagz code in the Group By section to handle several loose files as a single group.. maybe something like $ifgreater(%totaltracks%,1,%album%,).


I agree.  I also have some albums (example (http://www.discogs.com/release/15782), example (http://www.discogs.com/release/79110)) that were simply released as one track, and not broken up into subsections.  That might be a bit unorthodox, but I don't see anything wrong with it, and I would like them to display properly as well.

Quote
mquander: Have you applied any logic to your playlist sort string so that your tracks appear together in one large group instead of being distributed accross your lists as several small subgroups?  I tried applying similar code to my online radio station playlist to group by genre and learned that "group by" only determines where the group headers go it does not determine the position of any tracks in your playlist.


Well, I don't see how that would solve the issue.  I want to be able to cook up playlists that only have one (or none, but one is fine as I can make one useful one) header, because they consist of tracks that might belong to whichever random albums or genres or et cetera.

I mean, the arrangement thing is another issue, but I don't think there's any solution to that issue besides draggable playlist items, just like the default Columns UI playlist display.  I need to be able to arrange playlist tracks in a literally completely arbitrary order.
Title: foo_uie_single_column_playlist
Post by: RevivalofHonor on 2006-09-16 22:09:36
@ mquander:

$if() with %playlist_name% in the group by section should be fixed for the next version.  I had a similar problem.  For now try something like this:

$if($strstr(%cwb_activelist%,'(S)'), %cwb_activelist%, %album%)
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-16 22:11:15
@ mquander:

$if() with %playlist_name% in the group by section should be fixed for the next version.  I had a similar problem.  For now try something like this:

$if($strstr(%cwb_activelist%,'(S)'), %cwb_activelist%, %album%)


Great, thanks very much!  That worked perfectly.

Here's another potential solution to the drag-and-drop question:  Enable dragging around playlists, but only allow dragging a track within its group (can't drag up and down between groups, so the group headers never move.)  Since "singles" playlists will presumably have one big group, this should be flexible enough to suit most people.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-17 01:08:39
For singletrack, I just tagged them with SINGLETRACK tag. I also use a sorting string that will list those tracks before a full album.

in group by, I use this

$if(%singletrack%,,%album%%disc%)
Title: foo_uie_single_column_playlist
Post by: Brendan on 2006-09-17 06:13:46
Forgive me for being a noob, but since we're on the topic of sort strings, how would I write a string to sort by artist, then album, then year.

So the artists would be alphabetical order, and the albums for each artist would go in order of most recent to oldest. I tried a few things, but none of them seemed to do anything close.
Title: foo_uie_single_column_playlist
Post by: thuan on 2006-09-17 08:03:00
If I understand correctly then this %artist%|$sub(9999,%date%)|%album%
Title: foo_uie_single_column_playlist
Post by: Brendan on 2006-09-17 08:19:29
If I understand correctly then this %artist%|$sub(9999,%date%)|%album%


That doesn't work either. Odd.
I'm supposed to put it on the "Group by" bit aren't I?
Title: foo_uie_single_column_playlist
Post by: thuan on 2006-09-17 14:10:10
That sort string should be put in Preferences -> General -> Sort incoming files by and in the Group by field you just need %album%. I suppose you have all the tag correctly.
Title: foo_uie_single_column_playlist
Post by: Davison on 2006-09-18 01:03:11
Thankyou tool, your suggestion was simple yet right...

and yotsuya i have already tried all meta-data editing that i can think of to fix it as i explained in my post, perhaps not clearly enough, but thanks for the input nonetheless.

Many thanks.
Title: foo_uie_single_column_playlist
Post by: shard13 on 2006-09-18 19:05:43
I need some help figuring this out, I know it has to be simple, but I cant seem to figure out the right script code to change the background color of selected items. I must be missing it somewhere but if someone could point me to the code that governs that, it would be greatly appreciated!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-18 19:34:23
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-10-36-106 pencolor-null),)
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-18 20:20:04
- I'd like to see separate row heights for group and item. I like two lines of text for the groups and one line for the items.

- For me the keyboard does nothing inside the playlist. I can't use the arrow keys, or use shortcuts.

- Row height doesn't apply correctly after changing it.

- Grabbing Album Art from the locations provided by the album art plugin.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-18 22:57:11
BUG REPORT
im affraid this is not the right place but i hope that someone will see this and aprove with me or proven me wrong.
The bug i encounter is that when i use $imgabs with %path% and $replace it works for me marvelously BUT... when i have comma in path the imgabs isnt somehow parsed correctly (=it does not draw image at all (incorrect path i presume))

example:

i use tool++ layout with replace workaround:
Code: [Select]
$imageabs(4,$add(24,$mul(-21,%tracknumber%)),$replace($replace(%path%,U:\mp3,..\..\..\user\mp3),%filename_ext%,folder.png),)

(http://img169.imageshack.us/img169/3091/fo2ag9.th.png) (http://img169.imageshack.us/my.php?image=fo2ag9.png)

i have directorys named by "%artist% - %album% [%date%]" scheme and as you can see on image when there is no comma in directory name its fine but when there is it doesnt work. is it bug or am i missing something?

(edit: its not in "&" in album title rammstein album "Reise, reise" does just the same, PJ Harveys "Stories From The City, Stories From The Sea" same)
Title: foo_uie_single_column_playlist
Post by: shard13 on 2006-09-19 00:39:25
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-10-36-106 pencolor-null),)



Thanks, that works very well, but I cant seem to get the font color to change correctly, is just gives me invalid syntax error everytime I try to input the font color code.

Code: [Select]
$if(%_selected%,
$font(calibri,10,bold,0-0-0)
,
$font(calibri,10,bold,0-0-0)
)



So what am I doing wrong?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-19 01:07:23
Cartman:
My guess would be that at some point the the filename is being processed as code and therefore the comma is breaking the processing. I would suggest attempting a workaround by prefixing any commas in your filename with single quotes to have them processed as text. For example:
Code: [Select]
$imageabs(4,$add(24,$mul(-21,%tracknumber%)),$replace($replace($replace(%path%,U:\mp3,..\..\..\user\mp3),%filename_ext%,folder.png),',',''','),)

*this is untested and you may need to debug it

BTW did you pull that code from my post on the appearance thread? :)


shard13:
The only thing odd that I see about the code you posted is that both fonts specified are identical, however this shouldnt give you invalid syntax. In fact, when I paste it into a panel here I do not get any error. Do you have a calibri font installed?

Break it down piece by piece. Does $if(%_selected%,SELECTED,NOT SELECTED) work? does simply $font(calibri,10,bold,0-0-0)TEST work? How about using just $font(calibri,10,,), or how about something different like $font(verdana,10,bold,0-0-0)?

Additional: I myself use this bit of code when coloring my text:
$font(tahoma,7,,$if(%_selected%,233-233-233,0-0-0))
Title: foo_uie_single_column_playlist
Post by: shard13 on 2006-09-19 01:10:05
shard13:
The only thing odd that I see about the code you posted is that both fonts specified are identical, however this shouldnt give you invalid syntax. In fact, when I paste it into a panel here I do not get any error. Do you have a calibri font installed?

Break it down piece by piece. Does $if(%_selected%,SELECTED,NOT SELECTED) work? does simply $font(calibri,10,bold,0-0-0)TEST work? How about using just $font(calibri,10,,), or how about something different like $font(verdana,10,bold,0-0-0)?

Additional: I myself use this bit of code when coloring my text:
$font(tahoma,7,,$if(%isplaying%,233-233-233,0-0-0))



OK, I fixed the syntax error, I was adding the *)* at the end of it, thus cuasing problems. Right now my problem is that I want to have selected items be a different color then currently playing items, and I cant seem to get the font color to work. I have calibri and everything, but it just wont seem to work.

Here is my Item Info Code

Code: [Select]
$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0)
,
$padding(4,0)
$ifequal($mod(%_playlist_number%,2),0,
$drawrect(0,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)
)
$padding(4,0)
$if(%_isplaying%,$font(calibri,10,bold,255-255-255),$font(calibri,10,bold,164-171-179))?

$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,9,bold,180-180-180)
)

$align(left,center)[Disc %discnumber% ][%tracknumber%. ]

$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,10,bold,129-138-150)
)
$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,
$font(calibri,10,bold,255-255-255)
,
$font(calibri,8.5,bold,120-120-120)
)%title%

$if(%_isplaying%,
$font(calibri,8.5,bold,255-255-255)
,
$font(calibri,8.5,bold,200-200-200)
)
$align(right,center)%length%

$if(%_selected%,$imageabs(0,0,images\overlay.png,))

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-200-200-200 pencolor-null),)
)
$if(%_selected%,
$font(calibri,10,bold,0-0-0)
,
$font(calibri,10,bold,0-0-0)
)


I just end up with a grey box that I cant see any words in, and I dont want that. If you could look over my code and tell me what is going on wrong, it would be greatly apreciated!

Thanks.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-19 01:49:36
Shard13:
- in order for a $font() statement to work it must come before the text it's supposed to apply to. the last several lines of your code need to be moved toward the top.
- this may have been fixed in recent versions, but older versions of this component would break colors and fonts after an $align() so you need to put $font() after $align() and not before it in order to work.
- the script is processed in the order it is written if you use a $drawrect() function after you tell it to display text, the rectangle will draw over your text. again, code toward the end should be moved toward the top.
- there appears to be a mismatched end parenthesis toward the end I dunno what it's supposed to go to

I took the liberty in restructuring your code, give it a try:
Code: [Select]
// Backgrounds
$ifequal($mod(%list_index%,2),0,
$drawrect(0,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)

$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-200-200-200 pencolor-null),)

// Text
$padding(4,0)
$font(calibri,10,bold,$if(%_isplaying%,255-255-255,164-171-179))↘

$align(left,center)
$font(calibri(10,bold,180-180-180)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
[Disc %discnumber% ][%tracknumber%. ]
$font(calibri(10,bold,129-138-150)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
$if($meta_test(album artist),%artist%' - ')
$font(calibri(10,bold,120-120-120)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%title%

$align(right,center)
$font(calibri(8.5,bold,200-200-200)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%length%

// Overlay
$if(%_selected%,$imageabs(0,0,images\overlay.png,),)
Title: foo_uie_single_column_playlist
Post by: shard13 on 2006-09-19 04:49:21
Shard13:
- in order for a $font() statement to work it must come before the text it's supposed to apply to. the last several lines of your code need to be moved toward the top.
- this may have been fixed in recent versions, but older versions of this component would break colors and fonts after an $align() so you need to put $font() after $align() and not before it in order to work.
- the script is processed in the order it is written if you use a $drawrect() function after you tell it to display text, the rectangle will draw over your text. again, code toward the end should be moved toward the top.
- there appears to be a mismatched end parenthesis toward the end I dunno what it's supposed to go to

I took the liberty in restructuring your code, give it a try:
Code: [Select]
// Backgrounds
$ifequal($mod(%list_index%,2),0,
$drawrect(0,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)

$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-200-200-200 pencolor-null),)

// Text
$padding(4,0)
$font(calibri,10,bold,$if(%_isplaying%,255-255-255,164-171-179))↘

$align(left,center)
$font(calibri(10,bold,180-180-180)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
[Disc %discnumber% ][%tracknumber%. ]
$font(calibri(10,bold,129-138-150)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
$if($meta_test(album artist),%artist%' - ')
$font(calibri(10,bold,120-120-120)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%title%

$align(right,center)
$font(calibri(8.5,bold,200-200-200)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%length%

// Overlay
$if(%_selected%,$imageabs(0,0,images\overlay.png,),)


That seems to have cuased a bigger problem....

Take a look at this.
(http://img154.imageshack.us/img154/5320/wtffoobaryw3.th.png) (http://img154.imageshack.us/my.php?image=wtffoobaryw3.png)

It seems to have nullified the font colors all together, I tried finding the cuase, but I am uncertain where to start.

Thanks for you help though.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-19 05:16:56
shard13,

All of the lines starting with "$font" are missing a "," where a "(" is instead.  I think this might work.

Code: [Select]
// Backgrounds
$ifequal($mod(%list_index%,2),0,
$drawrect(0,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(0,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)

$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-200-200-200 pencolor-null),)

// Text
$padding(4,0)
$font(calibri,10,bold,$if(%_isplaying%,255-255-255,164-171-179))↘

$align(left,center)
$font(calibri,10,bold,180-180-180)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
[Disc %discnumber% ][%tracknumber%. ]
$font(calibri,10,bold,129-138-150)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
$if($meta_test(album artist),%artist%' - ')
$font(calibri,10,bold,120-120-120)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%title%

$align(right,center)
$font(calibri,8.5,bold,200-200-200)$if(%isplaying%,$font(,,,255-255-255),)$if(%_selected%,$font(,,,0-0-0),)
%length%

// Overlay
$if(%_selected%,$imageabs(0,0,images\overlay.png,),)
I hope that works.
Title: foo_uie_single_column_playlist
Post by: shard13 on 2006-09-19 05:51:34
Thanks a ton Kockroach, that did it perfectly, albeit I need to fix a couple font style problems, but that is well within in my capability.

And thanks to Yotsuya also for helping. I now understand the scripting a *bit* better
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-19 10:17:36
Here's a good question... Is it possible to do dynamic album ratings?
For example, I have an album, and every track has a rating from 0 (no rating) to 5 stars. Is there some way to place a dynamic number of stars into the group display?

Basically, can I get an average of the %RATING% fields in the album?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-19 12:07:12
Cartman:
My guess would be that at some point the the filename is being processed as code and therefore the comma is breaking the processing. I would suggest attempting a workaround by prefixing any commas in your filename with single quotes to have them processed as text. For example:
--
*this is untested and you may need to debug it


Yeah that was something i also thought so i tried this:
Code: [Select]
$replace(%path%,',',''',''')

just to find out how escape codes with ' with commas are interpreted. this seems to be doing just what i need. ive implemented it in imagabs but result is seen on screenshot  (ive changed artist tag in group code to see prarsed path and it looks how it should... but it doesnt work). I still think that problem is in that comma breaks processing but it looks there isnt easy path around

[a href="http://img247.imageshack.us/my.php?image=fots4.png" target="_blank"]) ... just those comas are giving me headache
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-09-19 12:56:41
Is there a way to get the number of tracks in an album ? I'd like to use a smaller cover when there aren't enough tracks: http://omoikane.minstrum.net/foo_single_column.png (http://omoikane.minstrum.net/foo_single_column.png)

Also, it would be great if we could set the height of a row dynamically.
Title: foo_uie_single_column_playlist
Post by: zachastrife on 2006-09-19 13:14:41
Is there a way to get the number of tracks in an album ? I'd like to use a smaller cover when there aren't enough tracks: http://omoikane.minstrum.net/foo_single_column.png (http://omoikane.minstrum.net/foo_single_column.png)

Also, it would be great if we could set the height of a row dynamically.

Total Tracks? =P
Reqire's some work on your side (clicking properties and choosing autotracknumber should fix it, but I don't promise anything and don't blame me if it doesn't work/writes wrong tags)
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-09-19 14:42:28
Here's a good question... Is it possible to do dynamic album ratings?
For example, I have an album, and every track has a rating from 0 (no rating) to 5 stars. Is there some way to place a dynamic number of stars into the group display?

Basically, can I get an average of the %RATING% fields in the album?

Would depend on how well your tags are tagged I guess as you'd have to divide the sum total of the %rating% values by %totaltracks% (or whatever the field is) for album rating for me its easier to assign the %albumrating% scripts to hot keys and judge the albums when i see them in the playlist
Title: foo_uie_single_column_playlist
Post by: Fitret on 2006-09-19 20:46:47
So is it just me, or can you not delete songs on the playlist?  If i hit my del key, it does nothing.  I checked the keybindings and it's set to [main] Remove.  Do I need to remap it?
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-19 21:04:28
So is it just me, or can you not delete songs on the playlist?  If i hit my del key, it does nothing.  I checked the keybindings and it's set to [main] Remove.  Do I need to remap it?

nothing wrong your setup. it's a 'feature' of this plugin..... 

now if i could ask for some help.....

edit: nvm.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-20 07:05:21
updated to 0.3. mostly some bugfixes, and a new $imageabs2 command that should be better for those who are displaying album art.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-20 07:28:13
it crashed when going into settings

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 1000B51Bh
Access violation, operation: read, address: 00000342h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (1000B51Bh):
1000B4DBh:  89 2C 7B 83 40 08 01 83 C1 01 3B CA 72 E7 5F 5D
1000B4EBh:  5B 59 C3 CC CC 53 8B 5C 24 0C 85 DB 55 8B 6C 24
1000B4FBh:  0C 56 8B F0 74 06 C7 03 00 00 00 00 85 F6 75 06
1000B50Bh:  5E 5D 33 C0 5B C3 83 FE 06 76 05 BE 06 00 00 00
1000B51Bh:  8A 55 00 80 FA 80 73 16 85 DB 74 05 0F B6 C2 89
1000B52Bh:  03 32 C9 3A 4D 00 5E 1B C0 5D F7 D8 5B C3 33 C0
1000B53Bh:  84 D2 79 18 90 83 C0 01 3B C6 73 C4 8A 88 90 BC
1000B54Bh:  01 10 22 CA 3A 88 98 BC 01 10 75 E9 83 C0 01 83
Stack (0012E91Ch):
0012E8FCh:  00000000 003F5B20 77D9AB8E 7FFDF6CC
0012E90Ch:  0012EEAC 7FFDF000 819A3020 00000034
0012E91Ch:  00000000 00000342 00000001 1000B33E
0012E92Ch:  00000342 0012E93C 0012E978 FFFFFFFF
0012E93Ch:  00000000 10002EC6 00000342 58F57545
0012E94Ch:  1000A440 005C082E 0012EA1C 0012EDF4
0012E95Ch:  0012EA0C 10019A38 00000000 1000A454
0012E96Ch:  0012E978 00000342 FFFFFFFF 00000000
0012E97Ch:  00000000 00000000 0138B9E1 005C082E
0012E98Ch:  000003EE 00000342 58E83D24 005C082E
0012E99Ch:  0012EDF4 00000110 00166F90 00000000
0012E9ACh:  0000001C 0000001F 00000000 00000000
0012E9BCh:  000001A0 00000000 00000005 00000000
0012E9CCh:  0012E9DC 77D4BAA4 0000A918 7C809E60
0012E9DCh:  77D4D5BE 77D4D601 005C082E FFFFFFEB
0012E9ECh:  0012EDF4 00000000 005C082E 00000110
0012E9FCh:  0012EDF4 0012EA18 77D4D640 005C082E
0012EA0Ch:  0012EABC 013BD090 FFFFFFFF 0012EA60
0012EA1Ch:  0012EA60 0138B77F 005C082E 00000110
0012EA2Ch:  0012EDF4 0138B740 00590890 77D48734
Registers:
EAX: FFFFFFFF, EBX: 0012E93C, ECX: 00000342, EDX: 00000342
ESI: 00000006, EDI: FFFFFFFF, EBP: 00000342, ESP: 0012E91C
Crash location: "shared", loaded at 10000000h - 10029000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004F3000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                        loaded at 7C800000h - 7C8F4000h
COMCTL32                        loaded at 773D0000h - 774CD000h
msvcrt                          loaded at 77C10000h - 77C68000h
ADVAPI32                        loaded at 77DD0000h - 77E6B000h
RPCRT4                          loaded at 77E70000h - 77F01000h
GDI32                            loaded at 77F10000h - 77F57000h
USER32                          loaded at 77D40000h - 77DC9000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
SHELL32                          loaded at 7C9C0000h - 7D524000h
ole32                            loaded at 774E0000h - 7761D000h
shared                          loaded at 10000000h - 10029000h
comdlg32                        loaded at 763B0000h - 763F9000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
RKLauncher                      loaded at 003C0000h - 003CF000h
StylerHelper                    loaded at 003F0000h - 003FE000h
MFC42                            loaded at 73DD0000h - 73ECE000h
foo_albumlist                    loaded at 00AB0000h - 00AF0000h
foo_audioscrobbler              loaded at 00B10000h - 00B40000h
WS2_32                          loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
foo_autoplaylist                loaded at 00B60000h - 00B90000h
foo_cdda                        loaded at 00BB0000h - 00BE6000h
foo_converter                    loaded at 00C10000h - 00C79000h
foo_convolve                    loaded at 00CA0000h - 00CF1000h
foo_cwb_hooks                    loaded at 00D20000h - 00D4B000h
foo_dsp_delta                    loaded at 00D70000h - 00D8E000h
foo_dsp_std                      loaded at 00DB0000h - 00DF1000h
foo_freedb2                      loaded at 00E20000h - 00E60000h
foo_info_samurize                loaded at 00E80000h - 00EA2000h
foo_input_monkey                loaded at 00FE0000h - 0102A000h
foo_input_std                    loaded at 01050000h - 01164000h
foo_masstag                      loaded at 01190000h - 011E0000h
foo_msnalt                      loaded at 01200000h - 01219000h
foo_rgscan                      loaded at 01240000h - 01288000h
foo_uie_albumart                loaded at 012B0000h - 012E6000h
gdiplus                          loaded at 4EC50000h - 4EDF3000h
foo_uie_albumlist                loaded at 01320000h - 0135F000h
foo_uie_single_column_playlist  loaded at 01380000h - 013CF000h
MSVCP80                          loaded at 7C420000h - 7C4A7000h
MSVCR80                          loaded at 78130000h - 781CB000h
foo_uie_tabs                    loaded at 013F0000h - 01419000h
foo_uie_trackinfo                loaded at 01440000h - 01470000h
foo_uie_trackinfo_mod            loaded at 01490000h - 014DA000h
foo_ui_columns                  loaded at 014F0000h - 01587000h
foo_ui_std                      loaded at 015B0000h - 01607000h
foo_vis_samurize2                loaded at 01630000h - 01660000h
dciman32                        loaded at 73BC0000h - 73BC6000h
netapi32                        loaded at 5B860000h - 5B8B4000h
appHelp                          loaded at 77B40000h - 77B62000h
CLBCATQ                          loaded at 76FD0000h - 7704F000h
COMRes                          loaded at 77050000h - 77115000h
OLEAUT32                        loaded at 77120000h - 771AC000h
VERSION                          loaded at 77C00000h - 77C08000h
shdocvw                          loaded at 77760000h - 7792E000h
CRYPT32                          loaded at 77A80000h - 77B14000h
MSASN1                          loaded at 77B20000h - 77B32000h
CRYPTUI                          loaded at 754D0000h - 75558000h
WINTRUST                        loaded at 76C30000h - 76C5E000h
IMAGEHLP                        loaded at 76C90000h - 76CB8000h
WININET                          loaded at 771B0000h - 77259000h
WLDAP32                          loaded at 76F60000h - 76F8C000h
SETUPAPI                        loaded at 02F00000h - 02FEA000h
urlmon                          loaded at 77260000h - 77300000h
Secur32                          loaded at 77FE0000h - 77FF1000h
SSSensor                        loaded at 06270000h - 06285000h
idle                            loaded at 60300000h - 60307000h
MSVCR71                          loaded at 7C340000h - 7C396000h
DSOUND                          loaded at 73F10000h - 73F6C000h
WINMM                            loaded at 76B40000h - 76B6D000h
mswsock                          loaded at 71A50000h - 71A8F000h
DNSAPI                          loaded at 76F20000h - 76F47000h
winrnr                          loaded at 76FB0000h - 76FB8000h
rasadhlp                        loaded at 76FC0000h - 76FC6000h
imon                            loaded at 20B00000h - 20B46000h
WSOCK32                          loaded at 71AD0000h - 71AD9000h
NTMARTA                          loaded at 77690000h - 776B1000h
SAMLIB                          loaded at 71BF0000h - 71C03000h
hnetcfg                          loaded at 662B0000h - 66308000h
wshtcpip                        loaded at 71A90000h - 71A98000h
wdmaud                          loaded at 72D20000h - 72D29000h
msacm32                          loaded at 72D10000h - 72D18000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
midimap                          loaded at 77BD0000h - 77BD7000h
KsUser                          loaded at 73EE0000h - 73EE4000h
IMM32                            loaded at 76390000h - 763AD000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 1000B33Eh, location: "shared", loaded at 10000000h - 10029000h
Address: 10002EC6h, location: "shared", loaded at 10000000h - 10029000h
Symbol: "uGetCallStackPath" (+000000C6h)
Address: 1000A440h, location: "shared", loaded at 10000000h - 10029000h
Symbol: "uSetDlgItemText" (+00000000h)
Address: 10019A38h, location: "shared", loaded at 10000000h - 10029000h
Address: 1000A454h, location: "shared", loaded at 10000000h - 10029000h
Symbol: "uSetDlgItemText" (+00000014h)
Address: 0138B9E1h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D4BAA4h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "IsWindow" (+00000171h)
Address: 7C809E60h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "IsBadReadPtr" (+0000005Fh)
Address: 77D4D5BEh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcA" (+000000D0h)
Address: 77D4D601h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcA" (+00000113h)
Address: 77D4D640h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "SetWindowLongW" (+00000015h)
Address: 013BD090h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B77Fh, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D545E4h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000402h)
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D541B0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000002D5h)
Address: 77D53FD9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000000FEh)
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54204h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 013CA4D4h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000169h)
Address: 77D4B4C0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000184h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 013CA4D4h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D4B4D0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000194h)
Address: 77D4B50Ch, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+000001D0h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 7C90EAE3h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4B473h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000137h)
Address: 77D494BEh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowLongA" (+00000061h)
Address: 77D4D4E4h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "SetPropW" (+000000BBh)
Address: 013CA4D4h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D54E28h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowTextLengthW" (+00000547h)
Address: 013CA240h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01380000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013CA4B4h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01380000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 012D0018h, location: "foo_uie_albumart", loaded at 012B0000h - 012E6000h
Address: 013CA4D0h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013A0000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D4021Eh, location: "USER32", loaded at 77D40000h - 77DC9000h
Address: 77D561B3h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DrawStateW" (+000001DFh)
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D56208h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DialogBoxIndirectParamAorW" (+00000036h)
Address: 01380000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013CA0D0h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D5666Bh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DialogBoxParamW" (+0000003Fh)
Address: 01380000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013CA0D0h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01385C93h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01380000h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 0138B740h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 7C90EA00h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "NtWriteFile" (+0000000Dh)
Address: 01514E93h, location: "foo_ui_columns", loaded at 014F0000h - 01587000h
Address: 77D4EAC1h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "EnableMenuItem" (+00000092h)
Address: 77D9CB26h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "TrackPopupMenuEx" (+0000000Ch)
Address: 77D94EF1h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "TrackPopupMenu" (+0000001Bh)
Address: 01385DEDh, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01385E31h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 004DF180h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 013C2090h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013C2CF4h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013C2150h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013BCBC8h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01385528h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013BD118h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D488E0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowLongW" (+0000003Ah)
Address: 013845EFh, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D5418Dh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000002B2h)
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D541B0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000002D5h)
Address: 77D53FD9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000000FEh)
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54204h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000169h)
Address: 77D4B4C0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000184h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D4B4D0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000194h)
Address: 77D4B50Ch, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+000001D0h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 7C90EAE3h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4B473h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000137h)
Address: 77D494BEh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowLongA" (+00000061h)
Address: 77D4B42Dh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+000000F1h)
Address: 77D4B3F9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+000000BDh)
Address: 5AD73C20h, location: "uxtheme", loaded at 5AD70000h - 5ADA8000h
Symbol: "DrawThemeText" (+00000BEFh)
Address: 5AD98AB9h, location: "uxtheme", loaded at 5AD70000h - 5ADA8000h
Symbol: "GetThemeTextMetrics" (+0000AC69h)
Address: 5AD71AC7h, location: "uxtheme", loaded at 5AD70000h - 5ADA8000h
Address: 77D4B3D2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000096h)
Address: 77D4B3D2h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000096h)
Address: 5AD71B3Dh, location: "uxtheme", loaded at 5AD70000h - 5ADA8000h
Address: 5AD98A21h, location: "uxtheme", loaded at 5AD70000h - 5ADA8000h
Symbol: "GetThemeTextMetrics" (+0000ABD1h)
Address: 77D4BB15h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetPropW" (+0000003Ah)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D4B3B0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000074h)
Address: 7742058Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D21Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77420599h, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D228h)
Address: 77D541DCh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+00000301h)
Address: 77D4EB3Eh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "CallNextHookEx" (+0000003Bh)
Address: 7744F866h, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "Ordinal389" (+000028CBh)
Address: 770088D1h, location: "CLBCATQ", loaded at 76FD0000h - 7704F000h
Address: 7C9105C8h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+0000018Bh)
Address: 77D48B26h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowThreadProcessId" (+000000A6h)
Address: 013BCC28h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013854FFh, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013BD118h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 013845EFh, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384570h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48BD9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 77D541DCh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+00000301h)
Address: 77D541A9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "PrivateExtractIconExW" (+000002CEh)
Address: 77D4EB3Eh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "CallNextHookEx" (+0000003Bh)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000014Fh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000169h)
Address: 77D4C63Fh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "IsWindowUnicode" (+000000A1h)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D4C665h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "CallWindowProcW" (+0000001Bh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 01384552h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 013BBC48h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000014Fh)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000169h)
Address: 77D4B4C0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000184h)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D4B4D0h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000194h)
Address: 77D4B50Ch, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+000001D0h)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 7C90EAE3h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 01384430h, location: "foo_uie_single_column_playlist", loaded at 01380000h - 013CF000h
Address: 77D4B473h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "DefWindowProcW" (+00000137h)
Address: 77D494BEh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowLongA" (+00000061h)
Address: 77D4D4E4h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "SetPropW" (+000000BBh)
Address: 77D4B903h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "SendMessageW" (+00000049h)
Address: 7742028Ah, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000CF19h)
Address: 774202C2h, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000CF51h)
Address: 77420CF5h, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D984h)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D4EB3Eh, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "CallNextHookEx" (+0000003Bh)
Address: 003F5F14h, location: "StylerHelper", loaded at 003F0000h - 003FE000h
Symbol: "whiteHook" (+000004A4h)
Address: 7C910732h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C910738h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000164h)
Address: 7C910732h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C9106ABh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+000000D7h)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 7C9105D4h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000000h)
Address: 014F6828h, location: "foo_ui_columns", loaded at 014F0000h - 01587000h
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 014F66B0h, location: "foo_ui_columns", loaded at 014F0000h - 01587000h
Address: 014F66B0h, location: "foo_ui_columns", loaded at 014F0000h - 01587000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D48BD9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D48BD9h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 77D4885Ah, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000193h)
Address: 77D4882Ah, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+00000163h)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000006Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DC9000h
Symbol: "GetDC" (+0000014Fh)
Address: 7742049Eh, location: "COMCTL32", loaded at 773D0000h - 774CD000h
Symbol: "FlatSB_SetScrollProp" (+0000D12Dh)

Version info:
foobar2000 v0.9.4 beta 3
UNICODE

Additional info:
CD Audio Decoder 2.1.1  (foo_cdda)
Monkey's Audio decoder 2.1.1  (foo_input_monkey)
LPCM <--> delta-PCM converter 0.1.1  (foo_dsp_delta)
Single Column Playlist Display 0.3 beta [Sep 20 2006 - 00:48:36]  (foo_uie_single_column_playlist)
cwbowron's title format hooks 1.0.8 [Sep 11 2006 - 16:50:26]  (foo_cwb_hooks)
Columns UI 0.1.3 beta 1v6 TEST  (foo_ui_columns)
foobar2000 core v0.9.4 beta 3  (Core)
FLAC decoder 1.1.0  (foo_input_std)
Masstagger 1.6  (foo_masstag)
Album List 3.2.0  (foo_albumlist)
MSN Now Playing (alt) 2.4  (foo_msnalt)
Converter 1.0.1  (foo_converter)
Samurize Info Server (AMPI) 1.64  (foo_info_samurize)
ReplayGain Scanner 2.0.2  (foo_rgscan)
Standard Input Array 1.0  (foo_input_std)
Default User Interface 0.9acc  (foo_ui_std)
Convolver 0.3  (foo_convolve)
Track info panel 0.7  (foo_uie_trackinfo)
Tabbed panel modified 0.2.4  (foo_uie_tabs)
freedb Tagger 0.5.2a  (foo_freedb2)
Album Art Panel 0.2.4.1  (foo_uie_albumart)
Samurize Visualization Server (AMPI) 1.64  (foo_vis_samurize2)
Standard DSP array 1.0  (foo_dsp_std)
WMA Decoder 1.1  (foo_input_std)
Audioscrobbler 2.1  (foo_audioscrobbler)
Album list panel 0.2.1 beta 4  (foo_uie_albumlist)
Track info panel mod 0.5 beta [Aug 30 2006 - 16:35:44]  (foo_uie_trackinfo_mod)

Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-20 07:35:49
oops...

fixed version uploaded.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-20 07:53:05
updated to 0.3. mostly some bugfixes, and a new $imageabs2 command that should be better for those who are displaying album art.


nice. hopefully some of you gurus can post some examples of how to use these new commands. 

edit: possible bug report. i'm using this line of code and am getting very strange results.....
Code: [Select]
$if(%_isplaying%,$font(,,,255-128-0),)


the colour of the now playing item does not change until the the item is no longer selected. also the item stays the same colour even when it is no longer playing. so after playing a few tracks, it looks like this....

(http://img178.imageshack.us/img178/673/clipboard01is7.png)

note the color of the now playing item. also resizing the window fixes it. and reverting to the old dll removes the problems altogether so it's not my code (hopes)
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-20 08:40:38
edit: possible bug report. i'm using this line of code and am getting very strange results.....
Code: [Select]
$if(%_isplaying%,$font(,,,255-128-0),)


the colour of the now playing item does not change until the the item is no longer selected. also the item stays the same colour even when it is no longer playing. so after playing a few tracks, it looks like this....

note the color of the now playing item. also resizing the window fixes it. and reverting to the old dll removes the problems altogether so it's not my code (hopes)

I'm having this problem too.
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-20 08:50:21
At least we can now have absolute paths..
And resizable images..
And .jpgs...


I'm guessing them problems are due to this (quoted from changelist)
Quote
+ stopped now playing item updating every second
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-20 08:50:57
Does imageabs2 let you change drives? I'm fooling around with it, but just wonder what function it has added .. (just different image file types?)

I should read the change list 

Edit: Could someone whip up a quick example of the new imageabs2? For the life of me, I can't figure out what to do .. Hey give me a break, its 4am here
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-20 09:02:37
Does imageabs2 let you change drives? I'm fooling around with it, but just wonder what function it has added .. (just different image file types?)

I should read the change list 

Edit: Could someone whip up a quick example of the new imageabs2? For the life of me, I can't figure out what to do .. Hey give me a break, its 4am here

I was just having a quick mess around, and this is what I came up with which sort of worked, you'd need to change the image path, and the references to 32, which is meant to be the same as the row height..:

Code: [Select]
$imageabs2(150,150,0,$add(-32,$mul(%tracknumber%,32)),,,,,$replace(%path%,%filename_ext%,cover.jpg),)

half-assed explanation (probably incorrect):

Code: [Select]
$imageabs2(<resize image width>,<resize image height>,<starting-x-position>,<starting-y-position>,<not sure?>,<not sure?>,<not sure?>,<not sure?>,<image path>,<image options-eg-alpha-etc>)

edit: no worries.. should work
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-20 09:07:54
I just started messing with it, it seems the labes given are incorrect.

Like this "$imageabs2(560,,10,,,,,,D:\$directory(%path%)\folder.jpg,)"

The 560 moves the image all the way to the right.

For resize height, it disappears no matter what number I enter ...

The 10 seems to off center it from the position given in resize width ..

The example code you given doesn't work. What row height do you have?

Edit: To make it a bit more coherent


So I don't throw anyone off ...
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-20 09:10:23
I just started messing with it, it seems the labes given are incorrect.

Like this "$imageabs2(560,,10,,,,,,D:\$directory(%path%)\folder.jpg,)"

The 560 moves the image all the way to the right. For resize height, it disappears no matter what number I enter ... the 10 seems to off center it from the position given in resize width ..

Ahh, I'm playing with it slowly .. see what happens ..


It's strange because, I used one code, to resize the images to 100x100, and then decided i wanted it bigger, so changed it to 150x150 after it was originally working, but the images stayed at 100x100. I closed/reopened foobar, and the images were then displaying at 150x150, so you might need to close/reopen foobar to get the changes working..

edit: I have row height 32.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-20 09:21:05
It's strange because, I used one code, to resize the images to 100x100, and then decided i wanted it bigger, so changed it to 150x150 after it was originally working, but the images stayed at 100x100. I closed/reopened foobar, and the images were then displaying at 150x150, so you might need to close/reopen foobar to get the changes working..

edit: I have row height 32.


Alright thanks, I'll give it a shot.

Edit: Yeah, it seems you need to restart it after.

Thank you much terrestrial!

I can finally get rid of my album art panel! =)

Edit 2: Ok, slight bug or limitation. I have my albums in folders like #-E, F-L, etc. Anyways, for any music under #-E, it will not display the image. I suppose this is because of the #, though easy fixed on my end, it might cause problems with other characters? Anywho, otherwise, working great. =p
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-20 11:52:23
Good update, terrestrial.

I presume that the original, nonresizing imageabs Doesn't use GDI+.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-20 12:16:52
I've posted a new version which fixes the playback status not changing.

The arguments for $imageabs2 are

- resize width
- resize height

- srcX - the x position on the resized image where you want to start
- srcY - the y position on the resized image where you want to start
- srcW - the width on the resized image you want
- srcH - the height on the resized image you want

- dstX - the x position on the screen where you want the image drawn
- dstY - the y position on the screen where you want the image drawn

and yes, there will be problems with the '#' character in commands.

Both images commands use GDI+.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-20 13:42:39
Several concerns are presenting themselves:

- Something strange is going on with the resizing when you try to resize to a different aspect ratio from the original image and take slices of the resized image with imageabs2.

- It seems like there are odd problems with other special characters in file paths, possibly "-".  Trying to track this down.

- When a file path contains an illegal character which was turned into an underscore - for example, take the album "Oceanic Remixes / Reinterpretations" - it's difficult to reassemble the actual path of the album art, since the file path doesn't match what you get with a title formatting string like "%artist%'\'%album%".
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-20 14:20:07
I'd just like to repeat my request for some sort of group sidebars which would eliminate the need for us to split up album art over a number of tracks. So it would basically work the same way as the group headers, but be on the left or right of the group.
(http://img237.imageshack.us/img237/4206/plmockupsz5.th.jpg) (http://img237.imageshack.us/my.php?image=plmockupsz5.jpg)

Also, there should be a way to retrieve the number of items in a group and not show headers for groups with only 1 track. Also, independently sized headers would be nice.

Thank you so much for the gdi+ stuff, though. Does anyone have any good sample configs using the new gdi+ implementation?
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-20 15:13:47
I've posted a new version which fixes the playback status not changing.


thanks for that.... 

but now another problem - i have the elapsed time/length in my item display and the elapsed time is not updating....  again resizing the window updates it though....
Title: foo_uie_single_column_playlist
Post by: Pingwinho on 2006-09-20 16:07:03
I've got a problem. The covers are only being displayed when the filename doesn't consist any spaces. So Bathry.Bathory works, but Arctic Monkeys.Whatever People Say I Am, That's What I Am Not doesn't. is there any chance to fix it?
Title: foo_uie_single_column_playlist
Post by: Masahiko on 2006-09-20 16:25:53
Thank you for $ImageAbs2( Terrestrial
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-20 16:34:03
Quote
I've got a problem. The covers are only being displayed when the filename doesn't consist any spaces. So Bathry.Bathory works, but Arctic Monkeys.Whatever People Say I Am, That's What I Am Not doesn't. is there any chance to fix it?


I'm not getting any problems with spaces. What coding are you useing?
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-09-20 16:35:27
great update
Title: foo_uie_single_column_playlist
Post by: syrek on 2006-09-20 17:03:18
I can't seem to get tool++ his code to work, I copied everything he provided. Followed all the tips from the 'show your foorbar'-topic. But I still don't get any images, so my questions are

1. What is the minimal to make tool++ his code work?
    a. plugins (columns_ui, etc.)
    b. additional plugins (lib2png.dll, etc.)
    c. additional installs (runtime libraries, etc.)
2. Can someone, who has a full working tool++ code, post an archive from his foorbar2000 folder?
3. Who helps me?
Title: foo_uie_single_column_playlist
Post by: Stuart60611 on 2006-09-20 17:15:30
Can this plugin access global variables?
Title: foo_uie_single_column_playlist
Post by: chivas on 2006-09-20 17:24:23
Can this plugin access global variables?


this is an interesting question. i would really like to add my natural timestamp info (global variable).
right now it doesn't seam to be supported, or its a special syntax i don't know about..
Title: foo_uie_single_column_playlist
Post by: pylb_etajv on 2006-09-20 17:49:25
I have a few albums with tracks of different genre in them.
Is it possible to display in the Group header all the different genres of the album ?
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-20 18:13:28
I can't seem to get tool++ his code to work, I copied everything he provided. Followed all the tips from the 'show your foorbar'-topic. But I still don't get any images, so my questions are

1. What is the minimal to make tool++ his code work?
    a. plugins (columns_ui, etc.)
    b. additional plugins (lib2png.dll, etc.)
    c. additional installs (runtime libraries, etc.)
2. Can someone, who has a full working tool++ code, post an archive from his foorbar2000 folder?
3. Who helps me?


Here is a list from my plugs dir:

Folder PATH listing for volume appears
Volume serial number is 24EF-726C
D:\FB2K\COMPONENTS
|  components.lnk
|  default.png
|  default.pngxx
|  default.xml
|  dotnet_title.dll
|  foo_albumlist.dll
|  foo_audioscrobbler.dll
|  foo_autoplaylist.dll
|  foo_browser.dll
|  foo_burninate.dll
|  foo_cdda.dll
|  foo_channel_mixer.dll
|  foo_common.dll
|  foo_converter.dll
|  foo_cwb_hacks.dll
|  foo_dbsearch.dll
|  foo_dsp_atsurround.dll
|  foo_dsp_std.dll
|  foo_dsp_tube.dll
|  foo_dsp_winamp.dll
|  foo_dumb.dll
|  foo_freedb2.dll
|  foo_gep.dll
|  foo_input_shorten.dll
|  foo_input_std.dll
|  foo_masstag.dll
|  foo_midi.dll
|  foo_msnalt.dll
|  foo_out_asio.dll
|  foo_out_ks.dll
|  foo_playcount.dll
|  foo_rgscan.dll
|  foo_run.dll
|  foo_uie_albumart.dll
|  foo_uie_albumlist.dll
|  foo_uie_playlists_dropdown.dll
|  foo_uie_quicksearch.dll
|  foo_uie_single_column_playlist.dll
|  foo_uie_single_column_playlist.txt
|  foo_uie_tabs.dll
|  foo_uie_trackinfo.dll
|  foo_uie_trackinfo_mod.dll
|  foo_uie_trackinfo_mod.txt
|  foo_ui_columns.dll
|  foo_ui_std.dll
|  foo_utils.dll


NOT ALL OF THESE ARE NEEDED

Libpng is needed

These three images need to be in /images:

(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/bg1.png)
http://img.photobucket.com/albums/v142/Too...ep_Meep/bg1.png (http://img.photobucket.com/albums/v142/Tool_Meep_Meep/bg1.png)

(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/noalbum.png)
http://img.photobucket.com/albums/v142/Too...eep/noalbum.png (http://img.photobucket.com/albums/v142/Tool_Meep_Meep/noalbum.png)

(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/artoverlay-1.png)
http://img.photobucket.com/albums/v142/Too...rtoverlay-1.png (http://img.photobucket.com/albums/v142/Tool_Meep_Meep/artoverlay-1.png)

I'm sorry that I havent been very helpful lately. Lots of people are asking for advice and I've been tired and doing things and stuff.



On other notes, it would be great if this could access globals, then I could make it reflect my colourschemey thingy on my FCS :]
Title: foo_uie_single_column_playlist
Post by: Pingwinho on 2006-09-20 18:43:11
@ venometh, I use this code
Code: [Select]
$imageabs(4,$add(25,$mul(-21,%tracknumber%)),'images\albums\'%album artist%'.'%album%'.png',)
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-20 19:24:17
@ vonmeth, I use this code
Code: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-09-20 19:28:17
I've posted a new version which fixes the playback status not changing.

The arguments for $imageabs2 are

- resize width
- resize height

- srcX - the x position on the resized image where you want to start
- srcY - the y position on the resized image where you want to start
- srcW - the width on the resized image you want
- srcH - the height on the resized image you want

- dstX - the x position on the screen where you want the image drawn
- dstY - the y position on the screen where you want the image drawn

and yes, there will be problems with the '#' character in commands.

Both images commands use GDI+.


Can you make it so one doesn't? GDI+ lags my games :'(
Title: foo_uie_single_column_playlist
Post by: julien_32 on 2006-09-20 23:03:28
First, many thanks for the update Terrestrial 

some bugs:
-in imageabs2, there is a problem (with some pictures)
(http://img70.imageshack.us/img70/8792/sanstitre1ny9.th.jpg) (http://img70.imageshack.us/my.php?image=sanstitre1ny9.jpg)

I use :
$if($strcmp($num(%tracknumber%,2),01),,
$imageabs2(120,120,0,$mul(21,$sub(%tracknumber%,2)),120,21,15,0,$replace(%path%,%filename_ext%,folder.jpg),)
)

-'Enter' do nothing (not playing the selected track).

-going down in the playlist with the down key skip the "group display", and not while going up.

For the futur, I think can be good to have "presets" easily basculable. An example: a view with groups and thumbnails, and a simple list for Radios, Search, and others badly classified lists.

With this system, there is no problem for adding, moving, or deleting independants tracks. The program can store the last used view by playlist, and use predefinied view for some like playlist named 'Search*'.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-20 23:08:39
That picture illustrates the same problem I have whenever I use imageabs2() whenever the original image has a different aspect ratio from the resized image.
Title: foo_uie_single_column_playlist
Post by: maziu on 2006-09-20 23:53:37
The flickering is gone, but it doesn't update often enough to make this work:

$if(%isplaying%,%playback_time% / )%length%

Not really a big deal. I removed the $if(%isplaying%,%playback_time% / ), and I have the above code in my Status Bar.

I wanted to add that the functionality and appearance of this component is great.  It's exactly what I wanted in a playlist component.  I'm not doing anything as fancy as Tool++, but you can take a look here (http://img143.imageshack.us/my.php?image=maziufoobar20060909qn1.png) if you want to see my setup.
Title: foo_uie_single_column_playlist
Post by: beto on 2006-09-21 00:20:09
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-09-21 01:01:05
Thanks for the update terrestrial, I can actually use it now!
Title: foo_uie_single_column_playlist
Post by: TheDarkLord on 2006-09-21 02:09:53
(http://img132.imageshack.us/img132/3646/2641026631390642is1.th.jpg) (http://img132.imageshack.us/my.php?image=2641026631390642is1.jpg)
Title: foo_uie_single_column_playlist
Post by: maziu on 2006-09-21 02:35:55
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...


I have not been able to figure out a simple way to do this.  I have been able to figure out several complicated ways to do this.  This is my current Item Display string:

Code: [Select]
$ifequal($mod(%list_index%,2),0,
$drawrect(,,,,brushcolor-237-237-229 pencolor-null),
)
$drawrect(,,4,,brushcolor-204-204-191 pencolor-null)
$drawrect($sub(%_width%,4),,4,,brushcolor-204-204-191 pencolor-null)
$if(%_selected%,$drawrect(,,,,brushcolor-204-204-191 pencolor-null))
$if(%isplaying%,$drawrect(,,,,brushcolor-155-208-201 pencolor-null)
$font(AvantGarde LT Medium,7,,50-50-45)
,$font(AvantGarde LT Medium,7,,160-160-144)
)

$padding(6,0)
$alignabs(4,,14,%_height%,right,middle)$num(%tracknumber%,1)
$font(AvantGarde LT Medium,7,,0-0-0)

$alignabs(28,,%_width%,%_height%,left,middle)

$if($greater($calcwidth($if($meta(Album Artist),%artist% - )%title%),$sub(%_width%,60))
,
$cut($if($meta(Album Artist),%artist% - )%title%,90)…
,
$if($meta(Album Artist),%artist% - )%title%
)
$if(%isplaying%,
$font(AvantGarde LT Medium,7,,50-50-45),
$font(AvantGarde LT Medium,7,,160-160-144)
)
$padding(4,0)$align(right,middle)%length%


60 is the left and right marigins added together.
90 is the approximate maximum number of characters of the non-fixed-width font Avant-Garde at my usual window size of around 526 width.  Phew.
Those numbers will change depending on your config and font.  Experiment.

Also of note, the $if($meta(Album Artist),%artist% - ) is particular to my tagging convention.  I use Vorbis Comment standards, but they're not exactly pretty when it comes to classical music albums with multiple composers.  Setting the Album Artist comment for albums with multiple composers is my little work around.  You probably should just have %title%.  So you'll want something like this, but with those two numbers changed for your particular font, window size, and marigins.

Code: [Select]
$if($greater($calcwidth(%title%),$sub(%_width%,60))
,
$cut(%title%,90)…
,
%title%
)

See the results:
(http://img237.imageshack.us/img237/9356/maziufoobar20060920dr6.th.png) (http://img237.imageshack.us/my.php?image=maziufoobar20060920dr6.png)
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-21 04:19:16
I have not been able to figure out a simple way to do this.  I have been able to figure out several complicated ways to do this.

if you do not insist on doing the traditional ellipsize thing, you could simply check whether text did not fit in the visible space given (you can always output into bigger - wider than visible space - $alignabs container) and put transparent png over the right edge if so - to make it visually "fade out". imho simple and nice, but not to everyone's personal preference.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-21 04:35:12
Can this plugin access global variables?

This is exactly what I wanted to know.  Specifically for the "Group By" section.  I have an idea that should work, which will allow one to have full albums grouped together and in the same list singles (or individual songs from full albums) grouped together under a "Singles" section.

I think it will work if Globals or just straight variables using the "$puts" and "$get" function are allowed.
Title: foo_uie_single_column_playlist
Post by: Stuart60611 on 2006-09-21 04:49:13
I really like the look of this component when compared to the traditonal Columns UI playlist.  However, I am strugling with some its functionality.  Realizing the limitations of a single column, is there a way to select a sort based on different metadata fields, such as play_count or last_played.  In other words, I typically sort my palylis by artist|title.  But sometimes, I like to sort based on play_count or last_played to see what I have played recently or the most.  Any suggestions on the best way to accomplish this without having to use the main menu.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-21 05:12:10
Is there any way I can wrap or ellipsize text in a rectangle? I am having overwriting problems with long title songs...

here's my method

Code: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-21 11:00:15
terrestrial, could you add support for columns ui's globals ($get_global). it is present in your track info panel mod, but not in this component. thank you
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-21 12:39:08
terrestrial, could you add support for columns ui's globals ($get_global). it is present in your track info panel mod, but not in this component. thank you

This would be good to have.  Also, is support for foo_cwb_hooks present?  Or do they not work because they are not supported by Columns_UI?
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-21 12:57:29
This would be good to have.  Also, is support for foo_cwb_hooks present?  Or do they not work because they are not supported by Columns_UI?

foo_cwb_hooks works ...
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-09-21 13:53:23
I want to have the filetype icons used for foobar in my playlist depending on the file extension.

Can anyone come up with a code for me.....I am a complete retard.
Thank you please
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-21 15:47:07
This is the code I use in my trackinfomod panel and it works well, it should work in singlecolumnplaylist and be rather easy to modify for your needs:
Code: [Select]
$imageabs(,,icons\png\$replace(%filename_ext%,%filename%.,).png,)
Title: foo_uie_single_column_playlist
Post by: snively on 2006-09-21 17:01:57
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

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


(http://img111.imageshack.us/img111/9366/foobarscpcz0.jpg)

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: [Select]
$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',)
Title: foo_uie_single_column_playlist
Post by: Pingwinho on 2006-09-21 20:10:17

@ vonmeth, I use this code
Code: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-09-21 20:40:56
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.

(http://img480.imageshack.us/img480/5148/demoyh1.th.png) (http://img480.imageshack.us/my.php?image=demoyh1.png)

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: [Select]
$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%)
Title: foo_uie_single_column_playlist
Post by: beto on 2006-09-21 21:55:07
here's my method

Code: [Select]
$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....
Title: foo_uie_single_column_playlist
Post by: kai- on 2006-09-21 23:14:59
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-
Title: foo_uie_single_column_playlist
Post by: Stuart60611 on 2006-09-21 23:19:35
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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-21 23:20:22
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.
Title: foo_uie_single_column_playlist
Post by: kai- on 2006-09-21 23:33:18
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.


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

i only see tabbed and sidebar
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-21 23:35:43
The layout tab in the Columns UI Options page, Under File -> Preferences -> Columns UI
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-21 23:41:26
You need to add the playlist to the layout, right click on any splitter:

(http://img168.imageshack.us/img168/3852/addpanelgv5.png) (http://imageshack.us)
Title: foo_uie_single_column_playlist
Post by: kai- on 2006-09-21 23:43:05
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
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-21 23:51:41
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.
Title: foo_uie_single_column_playlist
Post by: kai- on 2006-09-22 00:06:22
found it!

thanks! boo i r n00b! haha =(
Title: foo_uie_single_column_playlist
Post by: pylb_etajv on 2006-09-22 00:06:38
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 

Apart from that, I'm lovin the plugin and i doubt i'll ever go back to the regular Columns UI
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-09-22 01:55:01
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 


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..?
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-22 02:46:22
if the core sort is set properly, it shouldn't be a problem.
Title: foo_uie_single_column_playlist
Post by: Necrosis on 2006-09-22 10:28:40
Would it be possible to add the ability to have individual line heights for item display and group headers?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-22 10:52:36
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%,)
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-22 14:27:52
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...
(http://img212.imageshack.us/img212/232/foobarzx6.th.jpg) (http://img212.imageshack.us/img212/232/foobarzx6.jpg)

Moderation: Please do not inline images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-22 15:15:12
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....

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


(http://img73.imageshack.us/img73/3933/clipboard01fu3.jpg)
Title: foo_uie_single_column_playlist
Post by: david_dl on 2006-09-22 23:50:37
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.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-22 23:57:54
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!
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-23 00:25:59
I strongly agree with david!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-23 01:57:54
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.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-23 02:14:50
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...
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-09-23 08:25:42
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.
Title: foo_uie_single_column_playlist
Post by: Pingwinho on 2006-09-23 09:40:37

@ vonmeth, I use this code
Code: [Select]
$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 ;(
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-23 12:02:24
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
Title: foo_uie_single_column_playlist
Post by: Pingwinho on 2006-09-23 13:54:16
@cartman(2vd), thx very much. U are my Messiah ][_, ([]) ][_,
Title: foo_uie_single_column_playlist
Post by: andro77 on 2006-09-23 14:01:55
[a href="http://img132.imageshack.us/my.php?image=2641026631390642is1.jpg" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 16:27:56
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  ). can some kind soul explain how i change over my imageabs code to imageabs2?

Code: [Select]
$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: [Select]
$imageabs2(150,150,0,$mul(25,$add(%tracknumber%,-1)),150,0,5,,$replace(%path%,%filename_ext%,)folder.jpg,)
Title: foo_uie_single_column_playlist
Post by: snively on 2006-09-23 18:52:30
Quote
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

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


(http://img111.imageshack.us/img111/9366/foobarscpcz0.jpg)

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: [Select]
$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? :/
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 19:48:37
Quote
Why is it that songs with 1 playcount don't have the "x" after them and don't align with the rest?

Code: [Select]
$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? 

try

Code: [Select]
$padding(35,0)$align(right,bottom)[%play_counter%x]
[/color]

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.... 

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: [Select]
$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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-23 19:52:42
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
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 20:02:02
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


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....

 
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-23 20:34:00
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.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 20:37:14
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%,)


Title: foo_uie_single_column_playlist
Post by: Foxhawk on 2006-09-23 21:12:38
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.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-23 21:28:38
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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-23 21:36:18
nah marc

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.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 22:02:44
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...



(http://img232.imageshack.us/img232/2132/clipboard03iy0.png)

see?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-23 22:32:15
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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-23 22:39:13
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.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 22:44:22
here you go....

Quote
$if2(%album%,)


Have you actually tested that?


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

clicky (http://www.twobeds.com/upload/userfiles/marc2003/foo.wmv)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-23 22:49:13
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.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-23 23:11:26
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... 

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

http://www.hydrogenaudio.org/forums/index....st&p=433723 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=433723)

that works (sort of). one header for numerous single tracks?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 00:57:56
Which is not the desired result. Perheps this component does not fit with those who like hybrid playlists
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-24 01:29:38
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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 01:46:07
If you actually read the thread, You would notice we DID tag our files to allow foobar to differentiate.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-24 01:55:55
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.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-24 02:07:40
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:
(http://img96.imageshack.us/img96/2716/hybridvg0.th.png) (http://img96.imageshack.us/my.php?image=hybridvg0.png)
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-09-24 05:37:40
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 (http://www.envenom.net/uploads/foobarplaylistproblem49348.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: [Select]
$imageabs2(150,150,0,$add(-23,$mul(%tracknumber%,23)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-24 05:54:19
Code: [Select]
$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%.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-24 05:55:06
Nevermind... Yotsuya's too quick.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-24 05:59:09
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.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-24 06:03:17
Good tip.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-24 06:12:41
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: [Select]
// 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),)
,)

(http://img91.imageshack.us/img91/3550/nocoverni0.png) (http://imageshack.us)  images\nocover.png
Title: foo_uie_single_column_playlist
Post by: Foxhawk on 2006-09-24 07:07:13
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 
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-24 08:32:38
Which is not the desired result. Perheps this component does not fit with those who like hybrid playlists


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.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 11:02:28
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.
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-24 11:23:57
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.
Title: foo_uie_single_column_playlist
Post by: Masahiko on 2006-09-24 11:46:22
Hi,
(http://membres.lycos.fr/icarusnetspace/foobug.png)

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: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-24 12:57:28
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.....  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%

Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 13:41:38
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.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-24 14:37:05
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.... 
Title: foo_uie_single_column_playlist
Post by: Brendan on 2006-09-24 15:24:18
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?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 15:39:09
Do we want to know?

marc2003: Odd. So there's no reason for the "group by" section at all? I think I'm misunderstanding something here.
Title: foo_uie_single_column_playlist
Post by: kejkz on 2006-09-24 15:45:52
@yotsuya:

thanks for album art code!
Title: foo_uie_single_column_playlist
Post by: Masahiko on 2006-09-24 16:15:38

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.....  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%




Thank you marc2003, it's ok now
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-09-24 21:02:35
Code: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-24 21:15:56
Do we want to know?

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.... 

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.... 



Code: [Select]
$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.

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%.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-24 21:54:39
Seems so, at least by current code. Let's hope it will change later on
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-24 22:54:54
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.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-24 23:02:40
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).
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-25 04:18:38
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?


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.

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.


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!


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 ;) 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: [Select]
$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.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 04:55:39
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!
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-25 05:02:13
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


yeah, I changed the name  it seemed better (at least for me )

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

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.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 05:06:35
um.. I upgraded and all my settings carried over including row heigh and background color ... did I get lucky?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-25 05:10:55
maybe.. or your settings could have been the same as the defaults.
Title: foo_uie_single_column_playlist
Post by: apathy on 2006-09-25 05:26:30
Just updated and its great 

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

(http://img176.imageshack.us/img176/2227/foobarvc6.th.jpg) (http://img176.imageshack.us/my.php?image=foobarvc6.jpg)
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-25 07:29:31
My settings did not get erased either, and they are not the default ones. *shrug*

Great update! =)
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-09-25 08:10:32
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
Title: foo_uie_single_column_playlist
Post by: bender2115 on 2006-09-25 10:27:04
Just updated and its great 

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

(http://img176.imageshack.us/img176/2227/foobarvc6.th.jpg) (http://img176.imageshack.us/my.php?image=foobarvc6.jpg)



same behavior here
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-25 10:28:20
Excellent work, terrestrial! This is becoming one of the best components for fb2k ever!

bender2115, I get the same problem with the bottom of my playlist, but it seems I have extra space.
Title: foo_uie_single_column_playlist
Post by: apathy on 2006-09-25 10:41:23
Excellent work, terrestrial! This is becoming one of the best components for fb2k ever!

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 
Title: foo_uie_single_column_playlist
Post by: kejkz on 2006-09-25 10:45:07
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 
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-25 10:59:42

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 

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


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

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 


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...
Title: foo_uie_single_column_playlist
Post by: kejkz on 2006-09-25 11:39:33
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.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-25 12:32:44
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: [Select]
%_itemindex% %codec%
Item Display:
Code: [Select]
//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: [Select]
//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.
Title: foo_uie_single_column_playlist
Post by: Sihkih on 2006-09-25 15:30:37
on my foobar single colum playlist is very slow... when i add more songs, scrolling them takes some time... is it normal?
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-09-25 16:11:31
I am using Foobar 9.4 final
The Plug-in does't seem to work 

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   

And I want to know if it is possible to show the icons (Wma etc.) in the playlist if the plug-in works.
Title: foo_uie_single_column_playlist
Post by: stalnation on 2006-09-25 18:17:10
@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
Title: foo_uie_single_column_playlist
Post by: R2D2 on 2006-09-25 18:46:02
I can confirm here.

(http://img46.imageshack.us/img46/5262/confirmgl0.png)

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.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 19:00:22
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: [Select]
$puts(album_mode,$if($and($strcmp($mod(%totaltracks%),%_itemcount%),$strcmp($mod(%tracknumber%),%_itemindex%)),1,))


You can call it like this:
Code: [Select]
$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.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-25 19:08:59


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 

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


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

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 


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...



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.



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.
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-25 19:44:47
globals still seem not to work. i may be doing something wrong though .
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-09-25 21:00:07
@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
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-25 21:06:08
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: [Select]
$puts(album_mode,$if($and($strcmp($mod(%totaltracks%),%_itemcount%),$strcmp($mod(%tracknumber%),%_itemindex%)),1,))


You can call it like this:
Code: [Select]
$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. 

also any ideas on the syntax for the !noheading! option?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 21:13:08
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
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-25 21:41:59
it should be !noheader!. if that is the result of the group by value, then the header is not displayed.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 21:49:30
Thanks for the clarification, this worked well for me as the "Group By" string:

$if(%tracknumber%,%album%%discnumber%,!noheader!)
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-25 21:52:26
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

you the man!! thanks again for your help. 
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-09-25 23:18:32
You could also use %_itemcount% and compare to see if it equals one, then supress the header.
Title: foo_uie_single_column_playlist
Post by: evil_hacler on 2006-09-25 23:21:51
I have a problem:
When I add a new playlist the first group doesnt show up at top, but the itemlisting just under it. So I have to scroll up to see the Album name every time I add a new playlist. Very annoying. This only happens when I add playlists that have so many items that you have to scroll the window.
Does anybody else have this problem?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 23:36:44
The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.
Title: foo_uie_single_column_playlist
Post by: Lorraine on 2006-09-25 23:45:13
Is there any way to ONLY show headers for non-singles/non-mixed playlists?

ex. If my playlist has -s- in the title, no headers will be shown. If there's no -s- then they are shown as normal.

I'm using the $if(%tracknumber%,%album%%discnumber%,!noheader!) code for no headers on any track without a tracknumber (ie. singles) but that's no use when a playlist has a single track from an album in it.

 

I've looked through the thread for help but it's just confusing me a little.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-25 23:57:22
Try something like this:

Code: [Select]
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-26 00:15:57
Maybe !noheader! would work better from the "Group Display" field.

I think that this would be a better idea too.
Title: foo_uie_single_column_playlist
Post by: whr on 2006-09-26 00:19:23
Sorry for the stupid question, but is there anyway to use the hotness code with this plugin, without resorting to use foo_cwb_hooks for stuff like %_system_year% etc?
Title: foo_uie_single_column_playlist
Post by: Lorraine on 2006-09-26 00:25:49
Try something like this:

Code: [Select]
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks

Nope, no change. 
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-26 00:35:43
No change?

- Do you have the recent version of cwb_hooks and single_column_playlist both installed?
- Try pasting that code into a trackinfo panel, what do you see?
- Are you sure your playlist had -s- in it's name, and does %cwb_playinglist% show this in a trackinfo panel?
Title: foo_uie_single_column_playlist
Post by: Hamallainen on 2006-09-26 00:49:36

Try something like this:

Code: [Select]
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks

Nope, no change. 

Try to replace %cwb_playinglist% by %cwb_activelist%
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-26 00:51:52
Try something like this:

Code: [Select]
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks


trouble is, this formats all playlists the same as the "playing" playlist..... 
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-26 01:05:40
Does %playlist_name% not work?  That is what has worked in the past inside Columns_UI.
Title: foo_uie_single_column_playlist
Post by: Lorraine on 2006-09-26 01:05:45
Try to replace %cwb_playinglist% by %cwb_activelist%


That works! Thank you both
Title: foo_uie_single_column_playlist
Post by: Hamallainen on 2006-09-26 01:30:27
Does %playlist_name% not work?  That is what has worked in the past inside Columns_UI.

You're right, it's maybe better to use %playlist_name% considering this:

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
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-26 01:53:38
just to confirm, %playlist_name% does work.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-26 02:01:40
So is this the preferred answer?:

Code: [Select]
$if($strchr(%playlist_name%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)
Title: foo_uie_single_column_playlist
Post by: Lorraine on 2006-09-26 06:15:42
That does work, yes.  Originally this is what I was using but I forgot the '($strchr' and that's why it wouldn't work! 
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-26 07:57:26
I have what I consider to be a bug. I am using the following code to display album art:

Code: [Select]
$ifgreater(%_itemcount%,4,
$ifgreater(%_itemcount%,5,
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(150,150,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),150,150,0,-5,C:\Program Files\foobar2000\images\case.png,)
,
$imageabs2(103,99,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,14),%_height%),
$mul(%_itemindex%,%_height%)),144,134,29,$ifgreater(%_itemindex%,1,0,14),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(103,99,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,14),%_height%),
$mul(%_itemindex%,%_height%)),144,134,29,$ifgreater(%_itemindex%,1,0,14),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(130,130,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),130,130,10,0,C:\Program Files\foobar2000\images\case.png,)
)
,)


Now here's what's going wrong. The larger album art works fine, but the smaller "no art" and the smaller overlay are not shown. Is this because those two images are cached with the first resize operation? The only workaround is to make a copy of these two images with a different file name and then using them for the smaller album art.

For now I've decided to use this instead...
Code: [Select]
$ifgreater(%_itemcount%,4,
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(150,150,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),150,150,0,-5,C:\Program Files\foobar2000\images\case.png,)
,)
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-26 09:57:03
does the obligation problem to have the album arts in foobar's folder has been solved ?
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-26 10:02:02
does the obligation problem to have the album arts in foobar's folder has been solved ?

Yes.
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-26 10:14:17
ok, so now, I can put an image thing just like %directoryname%/folder.jpg, and it will work ?
Title: foo_uie_single_column_playlist
Post by: Blitzmeister on 2006-09-26 10:28:48
Try --> $imageabs2(70,70,0,$add(-24,,$mul(%tracknumber%,22)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)

The first 2 70's are the size of the artwork & -24 is your line size
Hope this helps
Cheers
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2006-09-26 10:36:45
sure it helps !! thank you very much !
Title: foo_uie_single_column_playlist
Post by: evil_hacler on 2006-09-26 11:21:11
The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.

So there is no way to solve it?
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-09-26 14:59:00
I need some help because Foobar says that the Plug-in couldn't be loaded.
I am using foobar 9.4.
Are there users with simial problems?

Okay I need  the Hooks thing 
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-26 16:36:05
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!
  Where is that quote from....?
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-26 17:25:27
  Where is that quote from....?


the changelog, a .txt file included with the dll when you download the zip from the link in the first post..... 
Title: foo_uie_single_column_playlist
Post by: evil_hacler on 2006-09-26 17:58:47
The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.

So what should I try? I still want the grouplisting to be displayed.
Title: foo_uie_single_column_playlist
Post by: whr on 2006-09-26 18:38:47
I've got another question.
I have the Group by set to %album%%discnumber%, but for multiple discs albums from an artist, i get the albums displayed in this order:

Album 1 Disc 1
Album 2 Disc 1
Album 1 Disc 2
Album 2 Disc 2

I can't seem to get it to work in a more natural Album > all discs of the album > next album > all discs of the album.

Any help would be appreciated.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-26 18:47:09
whr:
The Group by field only determines how the items are grouped together, it does not change the order in which the groups are displayed. For that you need to modify your playlist sort code.

File> Preferences> General> "Sort Incoming files by:"
-or-
Edit> Sort> "Sort by..."

make sure the %discnumber% appears AFTER the %album% in your sort string.
Title: foo_uie_single_column_playlist
Post by: whr on 2006-09-26 18:54:10
Oh, that did it. I had the %discnumber% before %album% in the sort string ><

Thanks!
Title: foo_uie_single_column_playlist
Post by: lextune on 2006-09-26 20:32:34

  Where is that quote from....?


the changelog, a .txt file included with the dll when you download the zip from the link in the first post..... 

Ahhh....good, I thought I was missing a thread somewhere.
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2006-09-26 21:04:07
I just started using this wonderful plugin and i am fascinated about all the possibilities. I would like to make a request that could take this component one step further:

I thought about implementing the opportunity to create and use sort strings for your playlist: That could be something foo_custom_sort for foobar 0.83. But that is not the whole idea: Every sort string could be associated with a certain "group by" string.  So everytime you use a sorting your grouping (and why not the item display too?) also changes.

What do you think?
Title: foo_uie_single_column_playlist
Post by: Stuart60611 on 2006-09-26 21:14:43
I just started using this wonderful plugin and i am fascinated about all the possibilities. I would like to make a request that could take this component one step further:

I thought about implementing the opportunity to create and use sort strings for your playlist: That could be something foo_custom_sort for foobar 0.83. But that is not the whole idea: Every sort string could be associated with a certain "group by" string.  So everytime you use a sorting your grouping (and why not the item display too?) also changes.

What do you think?



I totally agree with this concept.  The only functional limitation that I see with this component is the inability to change the group heading and corresponding sorting of the playlist dynamically.  What would be great is if the user could select that the playlist be sorted by any particular metadata field and that the group heading be modified accordingly for particular sort selected.  Also, the ability to bind sort options to buttons would be a great feature.  As such, you could have a series of buttons to sort the playlist by artist, album, last played, play count, etc. and when selecting the appropriate button the playlist re-sorts accordingly and modifies the group heading with the metadata field for the selected sort.  Right now, those of us who like to sort playlists based upon varying selectable metadata must use the Columns UI or default playlists to do so.  With these features, this component can do the job.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-27 00:37:02
maybe ive found a bug but not sure:

there is imho some bug with resizeing images in new version of single column.
this works for me in most cases (strange beacuse it should not afaik):
Code: [Select]
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

this doesnt. some images just disappeared:
Code: [Select]
$imageabs2(46,46,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)


maybe it isnt bug maybe there is something wrong with my imgaes i dont no  cause with resize some work but some doesnt and it looks like there is no kye in which does and which not and they did work in previous release.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-09-27 02:21:51
Is there a way to get the length of an item in hh:mm:ss format?

If not, I request an %_itemlength%

also, I'm having the same problem as cartman(2vd)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-27 02:30:37
Nickoladze: Is %length% not working for you?
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-09-27 03:53:13
Nickoladze: Is %length% not working for you?


sorry if i didn't specify, by item i meant all songs from an album. Just like how %_itemcount% works.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-27 04:12:41
By default the group header appears to inherit most of the properties of the first item in the group. It would be nice if commonly used variables were replaced with more group-related equivilants. Such as %length% reflecting the sum total of all items in the group.  I also noticed that %list_index% gets duped from the first item in the list.. it would be nice if it incremented like any other row.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-27 04:39:51
I previously requested group "siders." Nobody seemed to respond to this idea, and Im guessing it wouldnt be possible unless you created a list control completely from scratch anyway. Instead, would it be possible to let us have group header code that overlaps the tracks under it (instead of getting cut off if there isnt enough vertical space)? I'm mainly just trying to find a good way to put album art next to the tracks in a group without having to divide it between tracks, which doesnt work well when you are missing tracks in a group or don't have perfect tags.

Also, would it be possible to make the index of a group available to be used in item display code. For example, instead of using tracknumbers to split up albumart, you could use the offset from the group index number.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-27 04:45:12
alphaex32: If you position your art "slices" based on the newly added %_itemindex% instead of %tracknumber% you will solve the problem of missing tracks or tracks with no tag.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-27 05:50:32
Just updated and its great 

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

any idea on how to fix this?
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-09-27 06:02:37

Just updated and its great 

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

any idea on how to fix this?


I have this problem too.
I found that resizing the playlist removes the double effect to the last song and therefore wont crash on ya but I do find at times on a restart that my header is cut half way.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-09-27 06:03:42

Just updated and its great 

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

any idea on how to fix this?


The only way I can think of fixing it is to look into the source code, and looking at the function/subroutine that returns the size of measured rows in the listview. This bug was most likely brought on by group row spanning.
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-09-27 06:11:23
The only way I can think of fixing it is to look into the source code, and looking at the function/subroutine that returns the size of measured rows in the listview. This bug was most likely brought on by group row spanning.

it even crashed if I use the default code on the first page
Title: foo_uie_single_column_playlist
Post by: Sw!ng on 2006-09-27 09:29:52
Looks like this is going to be a great component, too !! (better say it IS ... but beta  )
Unfortunatly it cant replace the conventional Playlistview for me, yet. -Since I often use it for editing single Meta-Fields.

Is such a function going to be implented ??
(you know: doubleclickin in a Column, and editing the Artist-Tag, for example.)

Or is it allready implemented, and I didnt recognize ??

.THNX.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-27 11:43:42
maybe ive found a bug but not sure:

there is imho some bug with resizeing images in new version of single column.
this works for me in most cases (strange beacuse it should not afaik):
Code: [Select]
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

this doesnt. some images just disappeared:
Code: [Select]
$imageabs2(46,46,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)


maybe it isnt bug maybe there is something wrong with my imgaes i dont no  cause with resize some work but some doesnt and it looks like there is no kye in which does and which not and they did work in previous release.


research report:
ok i did some more testing on this and it surely looks like there is some problem with handling images (maybe in "+ fixed centering/resizing bug" or new "gdi release images" feature). When i restarted my foobar this noon this code
Code: [Select]
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

did just as it is meant to = did no resize (strange because yesterday it did but without foobar restart!)

so new research progress is. If you change something in code with imageabs2 and click apply some images disappear but after you restart foobar some of then appear and acts like they should. To speak the truth after restart almost every image works (but still not all of them:()

does anybode else encountering this behavior?
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-09-27 13:09:07
Quick question - what's the best way to do alternating backgrounds?
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-27 13:51:27
The resizing aspect of imageabs2 seems kinda unreliable and buggy.  I can't really get it to act how I expect at all when I'm taking slices from images for album art, unless there is something I'm completely not understanding.
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-09-27 13:57:50
mguander:
Code: [Select]
$imageabs2(85,85,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,10,,$replace(%path%,%filename_ext%,cover.jpg),)
...works fine for me.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-27 15:27:46
Hi terrestrial, I was just wondering if you were considering putting the !noheader! option in the "Group Display" section.  Yotsuya brought it up originally, and I agree that it might make more sense to have it there rather than in the "Group By" section.

Thanks!
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-09-27 15:40:14
Quick question - what's the best way to do alternating backgrounds?

anybody?
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-27 15:46:54
anybody?

Try this:
Code: [Select]
$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))


Just change the colors and size to suit.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-09-27 15:52:11
Looks like this is going to be a great component, too !! (better say it IS ... but beta  )
Unfortunatly it cant replace the conventional Playlistview for me, yet. -Since I often use it for editing single Meta-Fields.

Is such a function going to be implented ??
(you know: doubleclickin in a Column, and editing the Artist-Tag, for example.)

Or is it allready implemented, and I didnt recognize ??

.THNX.


No in-place editing of fields, sorry. Too difficult to do with different fonts / positions / variables.

research report:
ok i did some more testing on this and it surely looks like there is some problem with handling images (maybe in "+ fixed centering/resizing bug" or new "gdi release images" feature). When i restarted my foobar this noon this code
Code: [Select]
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

did just as it is meant to = did no resize (strange because yesterday it did but without foobar restart!)

so new research progress is. If you change something in code with imageabs2 and click apply some images disappear but after you restart foobar some of then appear and acts like they should. To speak the truth after restart almost every image works (but still not all of them:()

does anybode else encountering this behavior?


images are loaded and resized once, then cached in memory. if you change the resize, you will still get the old cached copy (which may be a different size).

Hi terrestrial, I was just wondering if you were considering putting the !noheader! option in the "Group Display" section.  Yotsuya brought it up originally, and I agree that it might make more sense to have it there rather than in the "Group By" section.

Thanks!


The group by determines the grouping and count of items, so anything affecting that would have to go there. I can maybe get _itemcount and _itemindex to work inside the group by section, depending on what the performance is like (it has to be very fast, as the the entire playlist has to be indexed).



Quick question - what's the best way to do alternating backgrounds?

anybody?


I use this:

Code: [Select]
$ifequal($mod(%_playlist_number%,2),0,$drawrect(0,0,0,0,pencolor-0-0-0 alpha-30),)
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-27 16:09:47

Hi terrestrial, I was just wondering if you were considering putting the !noheader! option in the "Group Display" section.  Yotsuya brought it up originally, and I agree that it might make more sense to have it there rather than in the "Group By" section.

Thanks!


The group by determines the grouping and count of items, so anything affecting that would have to go there. I can maybe get _itemcount and _itemindex to work inside the group by section, depending on what the performance is like (it has to be very fast, as the the entire playlist has to be indexed).

The reason why I ask is that I want to hide the header of songs that are part of a random list of songs.
Currently I use this in the "Group By":
Code: [Select]
%codec% %date% %album artist% %album%

For the "Group Display" this is how I choose what to display (this code doesn't include all of the font and color code):
Code: [Select]
$puts(group0,$if($stricmp(%_itemcount%,$substr(%track%,4,5)),%album artist%,%artist%))
$puts(group1,$if($stricmp(%_itemcount%,%totaltracks%),%album artist%,%artist%))
$if($stricmp(%codec%,FLAC),$get(group0))
$if($stricmp(%codec%,MP3),$get(group1))
$if($stricmp(%codec%,CDDA),$get(group1))

This will group my albums with headers exactly the way I want, but for individual songs (wether a single or a song from an album) in a random list it gives a header for each song. 

Here is a view of a album based list:
(http://img167.imageshack.us/img167/7291/albumor8.th.png) (http://img167.imageshack.us/my.php?image=albumor8.png)

Here is a view of a random playlist:
(http://img208.imageshack.us/img208/636/randomlistoa5.th.png) (http://img208.imageshack.us/my.php?image=randomlistoa5.png)


Ideally I would like to have a single header for a group of random songs, but I don't think it is possible.  So what I would like to do is to hide the headers that appear for individual songs.  From what I can tell, there is no way to do that without have a "no header" option which could result in the first two lines of the "Group Display" to look like this:
Code: [Select]
$puts(group0,$if($stricmp(%_itemcount%,$substr(%track%,4,5)),%album artist%,!noheader!))
$puts(group1,$if($stricmp(%_itemcount%,%totaltracks%),%album artist%,!noheader!))


images are loaded and resized once, then cached in memory. if you change the resize, you will still get the old cached copy (which may be a different size).

Also, how can you refresh the cache with a new image or a resize?
Thanks!
Title: foo_uie_single_column_playlist
Post by: mquander on 2006-09-27 16:26:36
mguander:
Code: [Select]
$imageabs2(85,85,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,10,,$replace(%path%,%filename_ext%,cover.jpg),)
...works fine for me.

My code looks like that too, but it seems to retain the aspect ratio of the original image, which isn't very nice if you want a no-cover image or a "cd case" style wrapper image.
Title: foo_uie_single_column_playlist
Post by: int on 2006-09-27 18:40:26
Since updating to 0.3.2, my titles/albums have started wrapping onto the next level down (if they're too wide to fit), covering up any information i've got there. Any way to stop this from happening?
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-09-27 19:16:59
I don`t know what I am doing wrong but single column playlist does't seems to work. It is not correct installed and not shown under "components"

What can I do?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-27 19:21:08
Spirit of the ocean:

- Do you have .NET v2.0 installed on your system?
- Do you have the latest version of ColumnsUI on your system?
- Have you tried redownloading singlecolumnplaylist and overwriting your existing .dll?
- Check the foobar console window, do you receive any error message regarding the inability to load this component?
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-09-27 19:32:12
Spirit of the ocean:

- Do you have .NET v2.0 installed on your system?

No just Verion 1.1
Quote
- Do you have the latest version of ColumnsUI on your system?

YES
Quote
- Have you tried redownloading singlecolumnplaylist and overwriting your existing .dll?

Yes I tried this 
Quote
- Check the foobar console window, do you receive any error message regarding the inability to load this component?


Yes you are right

So this means I need to install .Net 2.0
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-27 22:57:46
Just updated and its great 

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

I am seeing this problem now too.  It only just appeared, and I have been using the most recent version for a little while.  Also, it isn't just showing the last song, sometimes it is another song just up the list.  It might be related to the redrawing of the panel when scrolling down the list.

Edit: It seems that it occurs if the panel's vertical size is not a multiple of the row height.
Title: foo_uie_single_column_playlist
Post by: Generalverdacht on 2006-09-28 00:18:17
one simple question: do i have to rename my album art to some special way? or is there already a way like in albumart to search for different filenames?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-28 01:10:49
There is no wildcard support like in albumart, however you can use stuff like:
[%album artist% - ]%album%.jpg

So yes, you have to name your art by some system, but it's up to you what that system is as long as you can reference it with a titleformat string.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-09-28 03:36:33
Could you make it so that the context menu of the group header is the same as if the whole group is selected (rather than just using the first item in the group)?

Btw, does this plugin support the button function like trackinfo_mod?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-09-28 09:37:36
Could you make it so that the context menu of the group header is the same as if the whole group is selected (rather than just using the first item in the group)?


thats neat idea i second that.
Title: foo_uie_single_column_playlist
Post by: joule on 2006-09-28 11:30:00
Have you discussed the following possibility yet:

Only displaying the group headers and when clicking any header it expands/collapses. I.e a playlist with expandable/collapsible albums.
Title: foo_uie_single_column_playlist
Post by: Moe-loves-ayumi on 2006-09-28 13:30:14
I made a reflect below the covers :

(http://img.photobucket.com/albums/v491/moeppears/screenshots/20060928_foobar2000_4_.jpg) (http://img.photobucket.com/albums/v491/moeppears/screenshots/20060928_foobar2000_4.png)

The code is horrible because I didn't find any way to make a loop. It's slow because foobar2000 has to draw each line of the image. Add lines to $imageabs2() if your Row height is greater than 15.
Code: [Select]
// set the size of the image
$puts(image_size,150)
// refer to %_itemindex% : line to start to draw the reflect
$puts(index_start,9)
// set alpha-xxx
$puts(image_alpha,200)
// set the path of glow_album_reflet.png
// example :
// $puts(image_path,C:\Documents and Settings\USer\Application Data\foobar2000\images\glow_album_reflet.png)
$puts(image_path,)

$ifgreater(%_itemindex%,$sub($get(index_start),1),
$puts(indexsup,$sub(%_itemindex%,$sub($get(index_start),1)))
$puts(hauteursup,$sub($add($get(image_size),%_height%),$mul(%_height%,$get(indexsup))))

$ifequal($get(indexsup),1,$drawrect(-5,0,$get(image_size),1,brushcolor-235-235-235 pencolor-235-235-235),)

$imageabs2($get(image_size),$get(image_size),,$get(hauteursup),,1,,,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),1),,1,,1,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),2),,1,,2,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),3),,1,,3,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),4),,1,,4,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),5),,1,,5,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),6),,1,,6,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),7),,1,,7,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),8),,1,,8,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),9),,1,,9,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),10),,1,,10,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),11),,1,,11,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),12),,1,,12,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),13),,1,,13,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),14),,1,,14,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))
$imageabs2($get(image_size),$get(image_size),,$sub($get(hauteursup),15),,1,,15,$replace(%path%,%filename_ext%,folder.jpg), alpha-$get(image_alpha))

// glow
$imageabs2($get(image_size),$get(image_size),0,$sub($mul($sub($get(indexsup),1),%_height%),1),,,0,,$get(image_path),)
,
)

I use this image as glow_album_reflet.png :

(http://img.photobucket.com/albums/v491/moeppears/misc/20060928_foobar2000_glow_album_refl.png)
Title: foo_uie_single_column_playlist
Post by: MrEnergizer on 2006-09-28 14:57:16
Kockroach  writes  "Ideally I would like to have a single header for a group of random songs, but I don't think it is possible. So what I would like to do is to hide the headers that appear for individual songs. From what I can tell, there is no way to do that without have a "no header" option which could result in the first two lines of the "Group Display" to look like this:"

As nobody has replied to this Im not sure if this can be done.  I rarely listen to full albums and would like my singles to be displayed by Artist - Title in the playlist with no header what string do I use for this? Is it possible to have both albums and singles together properly displayed in the same playlist?
Thanks
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-09-28 15:00:14
that's insane, Moe-loves-ayumi! imho even with loops it wouldn't be much faster (only easier to code).

imho there could be some additional options for $imageabs2 to horizontally / vertically flip images. this would come handy even in case of indicators like arrows etc., you wouldn't have to have image for each direction / orientation. with gdi+, terrestrial could as well add support for arbitrary rotation, but i'm not sure it would be of much use. maybe for some sort or circular animated progress thingy ...
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-28 15:58:39
Kockroach  writes  "Ideally I would like to have a single header for a group of random songs, but I don't think it is possible. So what I would like to do is to hide the headers that appear for individual songs. From what I can tell, there is no way to do that without have a "no header" option which could result in the first two lines of the "Group Display" to look like this:"

As nobody has replied to this Im not sure if this can be done.  I rarely listen to full albums and would like my singles to be displayed by Artist - Title in the playlist with no header what string do I use for this? Is it possible to have both albums and singles together properly displayed in the same playlist?
Thanks


it's easy enough to display albums and singles in the same playlist. but because you are grouping albums by the %album% tag, this means for singles you need to remove the %album% tag altogether. if that's not viable, then you might as well stop reading now......

(http://img85.imageshack.us/img85/1847/clipboard01bc5.th.png) (http://img85.imageshack.us/img85/1847/clipboard01bc5.png)

group by
Code: [Select]
%album%


item display
Code: [Select]
$if(%tracknumber%,%tracknumber%'. ',)
$if($or($meta(album artist),$not(%tracknumber%)),%artist%' - ',)
%title%


group display
Code: [Select]
$if(%album%,
$if2(%album artist%,%artist%)' - '%album%' ''('%date%')'
,
SINGLES
)
Title: foo_uie_single_column_playlist
Post by: R2D2 on 2006-09-28 16:59:05
I am seeing this problem now too.  It only just appeared, and I have been using the most recent version for a little while.  Also, it isn't just showing the last song, sometimes it is another song just up the list.  It might be related to the redrawing of the panel when scrolling down the list.

Edit: It seems that it occurs if the panel's vertical size is not a multiple of the row height.


Actually, you're right. I tried resizing the window until its height was a multiple of 14 (my row height), and that little annoyance was gone.
Thank you.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-28 18:36:47
Thanks a bunch for the !noheader! stuff. Should be better for me to mess around with
Quick question prolly answered before - whats the basic-most code to make headers span across two lines?

EDIT: i swear i didn't see that "group rows" selection before XD
Title: foo_uie_single_column_playlist
Post by: int on 2006-09-28 20:07:50
Since updating to 0.3.2, my titles/albums have started wrapping onto the next level down (if they're too wide to fit), covering up any information i've got there. Any way to stop this from happening?


^^
Title: foo_uie_single_column_playlist
Post by: bozo950 on 2006-09-29 10:26:43
i got a question about code:
for exemple the code %path%\cover.jpg give me:
E:\Mes Documents\Ma musique\Blues Brothers\19 - Think.mp3\cover.jpg

how can i remove the 19 - Think.mp3

what's the code i should use to get this:
E:\Mes Documents\Ma musique\Blues Brothers\cover.jpg
Title: foo_uie_single_column_playlist
Post by: Frank Bicking on 2006-09-29 10:42:18
bozo950:

Code: [Select]
$replace(%path%,%filename_ext%,)cover.jpg
Title: foo_uie_single_column_playlist
Post by: bozo950 on 2006-09-29 10:48:01
thx 
Title: foo_uie_single_column_playlist
Post by: Strictly4me on 2006-09-29 11:12:01
My singleplaylist.
Thanks to all guys to inspire me for this config.

Font: Link providing illegal download of "Arial Unicode MS" font removed by moderation (necessary for playing songs blinking arrow)

Row Height: 30
Group Row:3

Group by:
Code: [Select]
%album%

Item Display:
Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-50-50-50 pencolor-null))
$padding(3,1)

$font(calibri,9,bold,210-210-210)
$if(%_isplaying%,
$select($add(1,$mod(%_time_elapsed_seconds%,2)),$rgb(255,255,255),$rgb(72,72,255)))%title% 
$font(Arial Unicode MS,9,,210-210-210)
$if(%_isplaying%,
$select($add(1,$mod(%_time_elapsed_seconds%,2)),$rgb(255,255,255)'➨',$rgb(72,72,255)'➨'))

$alignabs(3,15,%_width%,%_height%,,)
$font(calibri,8,cleartype,210-210-210)
[%length% | ]
[%bitrate% kbps]

$alignabs(-3,3,$sub(%_width%,2),%_height%,right,)
$font(Wingdings,9,glow-72-72-255 glowexpand-1,250-250-250)
$repeat(«,%rating%)

$alignabs(-3,15,$sub(%_width%,2),%_height%,right,)
$font(calibri,8,cleartype,210-210-210)
[%play_counter%x]
$if(%cwb_queueindex%, '['%cwb_queueindexes%/%cwb_queuelength%']')

Group Display:
Code: [Select]
$drawrect(0,0,0,0,brushcolor-160-160-160 pencolor-null)
$imageabs2(86,86,,,,,2,2,'default.jpg',)
$imageabs2(86,86,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

$font(Tahoma,12,glow-72-72-255 glowexpand-0,255-255-255)
$alignabs(100,2,$add(%_width%,-107),20,left,top)
$if2(%album artist%,%artist)
$alignabs(100,22,$add(%_width%,-107),20,left,top)
$upper(%album%)
$alignabs(100,44,$add(%_width%,-107),20,left,top)
$font(,10,glow-72-72-255 glowexpand-0,)'('%date%')'

Looks like so:

(http://img100.imageshack.us/img100/6849/singleplaylist1nl5.th.gif) (http://img100.imageshack.us/img100/6849/singleplaylist1nl5.gif)

((((( Strictly4me )))))
Title: foo_uie_single_column_playlist
Post by: kalmark on 2006-09-29 14:14:13
Font: Link providing illegal download of "Arial Unicode MS" font removed by moderation (necessary for playing songs blinking arrow)

I managed to substitute Arial Unicode MS with Deja Vu Sans (http://dejavu.sourceforge.net/wiki/index.php/Main_Page) for some things, it might be good for this purpose too. And it's free.
Title: foo_uie_single_column_playlist
Post by: Moe-loves-ayumi on 2006-09-29 14:23:37
Is it possible to add %_grouplength% or something like that ? It may allow to  show the length of an album in the Group Display.
Title: foo_uie_single_column_playlist
Post by: tomthomson on 2006-09-29 16:06:41
Is this a bug? :

When I'm scrolling upwards through my playlist with the keyboard cursors and there is a group header I have to go through the whole group header, i.e. through all the specified group rows.

When I'm doing the same downwards everything works fine.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-29 16:07:43
I've noticed that myself. Not sure if this is intended or a bug.
Title: foo_uie_single_column_playlist
Post by: Blitzmeister on 2006-09-29 16:42:41
Is it possible to add %_grouplength% or something like that ? It may allow to  show the length of an album in the Group Display.

I believe if your files are marked right then %totaltracks%  is your friend. But you need all your albums marked that way.
Hope that helps,
Cheers.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-29 16:47:37
If you want the number of items in a group to be displayed in the header you can use %_itemcount%. However I thought moe was trying to put the total time of the items in the header, which I do not think is currently possible

EDIT: Unless you want to go and tag all your files with something like %albumlength% or some other custom tag. The header inherits the tags of the first item in the group so if you tag track 1 of an album with a custom tag containing the album's total length, you should be able to display it in the header.  This is not a very good solution imo.
Title: foo_uie_single_column_playlist
Post by: Moe-loves-ayumi on 2006-09-29 16:52:22
I believe if your files are marked right then %totaltracks%  is your friend. But you need all your albums marked that way.
Well, %totaltracks% is not necessary because %_itemcount% return the number of items which are grouped by %album%. %_grouplength% should return the length of the group of items as a length in seconds or minutes and seconds (ex : 46:53).

However I thought moe was trying to put the total time of the items in the header, which I do not think is currently possible
Yep, so I request %_grouplength% or something like that.
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-09-30 12:53:38
I have another request to make:

Setting the line height dynamicaly, per example...

$if(%isplaying%,$lineheight(30),$lineheight(15))
Title: foo_uie_single_column_playlist
Post by: musko on 2006-09-30 15:54:35
Houston, we got a problem..

Some images wont show using imageabs2() combined with $replace(%path%,%filename_ext%,)folder.jpg as a relative path to each cover.

Ive done some testing and found that if the '#' char is in the folderpath to the actual image it wont display at all. But if change # to something else it works..

wtf?? 
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-30 17:55:24
Even the latest versions still crash when double-clicking on anywhere that isnt an item\header. It really shouldn't take foobar down.

For example, make a new playlist and put one song into it. click anywhere in the playlist outside of that song's item rectangle.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-09-30 17:59:53
Even the latest versions still crash when double-clicking on anywhere that isnt an item\header. It really shouldn't take foobar down.

For example, make a new playlist and put one song into it. click anywhere in the playlist outside of that song's item rectangle.

Yep, I can confirm it on my end too.  Also, when I do this, ZoneAlarm says that foobar2000.exe is trying to access dwwin.exe (error reporting), but does not produce a failure.txt file in the fb2k directory.
Title: foo_uie_single_column_playlist
Post by: cacko on 2006-09-30 18:25:27
Hi,

can foo_uie_single_column_playlist use album art from matroska file (like in the foo_uie_albumart_mka -> matroska:front.jpg) ?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-30 18:44:36
i don't think it reads images from tags.. might be wrong.
Title: foo_uie_single_column_playlist
Post by: bagj629 on 2006-09-30 18:48:08
Does anyone know what I should add to this code in order to have Foobar ignore a song's tags.  I want Foobar to ignore all tags on my "Single Tracks -s-" folder.  Here's the code im using now along with foo_cwb_hooks:
Code: [Select]
$if($strchr(%playlist_name%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


So far this code has been great with removing headers from my Single Tracks -s- folder, but I really want it to ignore the songs' tags too.  Thanks for the help!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-30 19:45:17
What do you mean by "ignore the song's tags" ?
Title: foo_uie_single_column_playlist
Post by: bagj629 on 2006-09-30 19:50:41
Sorry if I'm confusing.  If the song is labeled as a single, I don't want the song's tag displayed, I just want the filename shown.  Does that make any sense?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-30 20:05:50
That would be done from your item display box. Something like:

Code: [Select]
$if(%tracknumber%,
%tracknumber%. [%artist% - ]%title%
,
%filename_ext%
)


But it all really depends on (1) How do you "label a song as a single" and (2) What other code do you use in the item display box.
Title: foo_uie_single_column_playlist
Post by: bagj629 on 2006-09-30 20:21:04
Well I'm using foo_cwb_hooks and the folder which all my single tracks are located in is called "Single Tracks -s-".  Using that along with the code from my earlier post, the headers are removed from songs in the "Single Tracks -s-" folder.

This is the code being used in my Item Display Box:
Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-231-235-239 pencolor-null))
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$padding(6,0)
$font(calibri bold,9,,120-120-120)[$num(%tracknumber%,2)'. ']
$font(calibri bold,9,$if(%isplaying%,underline,),120-120-120)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')
$alignabs(6,13,%_width%,%_height%,,)
$font(CubicFive10,6,nocleartype,170-170-170)
[%length% | ]
[%bitrate% kbps]
$align(right,bottom)['('%comment%')']
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-09-30 20:47:42
i got a question about code:
for exemple the code %path%\cover.jpg give me:
E:\Mes Documents\Ma musique\Blues Brothers\19 - Think.mp3\cover.jpg

how can i remove the 19 - Think.mp3

what's the code i should use to get this:
E:\Mes Documents\Ma musique\Blues Brothers\cover.jpg


If you have all your music in "Ma musique" folder the try this code:
E:\Mes documents\Ma musique\%artist%\cover.jpg
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-30 21:00:30
bagj629:
You need to add an $if() statement to switch between different text display layouts based on wether or not the track is a single. Something like this:

Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-231-235-239 pencolor-null))
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$padding(6,0)
$if(%tracknumber%,
$font(calibri bold,9,,120-120-120)[$num(%tracknumber%,2)'. ']
$font(calibri bold,9,$if(%isplaying%,underline,),120-120-120)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')
$alignabs(6,13,%_width%,%_height%,,)
$font(CubicFive10,6,nocleartype,170-170-170)
[%length% | ]
[%bitrate% kbps]
$align(right,bottom)['('%comment%')']
,
%filename_ext%
)


In this example I used %tracknumber% to determine if the track is the single, if you something else like $strstr(%directoryname%,-s-) then you'll need to change line 5
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-09-30 21:21:28
Is there anyway to display in the header "various artist" when having multiple artists all under the same abum, like in a soundtrack for example?  For me it shows as the name of the album but dispays the first artist name only.
Title: foo_uie_single_column_playlist
Post by: Raan on 2006-09-30 21:34:33
Is there anyway to display in the header "various artist" when having multiple artists all under the same abum, like in a soundtrack for example?  For me it shows as the name of the album but dispays the first artist name only.

Well, you could make it easy on yourself and just mark those albums with a tag and then check for that tag in the "Group by" section. 
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-09-30 21:36:28
I have %album artist% tagged to 'Various Artists' in those. Normal albums only have %artist%, but %album artist% resolves to that anyway.
Title: foo_uie_single_column_playlist
Post by: BlindSeer on 2006-09-30 22:04:49
This component is shaping up nicely. However, I'd love to be able to resize images to larger dimensions, not just smaller.
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-30 22:43:45
Is there anyway to display in the header "various artist" when having multiple artists all under the same abum, like in a soundtrack for example?  For me it shows as the name of the album but dispays the first artist name only.


as chaosblade mentioned, you need to tag your va albums with the %album artist% tag. then you can display headers like this.....

group display
Code: [Select]
$if2(%album artist%,%artist%)


because you have multiple artists you might want to show each one in the item display?

item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


it should look something like this

(http://img242.imageshack.us/img242/4057/clipboard01tq2.png)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-30 22:51:16
group display
Code: [Select]
$if2(%album artist%,%artist%)


item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


Foobar automatically maps %artist% onto any missing %album artist%. So you can simplify the first code to:
Code: [Select]
%album artist%


Going further with that concept, if you want to specifically test for wether or not a file has an album artist tag you should use $meta(album artist). So for the second code you might want something more like this:

Code: [Select]
$if($meta(album artist),[%artist% - ],)%title%
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-09-30 23:18:44
yup your post makes more sense than mine.....

but if

Foobar automatically maps %artist% onto any missing %album artist%.

by rights my code should also display the artist when the %album artist% tag does not exist as i'm not meta testing?

edit: yet again i'm posting before engaging my brain...  i did actually use $meta in my original code

thanks yotsuya for clearing things up for me.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-09-30 23:30:15
if %artist% exists, %album artist% will exist. So $if(%album artist%,%artist%' - ',) is somewhat redundant and can be simplified to [%artist% - ]. The only exception being if a song has an album artist tag but no artist tag. In which case your code would display a '? - ' while the simplified version would not.
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-09-30 23:45:44
@ChaosBladE,  marc2003, Yotsuya

Thanx, its all good now
Title: foo_uie_single_column_playlist
Post by: maziu on 2006-09-30 23:47:51
item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


%album artist% returns %artist% even if the Album Artist tag is not set.  This should get around that:
Code: [Select]
$if($meta(Album Artist),%artist% - )


Crapy, Yotsuya beat me to it.
Title: foo_uie_single_column_playlist
Post by: cristina on 2006-10-01 03:18:29
hi. I borrowed Ceciperez's code (thanks a lot for sharing, btw), and added a line another member said, to make it show album art properly. like this:

Code: [Select]
$imageabs(9,$if($strcmp(%tracknumber%,01),0,$add(24,$mul(-24,%tracknumber%))),simple\albumborder.png,)
$imageabs(10,$if($strcmp(%tracknumber%,01),1,$add(25,$mul(-24,%tracknumber%))),$replace($replace(cover\%artist% - %album%.png,',',),?,),)
$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,[%album artist% - %album%]_front.jpg),)


I have every album cover inside the album folder, named like this: artist - album_front.jpg ( pulp - different class_front.jpg, for example). But some images are not named exactly the same way as the album, comas missing, or whatever, so they don' show. How can I make it show any image named *_front.jpg that is inside the album folder? I tried writing that in the code, but it don't work.

I'm sure this is easy and I feel dumb asking. help this newbe please    thanks
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-10-01 05:13:08
hi. I borrowed Ceciperez's code (thanks a lot for sharing, btw), and added a line another member said, to make it show album art properly. like this:

Code: [Select]
$imageabs(9,$if($strcmp(%tracknumber%,01),0,$add(24,$mul(-24,%tracknumber%))),simple\albumborder.png,)
$imageabs(10,$if($strcmp(%tracknumber%,01),1,$add(25,$mul(-24,%tracknumber%))),$replace($replace(cover\%artist% - %album%.png,',',),?,),)
$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,[%album artist% - %album%]_front.jpg),)

I have every album cover inside the album folder, named like this: artist - album_front.jpg ( pulp - different class_front.jpg, for example). But some images are not named exactly the same way as the album, comas missing, or whatever, so they don' show. How can I make it show any image named *_front.jpg that is inside the album folder? I tried writing that in the code, but it don't work.

I'm sure this is easy and I feel dumb asking. help this newbe please    thanks


Try this code:
$imageabs2(80,80,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,10,,$replace($replace($replace(%path%,%filename_ext%,%artist% - %album%_front.png),',',),?,),)

Sorry, this is the code (tested and jpg format)
$imageabs2(80,80,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,11,-3,$replace($replace($replace(%path%,%filename_ext%,%artist% - %album%_front.jpg),',',),?,),)
Title: foo_uie_single_column_playlist
Post by: cristina on 2006-10-01 05:33:46
hey thanks a lot for the reply.. you tested it and it's working? Cause here it doesn't  None of the covers are displaying now...but thanks for taking the time to try it

Pd. no seras de cataluña no? ese avatar y ese nombre...
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-10-01 07:23:31
hey thanks a lot for the reply.. you tested it and it's working? Cause here it doesn't  None of the covers are displaying now...but thanks for taking the time to try it

Pd. no seras de cataluña no? ese avatar y ese nombre...


I test it and it works, but your covers must be ARTIST - ALBUM_front.jpg
Check the spelling of the artist or the album name.
The code ignores the comas and the "?" symbols in the names.

PS: Soy de Argentina, si queres preguntame en Mensaje Privado, pero no creas que soy experto.
Title: foo_uie_single_column_playlist
Post by: Sam Stoat on 2006-10-01 11:50:43
Is there a way to check if a file exists?

I want to use $imageabs2 to display a 'No Cover' image if there's no album cover in the album's folder.  I've tried overlaying the album art on top of the 'No Cover' image, which works great for normal sized covers, but not for tall or wide images.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-10-01 15:09:28
Is there a way to check if a file exists?

I want to use $imageabs2 to display a 'No Cover' image if there's no album cover in the album's folder.  I've tried overlaying the album art on top of the 'No Cover' image, which works great for normal sized covers, but not for tall or wide images.


I second this feature request... 
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-10-01 16:50:50
Is there a way to check if a file exists?

maybe album art panel could provide service to feed album art file names ... as i don't want to see duplicit features here and there ...

however text file feed to track info, for example, would be nice.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-01 19:35:06
How are they duplicate features if they are entirely different components from different authors?
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-10-01 20:59:40
How are they duplicate features if they are entirely different components from different authors?


Good point...
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-10-01 21:42:14
How are they duplicate features if they are entirely different components from different authors?

i just can't pass on adding almost complete subset of album art panel features to another plugin. it's a lot of work, issues to come etc. plugins with interesting features which could be handy to use in other plugins, should provide services / api instead.
Title: foo_uie_single_column_playlist
Post by: Sam Stoat on 2006-10-02 00:45:07
i just can't pass on adding almost complete subset of album art panel features to another plugin. it's a lot of work, issues to come etc. plugins with interesting features which could be handy to use in other plugins, should provide services / api instead.
Why is it a subset of Album Art panel?  My question was about detecting the existence of any files, not only album art pics.

As well as detecting album art, it could be used to detect if a fps or m3u playlist exists for the current album, or, if your tracks' filenames contain the tracknumber, to see if all tracks in an album are present.  For those who share their setups, it could even be used to check for a needed plugin and display a message if it's missing.

I can understand why it might not belong as part of Single Column Playlist.  It would be a handy command in ColumnsUI, Album Info Panel, or even Album Art panel.  As a collection of new commands, maybe foo_cwb_hooks would be a better place for it.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-02 03:38:32
Could we please have support for buttons like in the trackinfo mod? It'd be awesome to set ratings in the playlist like in wmp or itunes.
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-02 04:24:00
(http://img242.imageshack.us/img242/4057/clipboard01tq2.png)

Would you mind showing me how you put the album art in the group section please? I've had a look through the thread but couldn't find anything about it. Thanks!
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-10-02 04:56:04

(http://img242.imageshack.us/img242/4057/clipboard01tq2.png)

Would you mind showing me how you put the album art in the group section please? I've had a look through the thread but couldn't find anything about it. Thanks!



Use this code in Group Dysplay:

$imageabs(0,0,covers\%artist% - %album%.png,)

Replace the source of the covers if it doesn't work.
And change "Group rows" to 6 (or the height that you want).
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-02 05:43:40
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

(http://img95.imageshack.us/img95/9093/foobarchopfe6.png)

Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-02 10:21:24
how do I have my tracks with alternating bg colours?
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-02 11:43:08
Give this a try. Put it in the item display box:
Code: [Select]
$if($stricmp($mod(%_playlist_number%,2),1),$drawrect(0,0,0,0,brushcolor-245-245-245 pencolor-null),$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null))
Title: foo_uie_single_column_playlist
Post by: sitemap on 2006-10-02 12:47:59
I would like to have a frame bottom, just like in columns UI; e.g. I am searching for the equivalent to this:
$set_style(frame-bottom,1,$rgb(230,228,229))

Thanks
Title: foo_uie_single_column_playlist
Post by: maziu on 2006-10-02 13:11:31
I would like to have a frame bottom, just like in columns UI; e.g. I am searching for the equivalent to this:
$set_style(frame-bottom,1,$rgb(230,228,229))

Thanks


This is much more "raw" then ColumnsUI.  Short of having these sort of specialized things like frames, you just draw rectangles where you want things.  Want a frame at the bottom?  Just draw a 1 pixel high rectangle across the bottom.

$drawrect(,$sub(%_height%,1),,,brushcolor-230-228-229 pencolor-null)
Title: foo_uie_single_column_playlist
Post by: sitemap on 2006-10-02 15:24:36
Great. Thanks for answering
Title: foo_uie_single_column_playlist
Post by: avish on 2006-10-02 15:54:43
Hi, i want to switch from Columns-UI to the single column playlist but im having a problem with using it within playlist tabs 

This is how my setup looks with columns-UI:

[a href="http://server6.theimagehosting.com/image.php?img=foobar-columnsui.jpg" target="_blank"]

layout:
[a href="http://server6.theimagehosting.com/image.php?img=foobar-layout.jpg" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-10-02 20:58:12
Why does $font() always return true? Shouldn't it always return false like $rgb() does, otherwise
Code: [Select]
[$font(,10,,)%artist%]
&
Code: [Select]
$if3($font(,10,,)$meta(album artist),%artist%)

break!
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-02 21:08:23
Display and logic should always be separated. Display functions shouldn't really be used in logical $if tests.
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-10-02 21:12:05
But that just defeats the point of having [] and $if3 in the first place.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-02 21:32:40
As ChaosBladE indicated it is generally good form to keep display code and logic code spearated. There are several ways to restructure your code to accomplish what you are attempting.

Code: [Select]
$font(,10,,)[%artist%]$font()

-or-
Code: [Select]
$if(%artist%,$font(,10,,)%artist%,)


&

Code: [Select]
$if($meta(album artist),$font(,10,,),)%album artist%


Yes sometimes I think it would be nice if all passive strings such as $font, $rgb, etc would return as false because it lets you do some quick tricks with code, a strong argument can be made that $if($font()) should logically test if the $font() function returns anything at all .. which it does, the font. In fact I would like to be able to use $if($font(fontname,,,),) to test if a font is installed.

Code doesn't always perform the way we expect it to, every language has it's little quirks.  There is usually more than one way to code something, you should keep alternative approaches in mind whenever coding anything.
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-10-02 21:52:21
I would of thought that it would be slightly more consistent compared to the default functions. Considering that $font is a display function it shouldn't really affect an $if statements anyway. To test for an installed font wouldn't a $isinstalled(fontname) be more appropriate?
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-10-02 22:06:04
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

(http://img95.imageshack.us/img95/9093/foobarchopfe6.png)

Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.



Change the size of the cover (110,110) to 100,100. Or set the Group rows to 1 more.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-10-02 22:26:41
For image source, is there any chance of using * as a wildcard? A lot of my album images are just in the directory of the album, with no specific filename.

An "if image exists" tag would also be helpful, I don't want to draw image borders if there is no image.

Also a "refresh" on command would be nice, for instance when a tag is updated.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-03 03:20:24
ok thanks guys for helping me get my alternating line colours working...

now how come whenever I put my mouse over a track and click it it doesnt highlight like in columns.. - now I know its something to do with my code but what are the basic setups for when a song is playing - when it is highlighted etc...

thanks again for all your useful help

also when i set the number of rows to 2 for the group... how do i put stuff on the second row..?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-03 03:37:57
4nt1:

To color the currently selected item you can use %_selected% like this:
$if(%_selected%,$imageabs($if($get(album_mode),115,0),-10,images\glass.png,))

To color the currently playing item you can use %isplaying% like this:
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)

You can either use an $imageabs() function to overlay a transparency effect like I did in the first example or use $drawrect() to color the row like I did in the second example. Just place the code toward the top of your Item Display code.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-03 03:57:00
wow thanks for the quick feedback works like a charm

I ended up just drawing a rect around the now playing..
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-03 05:46:33
Hi, i want to switch from Columns-UI to the single column playlist but im having a problem with using it within playlist tabs 

This is how my setup looks with columns-UI:

[a href="http://server6.theimagehosting.com/image.php?img=foobar-columnsui.jpg" target="_blank"]

layout:
[a href="http://server6.theimagehosting.com/image.php?img=foobar-layout.jpg" target="_blank"]


Weird problem.

Only way I found a way so you can resize it is doing the following:
Code: [Select]
Horizontal splitter
   |__Vertical splitter
          |__playlist tabs
          |__single column playlist view

Please note that single column playlist  view is put under the vertical splitter, not the Playlist tabs. To resize it, you must use the vertical splitter, which is above the playlist tabs. It visually should look the same, as it did on my display.

Hope that helps.
Title: foo_uie_single_column_playlist
Post by: avish on 2006-10-03 10:12:37
@vonmeth: Thank you! it works! now i can finally mess around with this awesome component 
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-10-03 10:38:33
A "refresh" in the context menu would be nice
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-03 12:17:01

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

(http://img95.imageshack.us/img95/9093/foobarchopfe6.png)

Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.


Change the size of the cover (110,110) to 100,100. Or set the Group rows to 1 more.


Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
(http://img147.imageshack.us/img147/3655/foobarcutorbitaloa3.png)

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-10-03 16:16:40
A function I would like imageabs2 to do is stretch images to a desired height, width or aspect ratio.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-03 16:17:54
A function I would like imageabs2 to do is stretch images to a desired height, width or aspect ratio.

Basically do what the Album Art panel does....I agree.  That would be very nice to have.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-03 18:10:54
Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
(http://img147.imageshack.us/img147/3655/foobarcutorbitaloa3.png)

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


Could you give us your whole Group Display coding? Something else might be interrupting it.
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-03 18:57:55
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

(http://img95.imageshack.us/img95/9093/foobarchopfe6.png)

Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.


I have this problem aswell and adjusting the row height only makes the headers larger but does not shot the bottom of the image. My problem however is with the overlay image like the cd case and not the album art.


I agree completly with others that being able to adjust the aspect ratio as I see fit would be great
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-10-03 20:33:02
TERRESTIAL

Could you mod Browser as well, to allow us to input code in browser panels as well? I'd like to have the album art next to the albums I have in Browser mode, same goes for artists (although finding pictures for 500+ artists is a little bit extreme), it would truely rock the globe, imo.

Album list might be even more popular, so you might want to start with that. The display code you made/used is just too fantastic to ignore.

You're the new musicmusic!
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-03 20:39:51
I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-03 20:44:02
Is there any reason why imageabs2 seemingly randomly sizes my covers? Plus, using these heights / widths don't work

Code: [Select]
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,cover.jpg),)

Changing 75 to 80 works. Any ideas?
Title: foo_uie_single_column_playlist
Post by: lhaymehr on 2006-10-04 00:00:03
Nice component, pretty slow though :\
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-04 00:21:55
If you use cwb_hooks, turn off the "Notify other components of variable changes" option in the preferences.  That speeds it up for me.
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-04 00:40:50

Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
(http://img147.imageshack.us/img147/3655/foobarcutorbitaloa3.png)

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?

Could you give us your whole Group Display coding? Something else might be interrupting it.

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

$alignabs(120,8,%_width%,%_height%,,)
$font(tahoma,9,bold,)$abbr($if2(%album artist%,%artist%),80)$char(10)
$font(tahoma,9,bold,62-128-223)$abbr(%album%,80)$char(10)
$font(tahoma,6,bold,62-128-223)__________________________________$char(10)$char(10)
$font(tahoma,8,bold,0-0-0)Year: $font(tahoma,8,,)%date%$char(10)
$font(tahoma,8,bold,)Genre: $font(tahoma,8,,)%genre%$char(10)
$font(tahoma,8,bold,)Format: $font(tahoma,8,,)$if($stricmp(%codec%,'ATSC A/52'),dolby digital,$lower(%codec%))', '%bitrate% kbps', '$if($stricmp(%samplerate%,'44100'),'44.1 kHz',$if($stricmp(%samplerate%,'48000'),'48 kHz',%samplerate% Hz))', '$if($stricmp(%channels%,'6ch'),'5.1 surround',%channels%)$char(10)
$font(tahoma,8,bold,)Album Gain: $font(tahoma,8,,)$if2(%__replaygain_album_gain%,none)$char(10)

Edit:
I tried the group display with just the $imageabs2 line by itself and still get the same problem
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-04 01:19:09



Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):
(http://img147.imageshack.us/img147/3655/foobarcutorbitaloa3.png)

I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


Could you give us your whole Group Display coding? Something else might be interrupting it.


Edit:
I tried the group display with just the $imageabs2 line by itself and still get the same problem


$imageabs2(85,85,,,100,100,10,5,$replace(%path%,%filename_ext%,)test.png,)

Where the 100's are, put a large number. It should then work.

Edit:

Quote
I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?


It works just as before. You will not visually see the selecting of the items unless you define %_selected% with an $if statement.

Edit: Fixed grammar errors
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-04 02:06:09
Quote

I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?


You still works. If visually will not see yourself selecting them all unless you define %_selected% with an $if statement.


Its not the seeing it that i'm having problems with. When i just do it then select the properties or file info just as i did with colums ui it only shows the properties of the last song.

I've added this
Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-128-128-255 pencolor-128-128-128))

at the end to test what your saying and it only highlights one song. I want to be able to edit multiple tracks within a playlist but not all. How do I do that?
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-04 02:43:58
I'm having a problem myself.

For some odd reason, it keeps going to the next line prematurely,
even when it has enough room to display the whole of text.

Code: [Select]
$drawrect(,,,,brushcolor-255-255-255 pencolor-255-255-255)

$padding(10,5)
$imageabs2(85,85,,,,,10,5,$replace(%path%,%filename_ext%,)folder.jpg,)

$padding(90,-5)
$font(calibri,11,bold,)
$puts(ar_w,$calcwidth(%artist%))
$drawrect(,19,$get(ar_w),1,brushcolor-100-100-100 pencolor-null)

$font(calibri,10,bold,0-0-0)[%artist%]$char(10)
$font(calibri,8,bold,0-0-0)[%album%]
$font(calibri,7,,100-100-100)  %_itemcount% tracks

$font(calibri,7,,0-0-0)$char(10)[%date%]

$font(calibri,7,,0-0-0)$char(10)[%genre%]





(http://img206.imageshack.us/my.php?image=whatyu3.jpg)
I've added this
Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-128-128-255 pencolor-128-128-128))

at the end to test what your saying and it only highlights one song. I want to be able to edit multiple tracks within a playlist but not all. How do I do that?


Ah don't mind my English above ... havn't had a cig in three days and it is making head go crazy.

I meant, you can still select multiple tracks, but if you do not define it, you will not be able to visually see what you are selecting.

It should let you select mutliple ones, the same way you select multiple items in Windows or with Columns UI (or was there a different way?); i.e. by holding shift and/or ctrl. After selecting, right click on any of the tracks and go to properties.

If it not allowing you do this, I have no idea what the problem is. Here is a picture of me selecting different items, with the properties window open.

[a href="http://img213.imageshack.us/my.php?image=selectrh8.jpg" target="_blank"](http://img213.imageshack.us/img213/5562/selectrh8.th.jpg)[/url]
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-04 02:56:13
Ah don't mind my English above ... havn't had a cig in three days and it is making head go crazy.

I meant, you can still select multiple tracks, but if you do not define it, you will not be able to visually see what you are selecting.

It should let you select mutliple ones, the same way you select multiple items in Windows or with Columns UI (or was there a different way?); i.e. by holding shift and/or ctrl. After selecting, right click on any of the tracks and go to properties.

If it not allowing you do this, I have no idea what the problem is. Here is a picture of me selecting different items, with the properties window open.


ahhhhhhhhh. crtl+shft makes it work but with columns ui i never had to do that.

Thank You
Title: foo_uie_single_column_playlist
Post by: fraganator on 2006-10-04 09:27:23
$imageabs2(85,85,,,100,100,10,5,$replace(%path%,%filename_ext%,)test.png,)

Where the 100's are, put a large number. It should then work.

Thanks, that seems to have done the trick.

This plugin really is shaping up very nicely. Well done terrestrial, keep up the great work!
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-10-04 10:43:05
I have this weird bug when I start foobar, it display whatever is behind Foobar at this moment (here, my IRC client): http://omoikane.minstrum.net/foobug.jpg (http://omoikane.minstrum.net/foobug.jpg)
If I edit Item Display without changing anything it comes back to normal 
Title: foo_uie_single_column_playlist
Post by: lhaymehr on 2006-10-04 13:22:06
And annother thing. If the playlist is longer than the foobar window, and a vertical scrollbar appears in the playlist, annother item is added to the playlist which usually contains data from a random item in the playlist. Double clicking that item will crash foobar.

Screenshot attached. See the very bottom of the picture. You'll notice a duplicate item. Double clicking it crashes foobar with an access violation.

(and please dont mind the look of the foobar, i've just started playing with this plugin and looking how it appears on different themes

http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png (http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png)
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-10-04 13:46:14
while we're on the "bugs" topic:

- I set my "group rows" to 0 but every time I open the settings it comes back to 1

- using quicksearch toolbar with focus on search results, my rows are replaced by "NEIN", i have to look at another playlist and come back to the search results to see them: http://omoikane.minstrum.net/foobug2.png (http://omoikane.minstrum.net/foobug2.png)
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-04 15:28:40
And annother thing. If the playlist is longer than the foobar window, and a vertical scrollbar appears in the playlist, annother item is added to the playlist which usually contains data from a random item in the playlist. Double clicking that item will crash foobar.

Screenshot attached. See the very bottom of the picture. You'll notice a duplicate item. Double clicking it crashes foobar with an access violation.

(and please dont mind the look of the foobar, i've just started playing with this plugin and looking how it appears on different themes

http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png (http://free-zg.t-com.hr/lhaymehr/STORAGE/MISC/fb001err.png)

That problem was brought up a few posts back.  I found that the height of the entire palylist panel needs to be a multiple of the row height to not have this occur.
Title: foo_uie_single_column_playlist
Post by: Crayon on 2006-10-04 15:32:40
yup, i get the same bugs as draiken, my list is replaced with NEIN when i use with quick search toolbar
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-10-04 17:50:29
The wiki needs updating, sadly I don't have the time to do it at the moment
Title: foo_uie_single_column_playlist
Post by: hyd on 2006-10-04 19:27:22
I apologize for the rookie question, but I've just installed the plugin and my playlist looks quite unappealing regardless of what .fcs config I'm trying to load:

(http://hyd.org/fb2k/main-s.png) (http://hyd.org/fb2k/main.png)

The relevant (?) config settings are as shown here (http://hyd.org/fb2k/).

Running latest versions of both columns_ui and fb2k.

Appreciate all feedback, thanks!
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-04 19:41:37
while we're on the "bugs" topic:

- I set my "group rows" to 0 but every time I open the settings it comes back to 1

- using quicksearch toolbar with focus on search results, my rows are replaced by "NEIN", i have to look at another playlist and come back to the search results to see them: http://omoikane.minstrum.net/foobug2.png (http://omoikane.minstrum.net/foobug2.png)


Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)


I apologize for the rookie question, but I've just installed the plugin and my playlist looks quite unappealing regardless of what .fcs config I'm trying to load:

(http://hyd.org/fb2k/main-s.png) (http://hyd.org/fb2k/main.png)

The relevant (?) config settings are as shown here (http://hyd.org/fb2k/).

Running latest versions of both columns_ui and fb2k.

Appreciate all feedback, thanks!


Right click on the playlist,  and click on settings.

Single Column does not use a fcs file. Read the topic or look at the appearence thread (the last several pages) for coding to put in.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-10-04 21:54:07
feature request summary from me to terrestial... hope he will see

1) pls make it so that if i rclick group header the whole group is selected

2) pls implement some boolean function like "$ispresent" or "$exist" or i dont know to make codes like this possible
if($exist(folder.jpg),imageabs(folder.jpg),imageabs(nocover.jpg))

3) pls look on "there is part of playlist at the bottom which is wierd and when i click it the whole foobar crashes" bug

4)would it be possible to implement some sort of refresh image option?... images are loaded almost perfectly when foobar is restarted but if you experiment with code its a bit slow to restart everytime you change something to see if it works

5) i sometime use code like this
Code: [Select]
$imageabs2(84,84,0,0,84,84,5,3,'images\artoverlay.png',)

is imageabs2 suppose to work with relative path? i guess it isnt but it works and thats great. could you look at this and if its unintended feature just look at code if everything works fine?

And once more Thanks for component which makes undreamed things possible.
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-10-04 22:17:06
Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)

I use %_itemcount% to display (or not) my album covers.
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-10-04 22:54:04
I still have a problem withe the last version of this plugin. I cant manage to figure a way to delete a song from a playlist. I tried middle mouse button, del or backspace, nothing works.

help please

Thanks for that plugin by the way, it is awesome
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-04 22:56:40
I still have a problem withe the last version of this plugin. I cant manage to figure a way to delete a song from a playlist. I tried middle mouse button, del or backspace, nothing works.

help please

Thanks for that plugin by the way, it is awesome


delete key works for me..... 
Title: foo_uie_single_column_playlist
Post by: unabatedshagie on 2006-10-04 23:05:09
Thats strange, no keyboard shortcuts work for me using this plugin.

I have to use the context menu for everything.

It's one of the few things thats stopping me using this plugin just now.
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-10-04 23:24:34
a recent version added keyboard shortcuts. Make sure you have the latest one
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-04 23:57:16
I just made a button to do edit->selection->remove, works great
Title: foo_uie_single_column_playlist
Post by: Deathshroud on 2006-10-05 00:30:30
So, I've downloaded 0.9.4 and I can't seem to get this mod working.  I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen.  Am I missing something?
Title: foo_uie_single_column_playlist
Post by: Valaire on 2006-10-05 00:39:47
So, I've downloaded 0.9.4 and I can't seem to get this mod working.  I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen.  Am I missing something?


You need to have Columns UI installed.  That is the user interface.  Single column playlist is a panel for columns UI, it does not replace it.
Title: foo_uie_single_column_playlist
Post by: Deathshroud on 2006-10-05 00:43:41

So, I've downloaded 0.9.4 and I can't seem to get this mod working.  I've downloaded and extracted it into the components folder, and when I go to Preferences and try to change the interface, only default user interface is there to be chosen.  Am I missing something?


You need to have Columns UI installed.  That is the user interface.  Single column playlist is a panel for columns UI, it does not replace it.


Thats funny because I have Columns UI installed, but it won't let me select that as a UI either.  Something isn't right...

EDIT:  I got it figured out. thanks for the help
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-05 03:04:00
Here's an idea I'd like to throw out there, I think it would consolidate several feature requests:

I would like to request a simple $image() function for displaying an image without absolute positioning. I would also like to see this function work with $calcwidth() and $calcheight() to return the width or height of the image. This could be very useful in developing code to compensate for images with different aspect ratios. It would be even more amazing if $calcwidth($image(image.jpg)) would return a 0 if image.jpg does not exist, allowing for better development of "no-cover" code.
Title: foo_uie_single_column_playlist
Post by: Seven-eleven on 2006-10-05 03:54:26
is there any way I could make it display the first image it found on the designated location ? (without specifying file name e.g. folder.jpg/png)
I tried this  $imageabs2(84,84,,,,,5,3,$replace(%path%,%filename_ext%,*),)
just doesn't work
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-05 03:58:24
This component does not currently support wildcard matches for filenames.
Title: foo_uie_single_column_playlist
Post by: unabatedshagie on 2006-10-05 07:38:19
a recent version added keyboard shortcuts. Make sure you have the latest one
Thats strange, I'm usually quite anal about updating my components. Updating it fixed the problem. Thanks.
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-10-05 07:55:38
I dont really understand because i updated it yesterday and still no keyboard shortcuts for me. I ll try again tonight.
Yet i think it would be really cool if we could have a option to activate the middle mouse button delete feature.

Thanks
Title: foo_uie_single_column_playlist
Post by: DarkWeaver on 2006-10-05 12:04:09

Er, why do you want group rows to be 0? If you simply do not want a header, use !noheader! (I believe that is the syntax)

I use %_itemcount% to display (or not) my album covers.

Just out of interest, does item count work just like %totaltracks% (for correctly tagged albums of course), and give just the number of tracks per album, or is it per group? Sorry, I would test this in fb, but I'm at work atm.
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-10-05 12:13:06
It gives the number of items per group.
Title: foo_uie_single_column_playlist
Post by: toology on 2006-10-05 12:19:01
Is the artwork display wildcard(*.jpg) planned for future releases?
Title: foo_uie_single_column_playlist
Post by: DarkWeaver on 2006-10-05 12:49:52
It gives the number of items per group.

OK, thanks.
Title: foo_uie_single_column_playlist
Post by: callisto on 2006-10-05 14:38:25
Is the artwork display wildcard(*.jpg) planned for future releases?

I hope so... I would like to see this feature very much, too!
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-05 16:07:20
Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)
Title: foo_uie_single_column_playlist
Post by: tomthomson on 2006-10-05 16:47:57
Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)

also searching for such a function since $cut only cuts of characters and is very general.
For example:
Ten characters of M are not as long as 10 characters of I
MMMMMMMMMM
IIIIIIIIII
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-05 17:00:06

Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)

also searching for such a function since $cut only cuts of characters and is very general.
For example:
Ten characters of M are not as long as 10 characters of I
MMMMMMMMMM
IIIIIIIIII


tornthomson: At the moment, I would just use a font that has the same width for every character. I know Lucida Console is one such font.

joule: At the moment, it does not truncate the string, but carries it over to the next line.
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-05 17:19:40
joule: At the moment, it does not truncate the string, but carries it over to the next line.


Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.
Title: foo_uie_single_column_playlist
Post by: Moe-loves-ayumi on 2006-10-05 18:37:52
Can I specify the maximum width in pixels that a string can display, before it cuts and ends with "..."? (i guess there's a better terminology for this)
I use this in foo_uie_trackinfo_mod :
Code: [Select]
$ifgreater($calcwidth(%artist% - %title%),750,
$rgb(32,64,128)$cut(%artist%$rgb() - $rgb(255,128,0)%title%,55)'...'
,
$rgb(32,64,128)%artist%$rgb() - $rgb(255,128,0)%title%
)
or without colors :
Code: [Select]
$ifgreater($calcwidth(%artist% - %title%),750,
$cut(%artist% - %title%,55)'...'
,
%artist% - %title%
)
It should work in foo_uie_single_column_playlist. Change the values and see how it reacts.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-10-05 19:33:51
Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.

Use alignabs and make the text box the width you want and the height the height of text. This will show the last whole word that fits.
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-05 20:19:43

Can I limit the width of the text in any way? I guess I could draw a right aligned rectangle over the text where i don't want the text to be displayed, but maybe there's a better way.

Use alignabs and make the text box the width you want and the height the height of text. This will show the last whole word that fits.


Thanks! That was what alignabs was for.. I'll settle with that easy solution even though it doesn't provide the three dots after truncation.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-05 23:24:26
Just wondering, is there a way to use alignabs but instead of having it cut off whole words, just have the text get cut off wherever it is. Maybe there could be an option to cut off the last letter instead of word. I need this so I can have a very thin playlist where long words in titles won't just disappear (instead just part of them would be shown).
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-06 00:43:53
Just wondering, is there a way to use alignabs but instead of having it cut off whole words, just have the text get cut off wherever it is. Maybe there could be an option to cut off the last letter instead of word. I need this so I can have a very thin playlist where long words in titles won't just disappear (instead just part of them would be shown).


Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-06 04:19:01
Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-06 06:37:02
Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-06 11:51:47
I think I decided to replace my columns ui playlist by this one.

Two questions:

a) can I use columns_ui global variables? After a first test it doesn't seem so.
b) how can I easily convert a $hsl output to r-g-b syntax? (I admit I'm lazy)
c) How can I dynamically (via code) change the background color of unselected tracks?

Thanks in advance.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-06 13:12:36
a) can I use columns_ui global variables? After a first test it doesn't seem so.

I thought it was added to this plugin, but the $get_global() function isn't working for me either.  It is working for me in the trackinfo_mod, however

c) How can I dynamically (via code) change the background color of unselected tracks?


I use something similar to this, but without the $not() surrounding the %_selected% function.  I think that this should work.
Code: [Select]
$if($and($not(%_selected%),$not(%_isplaying%)),...)
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 15:22:08
okay from now on ill post in the relative thread, but how do i set up the relative path for the imageabs2?

i have my music set up differently, all my music is in one folder, and i have all my album art in a separate folder. And my art is saved in the format %artist%.jpg

C:\Documents and Settings\xxxx\My Documents\My Music\Album Art\%artist%.jpg

that is where my album art lies, how do i put that in a relative format? where do i need to put my art so that i can use relative paths?
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-06 15:33:32
Code: [Select]
$if($and($not(%_selected%),$not(%_isplaying%)),...)
Thanks, works.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-10-06 15:41:07
okay from now on ill post in the relative thread, but how do i set up the relative path for the imageabs2?

i have my music set up differently, all my music is in one folder, and i have all my album art in a separate folder. And my art is saved in the format %artist%.jpg

C:\Documents and Settings\xxxx\My Documents\My Music\Album Art\%artist%.jpg

that is where my album art lies, how do i put that in a relative format? where do i need to put my art so that i can use relative paths?


1) how do you find different album covers for two differnt albums from one artist? (nevermind thats your trouble not mine)

2) if you use such path as given up first i would suggest to use ' ' i use code such as this an it works:
$imageabs2(38,38,0,0,38,38,93,4,'images\bands\'%album artist%'.jpg',)
but my artist photos are realtive to foobar you have to use absolute path if you use windows document folder.

3) everytime you experiment with imageabs2 code restart foobar.
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 15:46:22

okay from now on ill post in the relative thread, but how do i set up the relative path for the imageabs2?

i have my music set up differently, all my music is in one folder, and i have all my album art in a separate folder. And my art is saved in the format %artist%.jpg

C:\Documents and Settings\xxxx\My Documents\My Music\Album Art\%artist%.jpg

that is where my album art lies, how do i put that in a relative format? where do i need to put my art so that i can use relative paths?


1) how do you find different album covers for two differnt albums from one artist? (nevermind thats your trouble not mine)

2) if you use such path as given up first i would suggest to use ' ' i use code such as this an it works:
$imageabs2(38,38,0,0,38,38,93,4,'images\bands\'%album artist%'.jpg',)
but my artist photos are realtive to foobar you have to use absolute path if you use windows document folder.

3) everytime you experiment with imageabs2 code restart foobar.



I have my whole music set up by artist, not by album, so i just have one art for each artist, and i arrange by artist, but thats beside the point.

$imageabs2(38,38,0,0,38,38,93,4,'images\bands\'%album artist%'.jpg',)

your code, im guessing the first two numbers are the size of the image, what do the other ones do, im  trying to learn this, so that i can figure it out on my own, and not have to ask here everytime something doesnt work.

P.S. I  have moved my albumart to

images\albumart\%artist%.jpg 

and i put that in your code, put your code in my foobar, and nothing showed up... any idea what im doing wrong?
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-06 15:48:14
Is letter-spacing available? This would provide quite a few more options when it comes to usable fonts. eg I like to have a small font in upper case with some letter-spacing.
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-06 15:59:54

Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-06 16:02:58
your code, im guessing the first two numbers are the size of the image, what do the other ones do, im  trying to learn this, so that i can figure it out on my own, and not have to ask here everytime something doesnt work.


i already posted about this in a reply to your post in the appearance thread....

Code: [Select]
$imageabs2(122,122,,,,,6,2,$replace(%path%,%filename_ext%,)folder.png,)


in my code the imagesize is 122x122.

x position (horizonatal ) is 6 and y postion (vertical) is 2. i don't need anything else.

of course your group rows multiplied by row height must be big enough to display your image. for example my row height is 25 and group rows is 5 which gives me 125. as my images are 122, i have a little border....
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 16:07:38
ya i didnt check there till just now,

and i didnt know why i was using the $replace , it was just given to me by someone else ,
so anyway, i have now moved my album art  so that i can use relative paths'
album art is located here

C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart


$imageabs2(122,122,,,,,6,2,$replace(%path%,%filename_ext%,)folder.png,)

so how would i change your code ^^^ to fit my needs, since you said i dont need the $replace anymore?
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-06 16:22:39
This already may have been asked before (but HA doesn't support a thread search):

Pressing ENTER does not play a track? Any way I can achieve this?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-10-06 16:23:51
$imageabs2(38,38,0,0,38,38,93,4,'images\bands\'%album artist%'.jpg',)

your code, im guessing the first two numbers are the size of the image, what do the other ones do, im  trying to learn this, so that i can figure it out on my own, and not have to ask here everytime something doesnt work.


short explanation i was talking about in appearnace thread:

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

The arguments for $imageabs2 are

- resize width
- resize height

- srcX - the x position on the resized image where you want to start
- srcY - the y position on the resized image where you want to start
- srcW - the width on the resized image you want
- srcH - the height on the resized image you want

- dstX - the x position on the screen where you want the image drawn
- dstY - the y position on the screen where you want the image drawn

and yes, there will be problems with the '#' character in commands.

Both images commands use GDI+.


im not quite sure how these works : srcX, srcY, srcW, srcH i just know that the code above works the way i need .

im not quite sure what you are trying to achive. pls expres your needs more. you're reffering to %artist%.jpg as album cover but i guess you need to show artist photo somewhere. am i right? do you need to place that image in group header or next to your item rows? cause code looks different depending on this. the code i was posting for you i use in group row. Dont mind the relative/absolute path just use the one youre used to both works quite fine.
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 16:29:18
Code: [Select]
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)


that is the current code that i am using for my images, and they are displaying, but i want to clean the code up, i was told that i dont need the $replace, and since it is in my application data foobar, i should be able to use relative path's,  how can i modify this code to achieve this ?
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-06 16:39:08


Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..


Eh, gotta get going to work, but this one seems ok at the moment. It just calculates the width of O, which seems to be the widest character.

Code: [Select]
$puts(c,$div($calcwidth(%artist% - %title%),$calcwidth(O)))

$ifgreater($calcwidth(%artist% - %title%),%_width%,
$cut(%artist% - %title%,$get(c))'...'
,
%artist% - %title%
)
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-06 16:40:37
Code: [Select]
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)


that is the current code that i am using for my images, and they are displaying, but i want to clean the code up, i was told that i dont need the $replace, and since it is in my application data foobar, i should be able to use relative path's,  how can i modify this code to achieve this ?


here you go....

Code: [Select]
$imageabs2(75,75,,,,,3,3,'images\albumart\nocover.png',)
$imageabs2(75,75,,,,,3,3,'images\albumart\'%artist%'.jpg',)


Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 16:48:15
Quote
QUOTE(speedemonV12 @ Oct 6 2006, 16:29) *

CODE

$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)


that is the current code that i am using for my images, and they are displaying, but i want to clean the code up, i was told that i dont need the $replace, and since it is in my application data foobar, i should be able to use relative path's, how can i modify this code to achieve this ?


here you go....

CODE
$imageabs2(75,75,,,,,3,3,'images\albumart\nocover.png',)
$imageabs2(75,75,,,,,3,3,'images\albumart\'%artist%'.jpg',)


smile.gif



ok i did put that code into my foobar, and it does not work
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-10-06 16:48:42
HA doesn't support a thread search
Have you tried the Search Topic button at the end of the page? Or do you mean something else?

Alessandro
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-06 16:53:16
ok i did put that code into my foobar, and it does not work


i did test the code before i posted. i even created the folder/filename structure so it's the same as yours.... 

you did restart, didn't you....
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 16:58:04
I Most definately did restart lol , ive been told that too many times, this is killing me that i cant get it to work!!!

it doesnt make sense that this code works:
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)

and then this doesnt:
$imageabs2(75,75,,,,,3,3,'images\albumart\nocover.png',)
$imageabs2(75,75,,,,,3,3,'images\albumart\'%artist%'.jpg',)

its just being simplified.. is there something small we are missing?



ill explain everything out of how i have my music set up, ,just in case it will make a difference,

i have all my music located in:
C:\Documents and Settings\xxxx\My Documents\My Music
and my music is saved in this format: %artist% - %tracknumber.mp3

i have all my images for my foobar stored here:
C:\Documents and Settings\xxxx\Application Data\foobar2000\images

and my album art is located here:
C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart
and my album art is saved in this format: %artist%.jpg
this is because i organize my music by artist, not by album, and i have all the correct tags, so that it works for me, i just set the album tag to be the same as the artist tag, so that i did not have to change all the code that people posted, since they sort by album,

anyway, thats where everything is stored, i still have no idea why the shortened code doesnt work
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-10-06 17:05:33
I Most definately did restart lol , ive been told that too many times, this is killing me that i cant get it to work!!!

it doesnt make sense that this code works:
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)

and then this doesnt:
$imageabs2(75,75,,,,,3,3,'images\albumart\nocover.png',)
$imageabs2(75,75,,,,,3,3,'images\albumart\'%artist%'.jpg',)

its just being simplified.. is there something small we are missing?


AFAIK, you can't use relative paths with $imageabs2(), they only work with $imageabs(), so you'll have to keep the whole path in the code.
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 17:10:08

I Most definately did restart lol , ive been told that too many times, this is killing me that i cant get it to work!!!

it doesnt make sense that this code works:
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\nocover.png,',',),?,),)
$imageabs2(75,75,0,,,,3,3,$replace($replace(C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg,',',),?,),)

and then this doesnt:
$imageabs2(75,75,,,,,3,3,'images\albumart\nocover.png',)
$imageabs2(75,75,,,,,3,3,'images\albumart\'%artist%'.jpg',)

its just being simplified.. is there something small we are missing?


AFAIK, you can't use relative paths with $imageabs2(), they only work with $imageabs(), so you'll have to keep the whole path in the code.


so can i just get rid of the 2 in $imageabs2(), and then everything will work ?

or should i just have the code like this?
$imageabs2(75,75,,,,,3,3,'C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg',)

kuz i think that i have tried that, and it doesnt work ..
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-06 17:13:53
AFAIK, you can't use relative paths with $imageabs2(), they only work with $imageabs(), so you'll have to keep the whole path in the code.


well sort of..... just been testing and you can't use your profile directory with imageabs2. but having the a folder as subdirectory of the main foobar2000 folder works.

so just copy over your 'images' folder to \program files\foobar2000\ and that should do it. 
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-06 17:20:28
...or add the path back
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 17:23:44
$imageabs2(75,75,,,,,3,3,'C:\Documents and Settings\xxxx\Application Data\foobar2000\images\albumart\%artist%.jpg',)

so would this be adding the path back ?




edit: marc , you were right, i moved the folder, and now the clean code works,
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-06 17:42:52
edit: marc , you were right, i moved the folder, and now the clean code works,


ok so now it works. but what a strange setup to have.    do you have multiple albums by the same artist? it's going to show the same image for every one. surely you'd want to have individual art for each album?

but then i suppose it's good in a way that we don't all think the same...... 
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-06 18:07:04
HA doesn't support a thread search
Have you tried the Search Topic button at the end of the page? Or do you mean something else?
I've overseen that one for years, thanks!

But it didn't bring me a result for my question. So, is it intended behaviour, if I press <enter> that nothing happens? Or something wrong here?
Title: foo_uie_single_column_playlist
Post by: speedemonV12 on 2006-10-06 18:22:41

edit: marc , you were right, i moved the folder, and now the clean code works,


ok so now it works. but what a strange setup to have.    do you have multiple albums by the same artist? it's going to show the same image for every one. surely you'd want to have individual art for each album?

but then i suppose it's good in a way that we don't all think the same...... 



no i only have one album for my artists.. but now i have the code, and it works, thanks for all the help
Title: foo_uie_single_column_playlist
Post by: chivas on 2006-10-06 18:41:44
any chance to show the album art with imageabs2, files from different folders with different filennames?
right now i have $replace(%path%,%filename_ext%,folder.jpg)

though i have many files that are not named "folder.jpg".
*.jpg doesn't work =/

maybe anyone know of a good mass file renamer?
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-06 19:28:55
Request: a function like $setheaderrows(rows) for the group header, so I can do:

Code: [Select]
$if(%discnumber%,
$if($strcmp(1,$num(%discnumber%,1)),,
$setheaderrows(1)
Disc %discnumber%
),
$setheaderrows(5)
album info here
)
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-06 20:25:07



Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..


Eh, gotta get going to work, but this one seems ok at the moment. It just calculates the width of O, which seems to be the widest character.

Code: [Select]
$puts(c,$div($calcwidth(%artist% - %title%),$calcwidth(O)))

$ifgreater($calcwidth(%artist% - %title%),%_width%,
$cut(%artist% - %title%,$get(c))'...'
,
%artist% - %title%
)



That works great.. almost! For some reason the dots don't display. Otherwise, perfect.
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-06 21:03:08




Will not work with useing alignabs, must use $cut if you wish to take of characters and not whole words.
Alright. I can't think of any good way to have the playlist not completely cut off long words in the playlist using cut, though. The only way I could think to do it would be to use a font that has a consistent character width and base the amount cut off on the width of the panel.


Yeah, that seems to be the best way at the moment.


Another idea (dirty but maybe working okay?) is:

1. Use calcwidth to find out the width of the string
2. If the width is bigger than desired maximum width, then:
3. Calculate how many percent the width was bigger than desired max width.
4. Count number of characters in string.
5. Reduce the number of characters proportinally to how bigger the width was compared to the maximum width (plus reduce a little extra for safety)
6. Add three dots.

If anyone gets me..


Eh, gotta get going to work, but this one seems ok at the moment. It just calculates the width of O, which seems to be the widest character.

Code: [Select]
$puts(c,$div($calcwidth(%artist% - %title%),$calcwidth(O)))

$ifgreater($calcwidth(%artist% - %title%),%_width%,
$cut(%artist% - %title%,$get(c))'...'
,
%artist% - %title%
)



That works great.. almost! For some reason the dots don't display. Otherwise, perfect.


Code: [Select]
$sub($get(c),8))


er or add, and maybe increase 8. Bleh.
Title: foo_uie_single_column_playlist
Post by: eyemthatguy on 2006-10-06 23:49:48
<newb> so ive been reading over different configurations and am starting to get a grasp on being able to make this look the way I want.  My issue is that I am not understanding the concept of how this works with playlists.

I have 3 playlists currently (Singles/Incomplete , Full Albums , and New Playlist)

I can switch between the 3 by right-clicking and choosing, and the display actually changes so i can see whats in the playlist, however i cannot actually play anything except what is in New Playlist.

help me pull my head out of my ass, please.</newb>
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-07 06:45:20
BUG. Marking a track and pressing <Enter>: Nothing happens.
BUG. Arrow up does not jump over the group description. If the groups height is 2, I have to press the key three times in order to reach the last track of the previous group.
BUG. A visual glitch: On top of the panel, it doesn't refresh 1 or 2 pixel height. E.g. if I minimize fb2k and bring it up again, this horizontal line shows exactly what was in the window(s) under fb2k.

W2K here and fb2k0.94
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-07 09:13:58
can somsone please tell me how to make use of having 2 rows of the group row.. I want to put more stuff on the second line but i dont know how to move it to the next bow down..
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-07 09:33:52
can somsone please tell me how to make use of having 2 rows of the group row.. I want to put more stuff on the second line but i dont know how to move it to the next bow down..

either enclose a linebreak in 's or use $char(10). I use the latter.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-07 09:46:22
thats great worked like a charm

now for the next trick - its currently displaying the album art if there is a folder.jpg image in the directory - which works fine but I also need it to detect for folder.png and then if neither of those are detected it needs to display my no cover art in a specific location data\misc images\nocover.png

would really appreciate some help - my config is almost perfectly the way i want it...

Code: [Select]
$drawrect(,,,,brushcolor-70-115-170 pencolor-null)
$imageabs(0,0,data\misc images\test8.png,)
$padding(85,5)
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,folder.jpg),)
$padding(4,1)
$font(calibri bold,24,bold,255-255-255)
$font(,,bold glow-12-38-58 glowexpand-1,)%album artist%
$char(10)
$font(calibri bold,12,,255-255-255)
$font(,,bold glow-12-38-58 glowexpand-1,)
%album% [- CD %discnumber%][ / %totaldiscs%]
$char(10)
$font(CubicFive12,6,nocleartype,245-245-245)
[%date% | ][%genre%]
//image layovers
$imageabs($sub(%_width%,140),0,data\misc images\refl.png,)
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-07 09:51:29
Do:
Code: [Select]
$imageabs2(75,75,,,,,3,3,COVER TO NO COVER IMAGE,)
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,folder.jpg),)


But it messes up with some aspect ratios.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-07 10:42:45
yeah i tried that and it works for most
as i think i read before this component doesnt do wildcards does it?
otherwise I could have it display folder.*
that would help

thanks for the info though... i already had thought of it right after i posted -
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-07 12:38:59
I don't know if it has been brought up before (probably?) but I think clickable elements would be a great idea. I think it should be able to separate between single or doubleclick, and it would be sufficient to refer commands to menus.

Ideas of usage:
1. Single click on rating stars in the playlist to rate song.
2. Clickable "no cover art" images to download cover art (ie. via foo_run and coverdownloader)
3. Double click on album header to open directory

---

Another idea of a function would be inline editing (middle click) to edit displayed tags directly in the playlist.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-07 16:26:37
I'm still convinced that somehow columns could be integrated into this. It would basically be like columnsui, but each column has trackinfo_mod code editing. The columns wouldn't apply to the groups though, which would just span over all of the columns and have a single codebox. Group sorting (and whether or not the headers are shown) would then be defined by which column is currently selected for sorting. This would give us back the flexibility of sorting with the power of the single_column features. It would also simplify integrating inline tag editing. I know this would be a major undertaking, though.
Title: foo_uie_single_column_playlist
Post by: Chaser on 2006-10-07 16:41:38
BUG. Marking a track and pressing <Enter>: Nothing happens.


I guess you could temporalily fix that by coding a AutoHotkeyScript, that simulates a double-click on the marked entry. I'm not quite sure what amount of work that would be, since I only started using AHK myself a week ago - but it is truly a very capable little tool!
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-08 04:06:47
I've went thru this thread for like a hour but still haven't managed to get my cover art into the playlist. But after reading more carefully, I am just wondering, for the newest/current version of this component. Is album art still limited to C:\ ? or of subdirectories of the foobar directory ?

As in, it doesn't have the ability to take paths from where the albums are actually are (this is where my art is)
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-10-08 09:39:37
I've went thru this thread for like a hour but still haven't managed to get my cover art into the playlist. But after reading more carefully, I am just wondering, for the newest/current version of this component. Is album art still limited to C:\ ? or of subdirectories of the foobar directory ?

As in, it doesn't have the ability to take paths from where the albums are actually are (this is where my art is)


on its not limited now. search for imageabs2 in this thread. youll find bunch of codes and posts i presume
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-08 12:07:37
Any ideas why
Code: [Select]
$if($strcmp(%cwb_activelist%,Queue),!noheader!)
doesn't work?
Title: foo_uie_single_column_playlist
Post by: unabatedshagie on 2006-10-08 13:58:58
What code do I need to display the album art if all the art is stored in H:\_Artists And Artwork in this format %artist%_%album%.jpg
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-10-08 17:30:08
Any ideas why
Code: [Select]
$if($strcmp(%cwb_activelist%,Queue),!noheader!)

doesn't work?


Try using:
Code: [Select]
$if($strcmp(%playlist_name%,'Queue'),!noheader!,NORMAL)
Title: foo_uie_single_column_playlist
Post by: Generalverdacht on 2006-10-08 18:25:17
one question:

I have an autoplaylist with various single mp3s (my rated ones), is it possible to have 2 different column-configs like it is in columns_ui? (there i use one for album view, and another one for my autoplaylists).
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-09 00:30:30
Well after like long hours  I semi got it to work (albumart, only some times it fails to even draw/missing parts of the playlist), after changing the code around to drawing with the listindex it seemed to work better but both ways still kinda glitchy/laggy (a64 2800+, 1gb ram /w 2500 songs) but overall very nice plugin!

Edit: Only if you put in albumart related code into it, otherwise its great.

I hope a better implementation of album art will work later on but great work ! hope ya keep improving it
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-10-09 08:20:03
Bug (minor): Search for something which give results, using foo_uie_quicksearch. Playlist is generated, with correct results, but isn't automatically switched to (set in quicksearch preferences), like as with normal columns.

Bug (minor): Using keyboard to navigate the lists which foo_browser shows (i.e. pressing 'e' to jump to the first item starting with 'e', etc..), causes a keyboard shortcut to be performed aswell. I.E., I bind 'X' to play, and if I press 'X' whilst using the foo_browser panels, then it searches the foo_browser panel, generates the playlist, and because of 'X' being binded to play, plays the song. (may not be your problem)

Bug (major): Use foo_browser to generate a playlist, works as expxected. Search for something which give results, using foo_uie_quicksearch, which generates the new playlist with correct results. Switch to playlist, using the playlist context menu, which works as expected. Play track by double-clicking, which works as expected. Switch back to browser playlist (which was generated by foo_browser before), which works as it should. But then, when you try to play any track from the playlist (the one foo_browser generated before), it plays a track from the foo_quicksearch playlist (specifically, the first one from the group after where the cursor was in the quicksearch playlist). Regenerating the browser panels fixes this, and the browser playlist then works as normal again.

Bit confusing to explain, but I tryed to detail all steps..
Title: foo_uie_single_column_playlist
Post by: kuru on 2006-10-09 08:25:20
What code do I need to display the album art if all the art is stored in H:\_Artists And Artwork in this format %artist%_%album%.jpg



like this:

$imageabs2(65,65,0,0,65,65,2,2,H:\_Artists And Artwork\%artist%_%album%.jpg,)
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-09 08:42:16
[No reaction on pressing enter]

I guess you could temporalily fix that by coding a AutoHotkeyScript, that simulates a double-click on the marked entry. I'm not quite sure what amount of work that would be, since I only started using AHK myself a week ago - but it is truly a very capable little tool!


As this computer is controlled by a remote control and girder, I solved the problem by sending the event to a (hidden) columns ui playlist. (I couldn't use "foobar2000.exe /play", because I have assigned this also to winamp).
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-09 08:48:52
Try using:
Code: [Select]
$if($strcmp(%playlist_name%,'Queue'),!noheader!,NORMAL)

Doesn't work
Title: foo_uie_single_column_playlist
Post by: lemonka on 2006-10-09 10:34:33
Is somewhere comprehensive manual for scripting functions and macros for this pluging on the internet with explainig what parametrs and what for are used??

PS. Plugin is great but I dunno what to do with it without any help
Title: foo_uie_single_column_playlist
Post by: blubbo on 2006-10-09 14:49:26
Is somewhere comprehensive manual for scripting functions and macros for this pluging on the internet with explainig what parametrs and what for are used??
look here (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29)
and here (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Single_Column_Playlist_%28foo_uie_single_column_playlist%29)
Title: foo_uie_single_column_playlist
Post by: lemonka on 2006-10-09 15:27:56
Is somewhere comprehensive manual for scripting functions and macros for this pluging on the internet with explainig what parametrs and what for are used??
look here (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29)
and here (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Single_Column_Playlist_%28foo_uie_single_column_playlist%29)

txh i hope when i will have some time this will be useful
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-10-09 18:30:52
Doesn't work


Odd its working for me.
Have you got the latest version?
Did you place anything after that last ')'? If there is anything additional to !noheader! I don't think it will work.
Did you replace NORMAL with what you normally group by?

Can't think of anything else...
Title: foo_uie_single_column_playlist
Post by: lemonka on 2006-10-09 22:46:47
BUG 1:Foobar crach when I double click on empty space on playlist
BUG 2:When Im pressing key ARROW DOWN selection jumps over header (thats OK) but when Im pressing key ARROW UP selection steps into header (it should also jumped over it)
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-09 23:08:18
Already posted a few times, terrstrial hasn't responded yet.
Title: foo_uie_single_column_playlist
Post by: mojomonkee on 2006-10-10 08:20:42
I'm using a modified version of Mazy's code but I can't get the text to truncate (re: show ellipses) when the window is too narrow for the album title or song title.

Here is the code I'm using for each section:

Item:
Code: [Select]
$if($strcmp($mod(%_playlist_number%,2),1),
$drawrect(,,,,brushcolor-005-005-005 pencolor-null))

$padding(2,-1)
$font(calibri bold,9,$if(%isplaying%,underline,),255-255-255)
$replace(%title%,'(',$font(,,bold italic,204-204-204)'(')

$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_count%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%)


Group:
Code: [Select]
$padding(2,0)
$drawrect(,,,,brushcolor-000-000-000)$padding(0,1)

$align(left,center)$font(calibri bold,9,,255-255-255)
$font(,,bold ,)
%artist% '('%album%')'

$alignabs(4,13,%_width%,%_height%,,)
$font(CubicFive12,6,nocleartype,18-173-224)
[%date% | ][%genre%]
Title: foo_uie_single_column_playlist
Post by: jaco on 2006-10-10 09:40:19
I'm waiting for mazy to get back to me as to how he did his complex layouts without destroying the CPU :/


Same here, this plug slow my machine (CPU), even without covers

Windows Server 2003
Sempron 1.8GHz
1GB RAM
Title: foo_uie_single_column_playlist
Post by: joule on 2006-10-10 10:06:37
I'm using a modified version of Mazy's code but I can't get the text to truncate (re: show ellipses) when the window is too narrow for the album title or song title.


AFAIK uie_single_column does not truncate text with dots at the end. You can only make it cut the text using alignabs.

(I am working on a routine that will truncate the text and add dots.)
Title: foo_uie_single_column_playlist
Post by: rheuh on 2006-10-10 15:08:53
Concerning the images-can't-be-on-other-physical-drive thing, I think I've found a workaround using a feature available to NTFS filesystems : the junction (same thing as a hard link on *nix). All my music is at D:\public\music\<artist>\<year><album> and my foobar is at c:\program files\foobar2000, and each cover is in the album's directory. So I junction "d:\public\music" to "c:\program files\foobar2000\music" using SysInternal's freeware junction.exe (http://www.sysinternals.com/Utilities/Junction.html), and Foobar can access the d:\public\music, thinking it's in its own directory on C:. That's quite a geeky tweak, but it works a treat! No need to copy all album art to C: when my music is on D:, after all.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-10 15:20:28
I'll just add thats possible by nature in vista, As it comes with its own advanced NTFS tools.
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-10-10 15:24:26
Concerning the images-can't-be-on-other-physical-drive thing, I think I've found a workaround using a feature available to NTFS filesystems : the junction (same thing as a hard link on *nix). All my music is at D:\public\music\<artist>\<year><album> and my foobar is at c:\program files\foobar2000, and each cover is in the album's directory. So I junction "d:\public\music" to "c:\program files\foobar2000\music" using SysInternal's freeware junction.exe (http://www.sysinternals.com/Utilities/Junction.html), and Foobar can access the d:\public\music, thinking it's in its own directory on C:. That's quite a geeky tweak, but it works a treat! No need to copy all album art to C: when my music is on D:, after all.

You could also use imageabs2 which uses absolute path. Works perfectly for me
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-10 15:26:22
IMO "the images-can't-be-on-other-physical-drive thing" is no longer an issue since $imageabs2() has been added. I routinely load images on different drives using explicit paths.
Title: foo_uie_single_column_playlist
Post by: rheuh on 2006-10-10 15:33:48
Whoops, should have read more deeply before posting ^^ I've been disconnected for the two last months and many things happened since ! I only learnt about the new single_columns_playlist yesterday and start fiddling with it, that's really awesome.

Edit:
... and now, another problem with $imageabs2. I am trying to add a subtle shade to the group title, this is how I intend to do it :
1) paint the whole layer blue, red, green, whatever
2) add a semi-transparent PNG layer, consisting of a 1px-wide gradient from transparent black to transparent white, stretched along the whole group.

So here's the code I use :
Code: [Select]
$puts(groupcolor,30-69-197)
$puts(profile,c:\profils\rheuh\application data\foobar2000\)
$puts(groupgradient,intf\groupbg.png)
$drawrect(0,0,0,0,brushcolor-$get(groupcolor) pencolor-null)
$imageabs2(%_width%,64,,,,,,,$get(profile)$get(groupgradient),)


But it won't work. I tried :
$imageabs2(1,64,,,,,,,...) ==> OK, 1px wide at top-left corner
$imageabs2(2,64,,,,,,,...) ==> KO, still 1px wide at top-left corner even if I specify 2px
$imageabs2(3,64,,,,,,,...) ==> KO, nothing is displayed when 1st variable is > 2
I also tried specifying the original gradient's size with $imageabs2(%_width%,64,,,1,64,,,$get(...),) and it still doesn't work.

That's confusing, because resizing works great with covers :
Code: [Select]
$puts(art.cover,$replace(%path%,%filename_ext%,front.jpg))
$puts(art.frame,intf\frontframe.png)
$puts(art.nocover,intf\nocover.png)
$imageabs(12,9,$get(art.nocover),)
$imageabs2(64,64,,,,,12,9,$get(art.cover),)
$imageabs(8,8,$get(art.frame),)

I noticed that stretching is only proportionnal for the covers : if the CD cover is, say, 1000x500px (front and inside, unfolded), then the thumbnail's size will be 64x32 instead of 64x64 as I specified (but the 64x32 image will be centered in the 64x64 frame).

Is $imageabs2() weird, or is my formatting string wrong ?
Title: foo_uie_single_column_playlist
Post by: mojomonkee on 2006-10-10 20:51:59

I'm using a modified version of Mazy's code but I can't get the text to truncate (re: show ellipses) when the window is too narrow for the album title or song title.


AFAIK uie_single_column does not truncate text with dots at the end. You can only make it cut the text using alignabs.

(I am working on a routine that will truncate the text and add dots.)


Cool, I'll try using alignabs and I eagerly awaite your ellipses code routine.

EDIT: the wiki doesn't explain how to use alignabs (the only mention of it is in Mazy's example code).  Any pointers?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-10 23:51:15
Is anyone else experiencing this bug? When I use quicksearch, the results look like this:
(http://img282.imageshack.us/img282/3780/scsearchra8.th.jpg) (http://img282.imageshack.us/my.php?image=scsearchra8.jpg)
As soon as I switch playlists and then switch back, it looks fine, though.

I've got some feature requests, also.
-Some way of having a custom sort within the groups and for tracks with !noheader!
-Reordering of tracks (by dragging)
-Dragging tracks outside of playlist using the right mouse button (like columns_ui)

Thanks again for this awesome plugin!
Title: foo_uie_single_column_playlist
Post by: Crayon on 2006-10-11 00:35:30
^ yup it seems a few people get that, just like me.
Title: foo_uie_single_column_playlist
Post by: Shinsou on 2006-10-11 09:24:27
Is anyone else experiencing this bug? When I use quicksearch, the results look like this:
(http://img282.imageshack.us/img282/3780/scsearchra8.th.jpg) (http://img282.imageshack.us/my.php?image=scsearchra8.jpg)
As soon as I switch playlists and then switch back, it looks fine, though.

i confirm that too.

a Bug:
- single column playlist scrolls down a little when adding/changing tags (rating for example) on active Autoplaylist window. The locked playlist isn't sorted by rating btw
Title: foo_uie_single_column_playlist
Post by: henn1ng on 2006-10-11 11:53:24
when singlecolumnplaylist changes tracks it simply scrolls the playlist until the newly playing track is visible, usually resulting in that track appearing at the top or bottom depending on wich direction it needed to scroll. If you prefer the track to appear more centered like in the default playlist or columnsui playlist I would suggest you stop by the foo_uie_single_column_playlist (http://www.hydrogenaudio.org/forums/index.php?showtopic=47810) thread and making a feature request.



thats what im doing right now

please add a feature to make the next track automatically show up in the middle of the panel.

brgds/ henn1ng
Title: foo_uie_single_column_playlist
Post by: JzE on 2006-10-11 13:44:23
Hi. How do I add a function to the playlist which checks if the folder which contains the songs in current album starts with VA - so it would change the %artist% to Various Artists ?

~JzE
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-11 21:01:19
Never actually used quicksearch, but isn't the normal Ctrl+F faster? ;/
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-11 21:22:28
Hi. How do I add a function to the playlist which checks if the folder which contains the songs in current album starts with VA - so it would change the %artist% to Various Artists ?

~JzE


if you tag the files in a various artists album with %album artist% set to "various artists" then you could simply use this to display the artist

%album artist%

if the %album artist% tag does not exist, it will simply display %artist%
Title: foo_uie_single_column_playlist
Post by: botanicalstudyq on 2006-10-11 21:54:59
Cool, I'll try using alignabs and I eagerly awaite your ellipses code routine.

EDIT: the wiki doesn't explain how to use alignabs (the only mention of it is in Mazy's example code).  Any pointers?


this is pretty simple and functional:

Code: [Select]
$iflonger(%title%,55,$cut(%title%,50)'...',%title%)


checks to see if the title is longer than 55 characters, if it is then it cuts it to 50 and puts "..." at the end, otherwise it just displays the title.

Hi. How do I add a function to the playlist which checks if the folder which contains the songs in current album starts with VA - so it would change the %artist% to Various Artists ?

~JzE


I use this:

Code: [Select]
$if($stricmp($substr($directory(%path%,1),0,9),%date%' - VA'),'Various Artists', %artist%)


My VA folders are name as such though "year - VA - album name". if yours starts with "VA " then change the 9 in the code above to a 2 and change the "%date%' - VA'" to just "VA" and it should work.
Title: foo_uie_single_column_playlist
Post by: lemonka on 2006-10-12 11:00:11
It would be nice if it there was possobility to export playlist look to html format with covers copied to same directory 
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-12 17:34:12
updated with a couple of small bug fixes... haven't had time for too much else.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-12 17:52:41
Thanks for your dedication, Though

EDIT: a small bug introduced with this update, it seems. I can't get it to focus on the playing item when changing tracks anymore.
Title: foo_uie_single_column_playlist
Post by: Crayon on 2006-10-12 18:14:55
i think the MEIN problem for me got fixed, thanx alot. 
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-12 18:24:18
THANX terrestrial!!!!

I can see the fixes already!!
Title: foo_uie_single_column_playlist
Post by: Shinsou on 2006-10-12 18:24:31
updated with a couple of small bug fixes... haven't had time for too much else.

thanks a lot, now the situation with autoplaylists is much better, but it's still jumpy
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-12 18:28:50
what situation with autoplaylists?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-12 19:13:55
Any chance buttons might be implemented soon? Oh, and thanks for fixing the quicksearch bug!
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-12 22:26:11
EDIT: a small bug introduced with this update, it seems. I can't get it to focus on the playing item when changing tracks anymore.


I can confirm this bug.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-12 23:44:14
The extra item drawn crash bug seems to be gone, though.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-13 04:45:39
bug:
I have a rating script that I use with a kb shortcut - increases rating by + 1 every time.
In the single colums view it drawms the 1st rating star and then it dtops redrawing until i click on another tab and then switch back so it can redraw.

Also was wondering what the chances are of inline editing ala columns ui with meta editing this would be very cool..

keep up the awesome work am really enjoying this component now - I dont even use track info anymore my single column is enough for all my uses album art - album info etc..

I would really like it wildcards could be introduced for displaying images so  I could get any *.jpg;*.png to be displayed from the albums folder.. this would then make album art component totally redundant for me...

the less components i use the faster foobar runs +++ thanks in advanced
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-13 05:39:58
Question, I turned ClearType on once and it seems to remain in the Single Columsn after I shut it off even after restart, or does this component automatically enable it? and I just didn't notice it the first time
Title: foo_uie_single_column_playlist
Post by: Shinsou on 2006-10-13 10:27:20
what situation with autoplaylists?

try the following:
go to properties on any autoplaylist created song and change any tag, then press apply and look what happens, playlist scroll position changes. That won't happen with simple playlist
Title: foo_uie_single_column_playlist
Post by: Necrosis on 2006-10-14 08:46:08
Sorry if this has already been posted, but I've found a small bug with the way infomation is displayed when it begins with the word 'draw'.

Below is an image showing the bug on a track where the title begins with the word 'Drawn'... I've tested it on other tracks by adding 'draw' to the beginning of the title and it shows up as seen in the image.

(http://img224.imageshack.us/img224/6372/untitled1ab1.png)

I don't think it's the code, but here's what I'm using...

Code: [Select]
$puts(color1,$if(%isplaying%,$rgb(215,36,10),$rgb(0,0,0)))
$puts(color2,$if(%isplaying%,$rgb(215,36,10),$rgb(160,160,160)))

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-224-232-240 pencolor-null))

$font(Verdana,6,,)
$upper(
$alignabs(25,0,$sub(%_width%,75),12,,middle)$get(color1)
[$if($meta(band),%artist%,) • ]$replace(%title%,'(',$get(color2)'(',')',')'$get(color1))
$alignabs($sub(%_width%,40),0,35,12,right,middle)$get(color1)$if(%isplaying%,-%_time_remaining%,%length%)
)
Title: foo_uie_single_column_playlist
Post by: Mr.Q on 2006-10-14 13:39:04
If i use Maxthon2.0, Os will game over
Title: foo_uie_single_column_playlist
Post by: Vrieskist on 2006-10-14 13:50:26
Hello and sorry for this post

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts

The problem is, how do I apply these styles to my Foobar? I've installed a bunch of components (Columns UI, Track info panel mod, Single Column Playlist Display) and I've read a lot of the wiki's about the components i've installed, but I can't figure out where to place the code that is posted here in this topic. Couldn't someone give me a hint in the right direction or a link to a clear (newb) tutorial?

Thanks in advance.
Title: foo_uie_single_column_playlist
Post by: Shinsou on 2006-10-14 16:18:34
Hello and sorry for this post

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts

The problem is, how do I apply these styles to my Foobar? I've installed a bunch of components (Columns UI, Track info panel mod, Single Column Playlist Display) and I've read a lot of the wiki's about the components i've installed, but I can't figure out where to place the code that is posted here in this topic. Couldn't someone give me a hint in the right direction or a link to a clear (newb) tutorial?

Thanks in advance.

just right click on single column playlist/settings
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-14 17:51:10
I keep getting this problem with the playlist:

(http://img437.imageshack.us/img437/1473/untitled1nh7.jpg)

The group header is cut in half and a random item line is added at the end with either a solid color or an image from the window open below it
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-14 18:25:23
update to latest version
Title: foo_uie_single_column_playlist
Post by: Vrieskist on 2006-10-14 18:28:03

Hello and sorry for this post

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts

The problem is, how do I apply these styles to my Foobar? I've installed a bunch of components (Columns UI, Track info panel mod, Single Column Playlist Display) and I've read a lot of the wiki's about the components i've installed, but I can't figure out where to place the code that is posted here in this topic. Couldn't someone give me a hint in the right direction or a link to a clear (newb) tutorial?

Thanks in advance.

just right click on single column playlist/settings

Ok, i'm going to ask something really stupid now. Where can I find the single column playlist/settings in the preferences, I can't seem to locate them. I did install the component and I don't get any errors starting foobar.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-14 18:43:54
update to latest version


I updated 2 days ago, has it changed since then?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-14 19:51:09
Vrieskist: It's not in the perferences page. Just click on the ACTUAL single playlist panel you have in your view, and choose 'settings' in the popup.

Nickoladze: look a page or two back to see when terrastrial said he updated it and see if you got yours then.
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-14 20:14:01
@Necrosis
Yeah thats a good one you got there except I can't reproduce it. When I rename songs to start with draw or drawn they show properly so it has to be the way the song is tagged.

@Nickoladze
JustElliot is right. This was one of the bug fixes in the latest. The version you should have is 3.2beta October 11
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-14 20:23:50
i have 0.3.2beta [October 11 2006 - 22:00:56] installed
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-14 20:36:44
I still get those ghost items drawn sometimes though.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-14 20:38:14
I get it everytime i change columnui layouts, then randomly on other occasions
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-14 20:47:08
I still get those ghost items drawn sometimes though.



I get it everytime i change columnui layouts, then randomly on other occasions


Really??
I used to get them all the time but since the new release it hasn't happened to me..........yet
Title: foo_uie_single_column_playlist
Post by: acedriver on 2006-10-14 22:47:57
it's still there..
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-15 06:04:47
I am running v0.3.2 beta [Oct 11 2006] 22:00:56 and the ghost entry at the bottom of my playlist is still there. However, most of my playlists are long enough that it's not a major issue.
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-10-15 06:25:10
I cannot suppress the header using the "!noheader!" command,can somebody point me out where should i put it and what should be the code structure to suppress the header? TIA.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-15 06:47:15
Russell777: You should put the !noheader! in the Group By box like this:

$if(%tracknumber%,%album%%discnumber%,!noheader!)
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-10-15 06:53:52
Russell777: You should put the !noheader! in the Group By box like this:

$if(%tracknumber%,%album%%discnumber%,!noheader!)

That's exactly what i was doing (to be sure i pasted your code instead of mine) and when it comes to playing CD's i get the header with !noheader! string on it,as if it's not a command but just a custom string.
(I'm using the latest version of SCP).


EDIT:Ok,nevermind,did it,thanks Yotsua.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-15 07:04:07
oh, that's probably because cd's have track numbers .. try this:

Code: [Select]
$if($strcmp($left(%path%,7),cdda$char(58)$char(47)$char(47)),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)
Title: foo_uie_single_column_playlist
Post by: san84 on 2006-10-15 12:38:17
I have a problem using single columns. From time to time my foobar crashes with this:
Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 7C91152Ah
Access violation, operation: write, address: 7512245Ch
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (7C91152Ah):
7C9114EAh:  78 01 00 00 89 B5 20 FF FF FF 83 B8 70 01 00 00
7C9114FAh:  00 0F 85 DB 0D 00 00 8B 06 8B C8 89 8D 70 FF FF
7C91150Ah:  FF 3B F1 0F 85 B7 FA FF FF 8D 47 08 89 85 10 FF
7C91151Ah:  FF FF 8B 51 04 89 95 08 FF FF FF 89 08 89 50 04
7C91152Ah:  89 02 89 41 04 57 FF 75 E4 E8 94 F6 FF FF 8B 4D
7C91153Ah:  E4 01 59 28 8B 75 E4 C6 45 E3 00 F6 47 05 10 74
7C91154Ah:  1B 80 7F 07 40 0F 83 48 2E 02 00 0F B6 47 07 8B
7C91155Ah:  74 86 58 89 B5 78 FE FF FF 89 7E 38 F6 45 E3 10
Stack (0013DEE4h):
0013DEC4h:  00000000 00000000 00000000 00000000
0013DED4h:  00000000 00000000 00000000 00000000
0013DEE4h:  00000000 00005070 00000000 00000000
0013DEF4h:  00000000 00000000 00000000 00000000
0013DF04h:  00000000 00000000 00000000 00000000
0013DF14h:  00000000 00000000 00000000 00000000
0013DF24h:  00000000 00000000 00000000 00000000
0013DF34h:  00000000 00000000 00000000 00000000
0013DF44h:  00000000 00000000 00000000 00000000
0013DF54h:  00000000 00000000 00000000 00000000
0013DF64h:  00160640 03211F68 77F1991B 01E30000
0013DF74h:  0013DFA0 00000164 00000000 001989B0
0013DF84h:  0017FCB8 02010000 00000000 02B1DBA8
0013DF94h:  0013E148 77F199DF 77F199E7 FFFFFFFB
0013DFA4h:  00000000 001B07A8 00000000 00000000
0013DFB4h:  01000000 00030000 00610074 03216FD8
0013DFC4h:  0061006D 00000008 00000000 00000000
0013DFD4h:  00000000 0018A9F8 00000000 00000008
0013DFE4h:  00000000 00FD0178 00000000 00000000
0013DFF4h:  0018A9F8 00000000 001B07B0 001B07A8
Registers:
EAX: 03216FE0, EBX: 00000205, ECX: 00460023, EDX: 7512245C
ESI: 00FD0178, EDI: 03216FD8, EBP: 0013E104, ESP: 0013DEE4
Crash location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+00000A9Bh)

Loaded modules:
foobar2000                       loaded at 00400000h - 00506000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                         loaded at 7C800000h - 7C8F4000h
COMCTL32                         loaded at 773D0000h - 774D2000h
msvcrt                           loaded at 77C10000h - 77C68000h
ADVAPI32                         loaded at 77DD0000h - 77E6B000h
RPCRT4                           loaded at 77E70000h - 77F01000h
GDI32                            loaded at 77F10000h - 77F57000h
USER32                           loaded at 77D40000h - 77DCF000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
SHELL32                          loaded at 7C9C0000h - 7E446000h
ole32                            loaded at 774E0000h - 77623000h
shared                           loaded at 10000000h - 1002A000h
comdlg32                         loaded at 763B0000h - 763F9000h
ShimEng                          loaded at 5CB70000h - 5CB96000h
AcGenral                         loaded at 6F880000h - 6FA4A000h
WINMM                            loaded at 76B40000h - 76B6D000h
OLEAUT32                         loaded at 77120000h - 771AB000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
VERSION                          loaded at 77C00000h - 77C08000h
USERENV                          loaded at 769C0000h - 76A73000h
UxTheme                          loaded at 5AD70000h - 5ADA8000h
wbsys                            loaded at 66500000h - 6650A000h
wbhelp                           loaded at 66600000h - 66617000h
wblind                           loaded at 66000000h - 6608F000h
msimg32                          loaded at 76380000h - 76385000h
RKLauncher                       loaded at 00E00000h - 00E0F000h
ninja                            loaded at 00E30000h - 00E3C000h
StylerHelper                     loaded at 00E50000h - 00E5E000h
MFC42                            loaded at 73DD0000h - 73ECE000h
MFC42LOC                         loaded at 5FD00000h - 5FD0A000h
UberIcon                         loaded at 00E60000h - 00E71000h
foo_masstag                      loaded at 00E90000h - 00EE0000h
foo_unpack                       loaded at 00F00000h - 00F2E000h
foo_freedb2                      loaded at 00F50000h - 00F90000h
foo_dsp_crossfader               loaded at 00FB0000h - 00FBC000h
MSVCR80                          loaded at 78130000h - 781CB000h
foo_dsp_tube                     loaded at 00FE0000h - 01003000h
foo_input_monkey                 loaded at 01020000h - 01069000h
foo_out_asio                     loaded at 01090000h - 010BE000h
foo_out_ks                       loaded at 010E0000h - 0110A000h
SETUPAPI                         loaded at 77920000h - 77B7B000h
foo_ui_columns                   loaded at 01130000h - 011CB000h
foo_uie_albumart                 loaded at 011F0000h - 01226000h
gdiplus                          loaded at 4EC50000h - 4EDF3000h
foo_uie_single_column_playlist   loaded at 01260000h - 012B1000h
MSVCP80                          loaded at 7C420000h - 7C4A7000h
foo_uie_trackinfo_mod            loaded at 012D0000h - 0131A000h
foo_winamp_spam                  loaded at 01330000h - 0134F000h
foo_input_std                    loaded at 01360000h - 01474000h
foo_ui_std                       loaded at 014A0000h - 014F7000h
foo_cdda                         loaded at 01520000h - 01556000h
foo_albumlist                    loaded at 01580000h - 015C7000h
foo_dsp_std                      loaded at 015F0000h - 01631000h
foo_rgscan                       loaded at 01660000h - 016A8000h
foo_converter                    loaded at 016D0000h - 01739000h
foo_abx                          loaded at 01760000h - 01794000h
aragh                            loaded at 019C0000h - 019C8000h
dciman32                         loaded at 73BC0000h - 73BC6000h
WINTRUST                         loaded at 76C30000h - 76C5E000h
CRYPT32                          loaded at 02DB0000h - 02E44000h
MSASN1                           loaded at 02E50000h - 02E62000h
IMAGEHLP                         loaded at 76C90000h - 76CB8000h
ksuser                           loaded at 73EE0000h - 73EE4000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 77F1991Bh, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "CreateFontIndirectExW" (+00000084h)
Address: 77F199DFh, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "CreateFontIndirectW" (+00000046h)
Address: 77F199E7h, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "CreateFontIndirectW" (+0000004Eh)
Address: 01000000h, location: "foo_dsp_tube", loaded at 00FE0000h - 01003000h
Address: 7C910F46h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+000004B7h)
Address: 0046001Bh, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 7C910E91h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+00000402h)
Address: 7C91056Dh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 00410043h, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 00460023h, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C9106F0h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000011Ch)
Address: 78134E64h, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "malloc" (+000001F5h)
Address: 78134EBEh, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "calloc" (+00000000h)
Address: 78138AD1h, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "_dllonexit" (+0000009Dh)
Address: 78134ED6h, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "calloc" (+00000018h)
Address: 78134EBEh, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "calloc" (+00000000h)
Address: 01271519h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 77F18003h, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "GetTextExtentPoint32W" (+0000002Dh)
Address: 77F1D4EBh, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "GetTextAlign" (+0000006Ch)
Address: 77F182F2h, location: "GDI32", loaded at 77F10000h - 77F57000h
Symbol: "CreateRectRgnIndirect" (+000000A1h)
Address: 01272E83h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 00FFFFFFh, location: "foo_dsp_tube", loaded at 00FE0000h - 01003000h
Address: 7C9106ABh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+000000D7h)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 7C910551h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000114h)
Address: 01273669h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 78144478h, location: "MSVCR80", loaded at 78130000h - 781CB000h
Symbol: "wcsnicmp" (+00000000h)
Address: 01275274h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 0126941Fh, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3578h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A306Ch, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 00413F42h, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 77D4C2B7h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "FillRect" (+00000050h)
Address: 0129EB88h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01265C10h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 004DF178h, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A33CCh, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3230h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A33C0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 012A3168h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01000000h, location: "foo_dsp_tube", loaded at 00FE0000h - 01003000h
Address: 00440074h, location: "foobar2000", loaded at 00400000h - 00506000h
Address: 77D40101h, location: "USER32", loaded at 77D40000h - 77DCF000h
Address: 0129EC2Bh, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01265E2Ah, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 0129EC68h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01264D5Dh, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01264CE0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 77D48744h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+0000006Dh)
Address: 01264CE0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 01264CE0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 77D54ECBh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "PostQuitMessage" (+0000027Ah)
Address: 01264CE0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 77D7046Fh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D54EF0h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "PostQuitMessage" (+0000029Fh)
Address: 77D54D17h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "PostQuitMessage" (+000000C6h)
Address: 01264CE0h, location: "foo_uie_single_column_playlist", loaded at 01260000h - 012B1000h
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4B52Ch, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+000001E0h)
Address: 77D54F44h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48744h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D48826h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D7046Fh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48840h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+00000169h)
Address: 77D4B4D0h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+00000184h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D7046Fh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D4B4E0h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+00000194h)
Address: 77D7FC28h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "CreateMDIWindowA" (+00000160h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 7C90EAE3h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4B483h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+00000137h)
Address: 77D494CEh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetWindowLongA" (+00000061h)
Address: 77D4D4F4h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "SetPropW" (+000000BBh)
Address: 77D4B913h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "SendMessageW" (+00000049h)
Address: 7743C803h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "FlatSB_SetScrollProp" (+00029492h)
Address: 77D4F8A6h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "CallNextHookEx" (+0000003Bh)
Address: 00E570E3h, location: "StylerHelper", loaded at 00E50000h - 00E5E000h
Symbol: "whiteHook" (+00001673h)
Address: 77D54F1Ch, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "PostQuitMessage" (+000002CBh)
Address: 77D54EE7h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "PostQuitMessage" (+00000296h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54F22h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54F44h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48744h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D48BE9h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 77D4886Ah, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+00000193h)
Address: 77D4883Ah, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetDC" (+00000163h)
Address: 77D7046Fh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D618FCh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "UnhookWinEvent" (+00000077h)
Address: 77D4B4DBh, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+0000018Fh)
Address: 77D9ABF4h, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "GetRawInputDeviceInfoA" (+0000011Fh)
Address: 00E56AD0h, location: "StylerHelper", loaded at 00E50000h - 00E5E000h
Symbol: "whiteHook" (+00001060h)
Address: 77D4B51Ch, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+000001D0h)
Address: 77D4B52Ch, location: "USER32", loaded at 77D40000h - 77DCF000h
Symbol: "DefWindowProcW" (+000001E0h)
Address: 77457758h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal389" (+0000A7BDh)
Address: 774165AFh, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "FlatSB_SetScrollProp" (+0000323Eh)

Version info:
foobar2000 v0.9.4.1
UNICODE

Additional info:
Single Column Playlist Display 0.3.2 beta [Oct 11 2006 - 22:00:56]  (foo_uie_single_column_playlist)
Columns UI 0.1.3 beta 1v5  (foo_ui_columns)
Standard Input Array 1.0  (foo_input_std)
Converter 1.0.1  (foo_converter)
Masstagger 1.6  (foo_masstag)
Album List 3.2.0  (foo_albumlist)
Standard DSP array 1.0  (foo_dsp_std)
ReplayGain Scanner 2.0.2  (foo_rgscan)
Crossfader 0.1.5  (foo_dsp_crossfader)
Album Art Panel 0.2.4.1  (foo_uie_albumart)
Tube Sound 0.5  (foo_dsp_tube)
WMA Decoder 1.1  (foo_input_std)
foobar2000 core v0.9.4.1  (Core)
Kernel Streaming Output 1.2.2  (foo_out_ks)
Default User Interface 0.9acc  (foo_ui_std)
Track info panel mod 0.5 beta [Aug 30 2006 - 16:35:44]  (foo_uie_trackinfo_mod)
Monkey's Audio decoder 2.1.1  (foo_input_monkey)
CD Audio Decoder 2.1.1  (foo_cdda)
freedb Tagger 0.5.2a  (foo_freedb2)
RAR reader 1.1  (foo_unpack)
Winamp API Emulator 0.90  (foo_winamp_spam)
ABX Comparator 1.3.1  (foo_abx)
FLAC Decoder 1.1.0  (foo_input_std)
ZIP/GZIP reader 1.0  (foo_unpack)

I don't know the cause.. But usually it happens when I'm scrolling my playlist, restore window from tray or just click on track in the list... I've tried different versions of plugin & also foobar.. Now I'm on the last builds, but the problem remains.. Any advise?
PS> when I'm at usual columns  - everything works like a charm..
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-15 19:26:43
I would like to use the previous version again until the 'following cursor bug' is fixed. Where can I get it?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-16 06:11:59

EDIT: a small bug introduced with this update, it seems. I can't get it to focus on the playing item when changing tracks anymore.


I can confirm this bug.


I'm not quite sure I understand what this bug is?


bug:
I have a rating script that I use with a kb shortcut - increases rating by + 1 every time.
In the single colums view it drawms the 1st rating star and then it dtops redrawing until i click on another tab and then switch back so it can redraw.


not able to reproduce it.. any other details?


Question, I turned ClearType on once and it seems to remain in the Single Columsn after I shut it off even after restart, or does this component automatically enable it? and I just didn't notice it the first time


yeah, it defaults to cleartype on. you can use the nocleartype option when specifying fonts to turn off cleartype. eventually it will use the windows settings...



what situation with autoplaylists?

try the following:
go to properties on any autoplaylist created song and change any tag, then press apply and look what happens, playlist scroll position changes. That won't happen with simple playlist


fixed for the next version.

Sorry if this has already been posted, but I've found a small bug with the way infomation is displayed when it begins with the word 'draw'.


yeah, it's a bug... I need to rewrite that part of the code, but as a temporary workaround, put a space before the title.

I have a problem using single columns. From time to time my foobar crashes with this:


does it crash with foo_dsp_tube removed?

and for those with the display glitches.. what version of windows are you running.. also some more screenshots would be helpful (when the glitches occur).
Title: foo_uie_single_column_playlist
Post by: san84 on 2006-10-16 07:34:33
does it crash with foo_dsp_tube removed?

Yes.. I've tried to disable all DSP's already. Now I'm changed item display code & don't see crashes. Maybe it's because of second line where are I put bitrate, size and number for each individual track..
BTW, is it possoble to hide a scrollbar?
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-10-16 08:48:33
and for those with the display glitches.. what version of windows are you running.. also some more screenshots would be helpful (when the glitches occur).
Here (http://img138.imageshack.us/img138/4044/foobarjd8.jpg) a screenshot of fb2k 0.9.4.1 & single column 0.3.2 beta on Win2k SP4.

In my case the "extra" track isn't clickable: it's just a display glitch at the end of the playlist; also note that it changes moving up and down with the scroll bar.

HTH.

Alessandro
Title: foo_uie_single_column_playlist
Post by: Anas on 2006-10-16 12:13:19
and for those with the display glitches.. what version of windows are you running.. also some more screenshots would be helpful (when the glitches occur).

(http://img152.imageshack.us/img152/9272/singlecolerroryt8.png)

1. Freshly started foobar. Underneath window content is shown.
2. Scrolled up and down. Ghost song is shown.
3. Changed to another playlist and back again. Everything is drawn fine, also after scrolling.

Using foobar2000 0.9.4.1, Windows XP Pro SP2 and Single columns 0.3.2 beta [Oct 11 2006 - 22:00:56].
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-16 13:35:24
and for those with the display glitches.. what version of windows are you running.. also some more screenshots would be helpful (when the glitches occur).


(http://img153.imageshack.us/img153/557/playlistgfxbugch8.th.png) (http://img153.imageshack.us/my.php?image=playlistgfxbugch8.png)

Whenever I scroll to the bottom of a playlist larger than the panel, there appears a blank entry always the same size my row height. This "ghost row" appears to have some kind of an overlay bug because although the bottom half of the row defaults to the panel background color, the top half of the row duplicates the last thing shown at that location on the screen.

If I scroll slowly it duplicates the top portion of the last row. If I scroll quickly it duplicates a portion of another row in the playlist. If I place an auto-hide panel below the playlist (on a vertical splitter) and reveal/hide that panel.. the ghost row displays whatever part of the autohide panel was above it.

I am running Windows Server 2003 Standard w/SP1 build 3790.
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-16 14:01:02
Question, I turned ClearType on once and it seems to remain in the Single Columsn after I shut it off even after restart, or does this component automatically enable it? and I just didn't notice it the first time


yeah, it defaults to cleartype on. you can use the nocleartype option when specifying fonts to turn off cleartype. eventually it will use the windows settings...

Actually, is there anyway you could leave a option to enable it by default? The reason for this is because Windows doesn't allow per-application settings for ClearType. And it would be great (for me) if ClearType was enabled in Foobar but not in the Windows environment because ClearType while making ANSI type fonts look good it makes unicode fonts in specfic Chinese horrid because it tends to just completely blur characters of smaller-sized fonts. This way it would be wonderful if Foobar had its own settings separate from the native Windows environment
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-16 14:34:28
Thanks for the update.

terrestrial, would you please make fb2k play a track when we press <enter>?

I have a display bug with Windows 2000. Right on top of the scp you can see the contents of a previously activated foreground window (here it was a chess game):

(http://minnit.de/etc/single_column_display_bug.png)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-16 15:06:39
can you guys with the display glitch please run this debug version, and tell me whats in the console (also be sure to scroll to the bottom of the playlist).

link (http://users.bowie-cass.com/singa/foo_uie_single_column_playlist_dbg.zip)
Title: foo_uie_single_column_playlist
Post by: Anas on 2006-10-16 15:40:16
Okay, here you are.
I started foobar, scrolled up to the top of the playlist and down again to the bottom.
Code: [Select]
Item Count: 36
Row Height: 15
ListView: 0,0,265,154
Max Rows: 11
Start Row: 11
Row Height: 15
ListView: 0,0,0,15
Max Rows: 1
Start Row: -1
Row Height: 15
ListView: 0,0,459,527
Max Rows: 35
Start Row: 1
Startup time : 0:04.412623
Paint: 0,525,459,527
Paint: 0,525,459,527
Paint: 0,525,459,527
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-10-16 15:40:17
can you guys with the display glitch please run this debug version, and tell me whats in the console (also be sure to scroll to the bottom of the playlist).

link (http://users.bowie-cass.com/singa/foo_uie_single_column_playlist_dbg.zip)
Here you go:
Code: [Select]
Item Count: 388
Row Height: 16
ListView: 0,0,263,154
Max Rows: 10
Start Row: 358
Row Height: 16
ListView: 0,0,0,16
Max Rows: 0
Start Row: -1
Row Height: 16
ListView: 0,0,130,16
Max Rows: 0
Start Row: 314
Row Height: 16
ListView: 0,0,668,764
Max Rows: 47
Start Row: 314
Row Height: 16
ListView: 0,0,668,815
Max Rows: 50
Start Row: 314
Row Height: 16
ListView: 0,0,796,877
Max Rows: 54
Start Row: 314
Startup time : 0:00.954322
Paint: 0,864,796,877
Paint: 0,864,796,877
Paint: 0,864,796,877
Paint: 0,864,796,877
Paint: 0,864,796,877
Paint: 0,864,796,877
But now I'm unable to reproduce: did you fix it?

Alessandro
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-16 17:32:32


EDIT: a small bug introduced with this update, it seems. I can't get it to focus on the playing item when changing tracks anymore.


I can confirm this bug.


I'm not quite sure I understand what this bug is?



Whenever changing tracks, the panel does not move to the song that is playing, even when 'Playback follows cursor' and 'Cursor follows playback' in the Playback menu are selected.

Also, whenever a playlist redraw (I guess) occurs, the list moves back to the top. This happens for example when editing file properties.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-16 21:19:36
I get the display glitch every time I open Foobar now.
Code: [Select]
Item Count: 15
Row Height: 15
ListView: 0,0,264,154
Max Rows: 11
Start Row: 4
Row Height: 15
ListView: 0,0,0,15
Max Rows: 1
Start Row: -1
Row Height: 15
ListView: 0,0,827,633
Max Rows: 42
Start Row: 0
Row Height: 15
ListView: 0,0,1033,634
Max Rows: 42
Start Row: 0
Title: foo_uie_single_column_playlist
Post by: PlazzTT on 2006-10-16 21:32:07
I'm having trouble getting images to load.

If the code says:

images\speaker.png

Where should the images folder be?

Are there any special files I need for images to work? I have libpng in my foobar2000 folder.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-17 00:13:49
I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.
Title: foo_uie_single_column_playlist
Post by: ledge on 2006-10-17 00:44:22
I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.


I had the same display glitch as Squeller above in Windows 2k and the new version fixed it. Nice one.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-17 02:35:18
The new version fixes my display glitch, thank you again terrestrial for your continued dedication to this wonderful component.

I do still get an extra blank row at the bottom of my playlists but the overlay glitch is gone and the row is filled with the panel background color.

Would it be possible to append rows like this to the bottom of groups that contain less than a given number of entries? This way we could do the side album art with albums that only contain a few tracks?
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-10-17 07:22:12
I"ve uploaded a new verison. Please let me know if it makes the glitches better. also, pressing enter should start playback now.
Unfortunately, the display glitch remains. Playback on enter works, thank you. Maybe upload another debug version?

It's a refresh bug anyhow. I've also noticed the following: I use columns ui latest alpha. Because your plugin didn't play on <enter> keypress, I have an auto hidden columns ui playlist on the right (I send keypresses with girder there). At every startup of fb2k, the room which would be taken by this hidden playlist panel is grey. (fb2k is strating up with 100% cpu some seconds because of autoplaylists). When fb2k is ready, this part, which is overlapping your panel, stays grey. The panel does not refresh. I have to go to another playlist and back in order to refresh it.

Another small issue you have left is if we go up with keyboard arrows, it does count the group rows as well. Going down works correct.

I had the same display glitch as Squeller above in Windows 2k and the new version fixed it. Nice one.
Are you sure? Maybe it displays just a unique line?
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-10-17 07:40:23
I've upgraded to the latest version, and enter still doesn't work? Any hints?

EDIT: Nevermind, lol. Somehow I still had an old version...
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-10-17 13:24:38
Unfortunately, the display glitch remains. Playback on enter works, thank you. Maybe upload another debug version?
Confirmed, unfortunately. And I confirm that with the debug version the symptom is gone (though there's an extra blank line at the end of the playlist).

Alessandro
Title: foo_uie_single_column_playlist
Post by: dmce on 2006-10-17 14:21:33
Is it possible to sort files coming from a playlist. I have favourite tracks on a playlist call favourites. When i load this into foobar i group using !noheader! as i just want a list of tracks. However i have two tracks that are 3rd and 4th in playlist (Artist: Oasis, Album: Whats The Story) I also have a different track by same artist and on same album that is 14th in list. I would like to get them to be displayed together (e.g 3rd, 4th and 5th).

I tried to sort incoming playlist by %artist% but nothing changed

This image give you a better idea of whats going on
foobar (http://2bn.net/files/13/foobarsnap.jpg)
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-10-17 14:46:26
Is it possible to sort files coming from a playlist. I have favourite tracks on a playlist call favourites. When i load this into foobar i group using !noheader! as i just want a list of tracks. However i have two tracks that are 3rd and 4th in playlist (Artist: Oasis, Album: Whats The Story) I also have a different track by same artist and on same album that is 14th in list. I would like to get them to be displayed together (e.g 3rd, 4th and 5th).

I tried to sort incoming playlist by %artist% but nothing changed

This image give you a better idea of whats going on
foobar (http://2bn.net/files/13/foobarsnap.jpg)


Although I don't know how to help you, you can use $if($stricmp(%playlist_name%,Favourites),,) instead of your current method.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-17 15:29:29



EDIT: a small bug introduced with this update, it seems. I can't get it to focus on the playing item when changing tracks anymore.


I can confirm this bug.


I'm not quite sure I understand what this bug is?



Whenever changing tracks, the panel does not move to the song that is playing, even when 'Playback follows cursor' and 'Cursor follows playback' in the Playback menu are selected.

Also, whenever a playlist redraw (I guess) occurs, the list moves back to the top. This happens for example when editing file properties.


Also, when pressing the up or down key on the keyboard, the list moves to the track now playing.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-17 16:24:32
I got the follow crash 2 times in the last half hour. Since nothing has changed in my configuration except the new version, I suspect it is related (and also because of the 'foobar2000_get_interface' in the crash log). I use Windows Vista RC2.

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 779218D3h
Access violation, operation: write, address: 00000014h
Call path:

This is the first crash logged by this instance.
Code bytes (779218D3h):
77921893h:  C0 89 4D F0 0F 84 37 88 FD FF 8B 4E 04 F6 C1 01
779218A3h:  8D 7E 04 0F 85 CF C6 00 00 8B 55 0C 90 8B C1 2B
779218B3h:  C2 8B D8 8B C1 F0 0F B1 1F 3B C1 0F 85 A8 C6 00
779218C3h:  00 33 C0 89 45 0C 89 45 08 8B 06 83 F8 FF 74 04
779218D3h:  83 40 14 01 8B 5D F4 8B 7D F0 90 80 3D 82 03 FE
779218E3h:  7F 00 0F 85 9B C6 00 00 8B 45 FC 83 F8 FF 57 6A
779218F3h:  00 0F 84 F1 C6 00 00 50 E8 C0 C3 FF FF 3D 02 01
77921903h:  00 00 0F 84 F1 C6 00 00 85 C0 0F 8C 87 C7 00 00
Stack (0635FE04h):
0635FDE4h:  00000000 00000000 00000000 00000000
0635FDF4h:  00000000 00000000 00000000 00000000
0635FE04h:  01320D50 01320D54 00000000 00000010
0635FE14h:  01320CF8 003DE0F8 004DE4B8 00000002
0635FE24h:  011B2548 00000002 0635FE50 C0000008
0635FE34h:  FFFFFFFF 00000002 0635FDD4 00000000
0635FE44h:  00000000 00000000 7FFDC000 0000011C
0635FE54h:  0635FE7C 7792181B 00000000 00000000
0635FE64h:  00000000 00000010 01320CF8 00000004
0635FE74h:  00000000 00000001 0635FEE0 003DC5AD
0635FE84h:  01320D50 1315F065 00000000 00000000
0635FE94h:  01322320 00000000 00004B4F 00000052
0635FEA4h:  01320178 00000000 00000002 0000000F
0635FEB4h:  01320148 00000000 013222B0 01322760
0635FEC4h:  00000000 00000000 00000000 0635FE88
0635FED4h:  0635FF88 003F0178 FFFFFFFF 0635FF50
0635FEE4h:  778D6396 00000118 0000011C 0635FE68
0635FEF4h:  01320CF8 00000035 00322320 00000035
0635FF04h:  003F90A8 504F5453 663D6320 000A6F6F
0635FF14h:  01320000 0000000B 0000000F 0635FF60
Registers:
EAX: 00000000, EBX: FFFFFFFC, ECX: 00000000, EDX: 00000004
ESI: 01320D50, EDI: 01320D54, EBP: 0635FE54, ESP: 0635FE04
Crash location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlTimeFieldsToTime" (+000002DCh)

Loaded modules:
foobar2000                       loaded at 00400000h - 004F3000h
ntdll                            loaded at 778C0000h - 779DD000h
kernel32                         loaded at 77320000h - 773F8000h
COMCTL32                         loaded at 74F30000h - 750C5000h
msvcrt                           loaded at 77400000h - 774AA000h
ADVAPI32                         loaded at 77260000h - 7731F000h
RPCRT4                           loaded at 76220000h - 762E3000h
GDI32                            loaded at 762F0000h - 7633B000h
USER32                           loaded at 76180000h - 7621E000h
SHLWAPI                          loaded at 77A80000h - 77AD5000h
SHELL32                          loaded at 76690000h - 7715B000h
ole32                            loaded at 77770000h - 778B4000h
shared                           loaded at 10000000h - 1002A000h
comdlg32                         loaded at 771E0000h - 77254000h
IMM32                            loaded at 77AE0000h - 77AFE000h
MSCTF                            loaded at 763D0000h - 76498000h
LPK                              loaded at 779F0000h - 779F9000h
USP10                            loaded at 77A00000h - 77A7D000h
uxtheme                          loaded at 75190000h - 751CF000h
foo_albumlist                    loaded at 00500000h - 00547000h
OLEAUT32                         loaded at 76340000h - 763CD000h
foo_audioscrobbler               loaded at 003D0000h - 00400000h
WS2_32                           loaded at 76600000h - 7662D000h
NSI                              loaded at 76680000h - 76686000h
foo_autoplaylist                 loaded at 00550000h - 00580000h
foo_cdda                         loaded at 012B0000h - 012E6000h
foo_converter                    loaded at 013A0000h - 01409000h
foo_dsp_std                      loaded at 01330000h - 01371000h
foo_freedb2                      loaded at 01410000h - 01450000h
foo_infobox                      loaded at 01450000h - 01490000h
foo_input_shorten                loaded at 014E0000h - 0150E000h
foo_input_std                    loaded at 01510000h - 01624000h
foo_masstag                      loaded at 01650000h - 016A0000h
foo_run                          loaded at 016A0000h - 016CB000h
foo_uie_albumart                 loaded at 01730000h - 01767000h
gdiplus                          loaded at 74830000h - 749DA000h
foo_uie_quicksearch              loaded at 01770000h - 017B7000h
foo_uie_single_column_playlist   loaded at 01820000h - 01873000h
MSVCP80                          loaded at 7C420000h - 7C4A7000h
MSVCR80                          loaded at 78130000h - 781CB000h
foo_uie_trackinfo_mod            loaded at 01880000h - 018CE000h
foo_ui_columns                   loaded at 01A10000h - 01AA7000h
foo_ui_std                       loaded at 018D0000h - 01927000h
dciman32                         loaded at 74360000h - 74366000h
PROPSYS                          loaded at 74730000h - 747E5000h
SETUPAPI                         loaded at 775E0000h - 77768000h
apphelp                          loaded at 75FB0000h - 75FDC000h
CLBCatQ                          loaded at 764A0000h - 76524000h
wpdshext                         loaded at 6BE50000h - 6C0BE000h
WINMM                            loaded at 72190000h - 721C3000h
OLEACC                           loaded at 74A10000h - 74A49000h
shdocvw                          loaded at 72F00000h - 73007000h
ieframe                          loaded at 71170000h - 71738000h
PSAPI                            loaded at 760E0000h - 760E6000h
iertutil                         loaded at 76630000h - 76675000h
USERENV                          loaded at 76030000h - 7604E000h
Secur32                          loaded at 76010000h - 76024000h
urlmon                           loaded at 774B0000h - 775D3000h
NLAapi                           loaded at 749E0000h - 749EF000h
IPHLPAPI                         loaded at 75A20000h - 75A39000h
dhcpcsvc                         loaded at 759E0000h - 75A14000h
DNSAPI                           loaded at 75C60000h - 75C8B000h
WINNSI                           loaded at 759D0000h - 759D7000h
dhcpcsvc6                        loaded at 759B0000h - 759D0000h
mswsock                          loaded at 757E0000h - 7581B000h
winrnr                           loaded at 726F0000h - 726F8000h
WLDAP32                          loaded at 77160000h - 771A9000h
napinsp                          loaded at 72630000h - 7263F000h
pnrpnsp                          loaded at 724B0000h - 724C2000h
wshbth                           loaded at 72620000h - 7262C000h
rasadhlp                         loaded at 751E0000h - 751E6000h
DSOUND                           loaded at 6F340000h - 6F3B1000h
POWRPROF                         loaded at 754D0000h - 754EA000h
MMDevApi                         loaded at 74700000h - 74727000h
WINTRUST                         loaded at 752D0000h - 752FD000h
CRYPT32                          loaded at 75AD0000h - 75BC1000h
MSASN1                           loaded at 75C20000h - 75C32000h
imagehlp                         loaded at 771B0000h - 771D9000h
audioses                         loaded at 704F0000h - 70511000h
audioeng                         loaded at 70150000h - 701B7000h
AVRT                             loaded at 74A00000h - 74A07000h
rsaenh                           loaded at 75570000h - 755A8000h
mlang                            loaded at 6F230000h - 6F260000h
dbghelp                          loaded at 72010000h - 720EC000h

Stack dump analysis:
Address: 003DE0F8h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+00009948h)
Address: 004DE4B8h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 7792181Bh, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlTimeFieldsToTime" (+00000224h)
Address: 003DC5ADh, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+00007DFDh)
Address: 003F0178h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+0001B9C8h)
Address: 778D6396h, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlGetLongestNtPathLength" (+00000056h)
Address: 003DE3F3h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+00009C43h)
Address: 003DC8C9h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+00008119h)
Address: 003DFE0Ah, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+0000B65Ah)
Address: 003E49C0h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+00010210h)
Address: 003DFEAFh, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+0000B6FFh)
Address: 7735C71Ch, location: "kernel32", loaded at 77320000h - 773F8000h
Symbol: "BaseThreadInitThunk" (+00000012h)
Address: 778EE2CFh, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlIsCurrentThreadAttachExempt" (+00000042h)
Address: 778D6396h, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlGetLongestNtPathLength" (+00000056h)
Address: 778EF0DDh, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlLCIDToCultureName" (+00000310h)
Address: 003DFE30h, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+0000B680h)
Address: 00480020h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 003D003Ch, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Address: 003F003Eh, location: "foo_audioscrobbler", loaded at 003D0000h - 00400000h
Symbol: "foobar2000_get_interface" (+0001B88Eh)
Address: 00410040h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 00430042h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 00450044h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 00470046h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 00490048h, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 004B004Ah, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 004D004Ch, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 004F004Eh, location: "foobar2000", loaded at 00400000h - 004F3000h
Address: 00510050h, location: "foo_albumlist", loaded at 00500000h - 00547000h
Symbol: "foobar2000_get_interface" (+00005700h)
Address: 00530052h, location: "foo_albumlist", loaded at 00500000h - 00547000h
Symbol: "foobar2000_get_interface" (+00025702h)
Address: 00550054h, location: "foo_autoplaylist", loaded at 00550000h - 00580000h
Address: 00570056h, location: "foo_autoplaylist", loaded at 00550000h - 00580000h
Symbol: "foobar2000_get_interface" (+0001B436h)
Address: 0192201Ah, location: "foo_ui_std", loaded at 018D0000h - 01927000h
Symbol: "foobar2000_get_interface" (+0003BA2Ah)
Address: 0178017Eh, location: "foo_uie_quicksearch", loaded at 01770000h - 017B7000h
Symbol: "foobar2000_get_interface" (+0000D7AEh)
Address: 00500060h, location: "foo_albumlist", loaded at 00500000h - 00547000h
Address: 778CFF20h, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "RtlFindAceByType" (+00000A98h)
Address: 7799271Ah, location: "ntdll", loaded at 778C0000h - 779DD000h
Symbol: "fltused" (+000093EAh)

Version info:
foobar2000 v0.9.4.1
UNICODE

Additional info:
Autoplaylist Manager 1.0  (foo_autoplaylist)
Run services 0.3.2  (foo_run)
Shorten decoder 0.4.2a  (foo_input_shorten)
CD Audio Decoder 2.1.1  (foo_cdda)
Album Art Panel 0.2.5.1  (foo_uie_albumart)
Masstagger 1.6  (foo_masstag)
Columns UI 0.1.3 beta 1v6 TEST  (foo_ui_columns)
Track info panel mod 0.6 beta [Oct 12 2006 - 10:42:55]  (foo_uie_trackinfo_mod)
FLAC Decoder 1.1.0  (foo_input_std)
freedb Tagger 0.5.2a  (foo_freedb2)
Converter 1.0.1  (foo_converter)
Standard Input Array 1.0  (foo_input_std)
Album List 3.2.0  (foo_albumlist)
Default User Interface 0.9acc  (foo_ui_std)
Quick Search Toolbar 2.8j  (foo_uie_quicksearch)
WMA Decoder 1.1  (foo_input_std)
Single Column Playlist Display 0.3.2 beta [Oct 16 2006 - 12:21:19]  (foo_uie_single_column_playlist)
Standard DSP array 1.0  (foo_dsp_std)
Special file info box 2.0.4  (foo_infobox)
Audioscrobbler 2.1  (foo_audioscrobbler)
foobar2000 core v0.9.4.1  (Core)
Title: foo_uie_single_column_playlist
Post by: dmce on 2006-10-17 16:26:26
Although I don't know how to help you, you can use $if($stricmp(%playlist_name%,Favourites),,) instead of your current method.


Thanks, i will give it a look. My whole config is a mess as it was a case of getting it working, then attempting to clean it up
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-18 04:55:03
What's the best way of handling different formats of album covers ? Or should I just convert it all into pngs?
Title: foo_uie_single_column_playlist
Post by: david_dl on 2006-10-18 07:17:51
What's the best way of handling different formats of album covers ? Or should I just convert it all into pngs?


You could just make copies with the extension .png. They don't actually have to be in png format, as GDI+ ignores the filename (a filthy hack, I know).
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-18 08:15:19
What's the best way of handling different formats of album covers ? Or should I just convert it all into pngs?


You could just make copies with the extension .png. They don't actually have to be in png format, as GDI+ ignores the filename (a filthy hack, I know).



I wouldn't recommend doing that way.
Its quite simple really. All you need to do is copy your string and add different formats like I've done with mine
Code: [Select]
$imageabs2(76,76,,,,,12,2,'D:\Multimedia Tools\Audio Tools\foobar2000\images\no-cover.jpg',)
$imageabs2(76,76,,,,,12,2,$replace(%path%,%filename_ext%,)cover.jpg,)
$imageabs2(76,76,,,,,12,2,$replace(%path%,%filename_ext%,)cover.jpeg,)
$imageabs2(76,76,,,,,12,2,$replace(%path%,%filename_ext%,)cover.bmp,)
$imageabs2(76,76,,,,,12,2,$replace(%path%,%filename_ext%,)cover.png,)
Title: foo_uie_single_column_playlist
Post by: kkamion on 2006-10-18 16:04:46
I have a question

Most of my cover images are stored in C:\Program Files\Samurize\covers in format artist - album
Part of covers are in album folders, various names in jpeg format

My group display is (thank you moxamax for sharing )

Quote
$puts(artfnt0,$font(Calibri,10,bold,195-195-195))
$puts(abmfnt0,$font(Calibri,11,,120-120-120))
$puts(techfnt0,$font(Calibri,8,,195-195-195))

$if($greater($strstr(%playlist_name%,Radio),0),$puts(is_single,1))
$if($greater($strstr(%playlist_name%,Single),0),$puts(is_single,1))
$if($not(%tracknumber%),$puts(is_single,1))

$ifequal($mod(%_playlist_number%,2),0,
$drawrect(0,0,0,1,brushcolor-240-240-240 pencolor-null),
$drawrect(0,87,0,1,brushcolor-240-240-240 pencolor-null))
$drawrect($sub(%_width%,15),10,15,0,brushcolor-241-249-250 pencolor-null)
$imageabs(,,'FCS\unique\head_bg.png',)

$ifequal($get(is_single),1,
$if(%filesize%,
$imageabs2(60,60,,,,,2,20,'FCS\unique\sgcover.png',),
$imageabs2(60,60,,,,,2,20,'FCS\unique\radiocover.png',)),
$imageabs2(60,60,,,,,2,20,'FCS\unique\nocover.png',))
$imageabs2(60,60,,,,,2,20,$replace(%path%,%filename_ext%,)cover.jpg,)

$ifequal($get(is_single),1,
$alignabs(70,42,$add(%_width%,-107),20,left,middle)
$get(abmfnt0)$if(%filesize%,SINGLES,ONLINE RADIO)
,
$alignabs(70,27,$add(%_width%,-107),20,left,middle)
$get(artfnt0)$if2(%album artist%,$if2(%artist%,UNKNOWN))

$alignabs(70,42,$add(%_width%,-107),20,left,middle)
$get(abmfnt0)$if2($upper(%album%),UNKNOWN)

$alignabs(70,55,$add(%_width%,-107),20,left,middle)
$get(techfnt0)[%genre%', '][%codec% ][$info(bitrate)K]
)


what would be the best way to display my images in single column playlist?
i tried adding some lines, but unsuccesfully. i moved to single column just recentley so i'm trying to catch up.

my old album art sources were
Quote
$replace(%_path%,%_filename_ext%,)%artist%*
$replace(%path%,%filename_ext%,)*
-C:\Program Files\Samurize\covers\%artist% - %album%.*
-components\default.png

and that worked just fine

I would appreciate any help.
Title: foo_uie_single_column_playlist
Post by: mr. pi on 2006-10-18 16:26:02
hi foobar guys,

your images looks all really great. but i've one question. how does this single playlist work with various artist albums like v.a. - album (year)\track# - artist - title? cause all tracks have a different artist.

thx

the pi
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-18 16:52:24
hi foobar guys,

your images looks all really great. but i've one question. how does this single playlist work with various artist albums like v.a. - album (year)\track# - artist - title? cause all tracks have a different artist.

thx

the pi

For VA Cds, you should put in a %ALBUM ARTIST% tag, usually I tend to just put the CD name as it.

Edit:
@blaxima thanks
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-10-18 17:03:11

hi foobar guys,

your images looks all really great. but i've one question. how does this single playlist work with various artist albums like v.a. - album (year)\track# - artist - title? cause all tracks have a different artist.

thx

the pi

For VA Cds, you should put in a %ALBUM ARTIST% tag, usually I tend to just put the CD name as it.

Edit:
@blaxima thanks


Yeah I do that to, I just put a subjective thing I'd associate with it so for the Garden State Soundtrack I put "Zach Braff" as he chose the soundtrack.
Title: foo_uie_single_column_playlist
Post by: Nitrius on 2006-10-18 17:04:38
How dose this plugin work? its installed but i can't find anywhere to edit the plugin...
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-18 17:36:05
How dose this plugin work? its installed but i can't find anywhere to edit the plugin...

Once you enable the panel inside ColumnsUI, the Column appears and you have to right click and choose settings to use it
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-10-18 19:41:18
Any idea why the playlist switcher doesn't switch playlists..?
Also, the quicksearch toolbar doesn't make the corresponding playlist become active...
And the playlist dropdown doesn't activate the playlist either..

I've had this problem for a while, but it's only just started to bug me..
Title: foo_uie_single_column_playlist
Post by: kkamion on 2006-10-18 19:58:43
@spex

right click on a single column playlist---activate playlist
Title: foo_uie_single_column_playlist
Post by: ilSavio on 2006-10-18 20:32:23
Hi, i have a question.
What code i have to use to make the plugin show only the Artist and Title and no header when a song doesn't have tracknumber?
If the tracks are part of an album the plugin shows:
HEADER
title
title
title
...
...

When a song doesn't have tracknumber I want the plugin to show:
Artist-title
Artist-title
Artist-title
...

Thanks, i don't know how to write the code to do this... 
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-10-18 23:00:54
@spex

right click on a single column playlist---activate playlist


Thanks.. can't believe I missed that 
Title: foo_uie_single_column_playlist
Post by: sitemap on 2006-10-19 14:53:58
suggestion: right click drag & drop (as in columns ui)
Title: foo_uie_single_column_playlist
Post by: marc2003 on 2006-10-19 15:11:42
Hi, i have a question.
What code i have to use to make the plugin show only the Artist and Title and no header when a song doesn't have tracknumber?
If the tracks are part of an album the plugin shows:
HEADER
title
title
title
...
...

When a song doesn't have tracknumber I want the plugin to show:
Artist-title
Artist-title
Artist-title
...

Thanks, i don't know how to write the code to do this... 


here you go....

group by
Code: [Select]
$if(%tracknumber%,%album%,!noheader!)


item display
Code: [Select]
$if(%tracknumber%,%title%,%artist%' - '%title%)


Title: foo_uie_single_column_playlist
Post by: ilSavio on 2006-10-19 15:17:22

Hi, i have a question.
What code i have to use to make the plugin show only the Artist and Title and no header when a song doesn't have tracknumber?
If the tracks are part of an album the plugin shows:
HEADER
title
title
title
...
...

When a song doesn't have tracknumber I want the plugin to show:
Artist-title
Artist-title
Artist-title
...

Thanks, i don't know how to write the code to do this... 


here you go....

group by
Code: [Select]
$if(%tracknumber%,%album%,!noheader!)


item display
Code: [Select]
$if(%tracknumber%,%title%,%artist%' - '%title%)




Thank you! 
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-19 22:22:11
Coppertop's description of our focus bug are correct. The plugin no longer obeys 'Playback Follow Cursor' nor 'Cursor Follows Playback' anymore.

I'll try the latest version now to see about the display glitch and playing on enter feature. Thanks again for the quick responses.

EDIT: Oh, Another thing. Scrolling sometimes 'fails' here - page down scrolls upwards from the bottom of the list no matter where i was at when clicking it. Vice versa for page up. The other single bug ive seen besides those is having to press X times to go above a header (X being the group row count).
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-10-19 22:28:24
suggestion: right click drag & drop (as in columns ui)


I thought that its a left click!!
But its something I want very much too. I find myself jumping back and forth from columns ui to do some things still
Title: foo_uie_single_column_playlist
Post by: PlazzTT on 2006-10-19 23:29:37
Is there a site for single_column_playlist and/or trackinfomod configs?
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-20 00:47:34
no
Title: foo_uie_single_column_playlist
Post by: cristina on 2006-10-20 01:51:10
hi. a newbe here
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: [Select]
$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
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-10-20 05:09:34
hi. a newbe here
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: [Select]
$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.
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-10-20 16:11:26
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!
Title: foo_uie_single_column_playlist
Post by: El Nino on 2006-10-20 16:36:43
Sorry, could anybody take a look at this piece of code cuz I'm going nuts already 
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: [Select]
 
$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))
Title: foo_uie_single_column_playlist
Post by: vonmeth on 2006-10-20 20:11:42
$puts(tracks,$add($get(tracks),1))
Title: foo_uie_single_column_playlist
Post by: Snowsfall on 2006-10-21 03:29:46
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
Title: foo_uie_single_column_playlist
Post by: ciaran on 2006-10-21 08:46:23
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&# (http://www.hydrogenaudio.org/forums/index.php?showtopic=4899&st=225&p=80111&#)

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

Thx
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-10-21 09:03:58
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.
Title: foo_uie_single_column_playlist
Post by: ...Just Elliott on 2006-10-21 09:25:12
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.
Title: foo_uie_single_column_playlist
Post by: El Nino on 2006-10-21 09:44:45
$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
Title: foo_uie_single_column_playlist
Post by: LXtreme on 2006-10-21 12:06:16
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!
Title: foo_uie_single_column_playlist
Post by: El Nino on 2006-10-21 20:19:38
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 
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-10-21 20:34:29
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.
Title: foo_uie_single_column_playlist
Post by: LXtreme on 2006-10-21 22:22:26
...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 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=43077&view=findpost&p=442831) for my scpl-view:
Code: [Select]
$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: [Select]
$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  )

any help is appreciated!
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-10-21 22:53:02
terrestrial, could you please fix support for columns ui's globals? it works well in your track info panel mod, but still not here.
Title: foo_uie_single_column_playlist
Post by: Snowsfall on 2006-10-22 00:09:00
i am using parts of Snowsfall's group display code (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=43077&view=findpost&p=442831) for my scpl-view:
Code: [Select]
$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: [Select]
$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  )

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.
Title: foo_uie_single_column_playlist
Post by: LXtreme on 2006-10-22 00:40:39
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  .

nevertheless, thanx for your beautiful and inspiring code!!! 
Title: foo_uie_single_column_playlist
Post by: cacko on 2006-10-22 09:22:49
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 ?
Title: foo_uie_single_column_playlist
Post by: Betse on 2006-10-22 09:47:41
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.
Title: foo_uie_single_column_playlist
Post by: Joelimite on 2006-10-22 18:12:02
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.

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.
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-10-22 22:06:22
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
Title: foo_uie_single_column_playlist
Post by: BlindSeer on 2006-10-23 01:23:38
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.
Title: foo_uie_single_column_playlist
Post by: kejkz on 2006-10-23 01:46:17

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...
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-10-23 03:33: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. =]
Title: foo_uie_single_column_playlist
Post by: david_dl on 2006-10-23 03:40:39
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.
Title: foo_uie_single_column_playlist
Post by: BlindSeer on 2006-10-23 04:24:11


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...

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].
Title: foo_uie_single_column_playlist
Post by: vulc44n on 2006-10-23 10:25:37
excellent.  With the latest version 'enter' now begins playback of the selected file for me.

Seems to be working better overall... Great work.
Title: foo_uie_single_column_playlist
Post by: jonpb on 2006-10-24 06:20:33
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.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-24 06:38:31
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.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-24 15:48:15
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%)))
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-10-24 19:20:43
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 ?
Title: foo_uie_single_column_playlist
Post by: Nait on 2006-10-24 20:45:53
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% ?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-24 22:50: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.
Title: foo_uie_single_column_playlist
Post by: Insolent on 2006-10-25 05:42:00
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: [Select]
$cut(%_path%,$sub($len(%path%),$len(%_filename_ext%)))

Title: foo_uie_single_column_playlist
Post by: Brendan on 2006-10-25 07:35:08
(http://img291.imageshack.us/img291/6999/wipfooqu7.th.jpg) (http://img291.imageshack.us/my.php?image=wipfooqu7.jpg)

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: [Select]
... $imageabs2(%_width%,%_height%,0,0,%_width%,%_height%,0,0,C:\playlist\ovrly.png,alpha-90) ....
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-10-25 12:34:35
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...
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2006-10-25 14:22:10
One bug report 

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
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-10-25 14:30:03
@Tool ++
(http://img.photobucket.com/albums/v142/Tool_Meep_Meep/2006-09-02_foo-2.png)
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)
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-25 14:33:05
Code: [Select]
$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.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-25 15:07:11
alphaex32, is that all you are using for the code?  Or is there more that you haven't posted?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-25 15:41:39
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.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-25 16:03:12
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.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-25 18:18:35
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.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-25 18:38:52
Maybe you can fix it with you sort order? Edit > Sort > Sort by file path
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-10-25 18:51:38
Maybe you can fix it with you sort order? Edit > Sort > Sort by file path

Wow, it worked    I can't believe it was that easy
Title: foo_uie_single_column_playlist
Post by: sune on 2006-10-26 00:29:09
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
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-26 04:42:58
is there a way to set an image as the background for the whole panel?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-26 04:56:49
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 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=426245) post.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-26 05:06:40
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 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=426245) 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)
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-10-26 17:35:39
 Yes I have done it 
[a href="http://imageshack.us" target="_blank"] 
Code for the pictures
Code: [Select]
 $align(left,top)%list_index%        %tracknumber%      %Codec% $imageabs(150,($mul(%list_index%,16)),icons\%codec%.png,)
Title: foo_uie_single_column_playlist
Post by: odyssey on 2006-10-26 22:23:34
Any chance that a single column panel will have an option to detach from playlist in the future?

If so, a panel could be created to replace album list panel with a nice list including album art
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-10-26 23:57:58
Yes! I want a replacement for foo_browser! I want album art in THERE!
Title: foo_uie_single_column_playlist
Post by: Bellfazar on 2006-10-27 02:42:38
I've got a quick question for the brains in this thread.

My config is set up to use a rating system that basically checks to see what the rating is (00-05) and displays that many stars at the far right of my single_column_playlist in item display.  Now, I want to expand that a bit to have the play_counter influence the rating of the track.  My idea was to put a bit of code right before the bit that generates the stars that says something like "if %play_counter% is less than 5, rating = 00, if %play_counter% is less than 10 but greater than 5, rating = 01" and so forth.

My problem is that I can't seem to figure out how to feed a value in to an already defined ID3 field.  I thought about using $put() but it didn't seem to work.  Does anyone have any ideas?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-27 06:08:18
I do still get an extra blank row at the bottom of my playlists but the overlay glitch is gone and the row is filled with the panel background color.

Would it be possible to append rows like this to the bottom of groups that contain less than a given number of entries? This way we could do the side album art with albums that only contain a few tracks?


do you get a blank row on all your playlists? it's a whole blank row right- not a partial one? As for adding in blank rows, I will try to add it in for the next version.


I got the follow crash 2 times in the last half hour. Since nothing has changed in my configuration except the new version, I suspect it is related (and also because of the 'foobar2000_get_interface' in the crash log). I use Windows Vista RC2.


doesn't look like it's related to scpl.. it's more likely that something else + vista don't get along.


Coppertop's description of our focus bug are correct. The plugin no longer obeys 'Playback Follow Cursor' nor 'Cursor Follows Playback' anymore.

I'll try the latest version now to see about the display glitch and playing on enter feature. Thanks again for the quick responses.


I'm still not able to reproduce this. please post a screeshot if possible. both "Playback follows cursor" and "Cursor follows playback" seems to be working for me...

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.


no, not really feasible here, unfortunately.


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


will try to get it in for the next version.

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&# (http://www.hydrogenaudio.org/forums/index.php?showtopic=4899&st=225&p=80111&#)

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

Thx


I'll try to add HSL support for the next version also.

terrestrial, could you please fix support for columns ui's globals? it works well in your track info panel mod, but still not here.


I will fix it, but I'm curious as to what you use the globals for? It doesn't help with performance any here (in fact, the opposite). Is it so that the same code isn't in two different places, or is there another use for globals that I'm missing?

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


not quite sure I get this one either... maybe a screenshot?

--------------

edit: and for the people who still have the display glitches with the rows... when you scroll, it always scrolls in whole-row increments right? The top row should always be whole...

also, for the people with the problems, what version of comctl32.dll do you have?
Title: foo_uie_single_column_playlist
Post by: sune on 2006-10-27 07:36:12
Since updating to 0.3.2, my titles/albums have started wrapping onto the next level down (if they're too wide to fit), covering up any information i've got there. Any way to stop this from happening?


sorry I do not know the answer to your question, but I wanted to ask:
What do you mean the next level down? the next line? or inside the same line? Cause what I'm trying to do is to force the wrapping of the text and I can't figure out how! If use $alignabs2(,,,,, top) it does wrap, but if I set Bottom, it doesn't, even though there is space...(24 pixel high lines)
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-10-27 08:04:58
Any chance that a single column panel will have an option to detach from playlist in the future?

If so, a panel could be created to replace album list panel with a nice list including album art



Yes! I want a replacement for foo_browser! I want album art in THERE!

Seeing how slow SCP can become with only a few 600*600 album art, it would be just awful with a whole library... You would have to resize all your covers and even if you did so, i doubt it would go fast enough.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-27 08:29:38
do you get a blank row on all your playlists? it's a whole blank row right- not a partial one? As for adding in blank rows, I will try to add it in for the next version.

...

edit: and for the people who still have the display glitches with the rows... when you scroll, it always scrolls in whole-row increments right? The top row should always be whole...

also, for the people with the problems, what version of comctl32.dll do you have?


(http://img138.imageshack.us/img138/4645/scrollbugop1.th.gif) (http://img138.imageshack.us/my.php?image=scrollbugop1.gif)

The blank row at the bottom is not the same height as a row, instead it appears as though the entire list is scrolling too far and the "blank line" is the height of whatever would be visible if the playlist was 1 entry longer.

I experimented by changing my row height but this had no effect on the blank row.

If the foobar window is resized vertically while the blank row is displayed, the row expands to fill the space until the blank row is the same height as normal row. At which point the entire playlist jumps down one row and the blank row begins to expand from 0 again.

When I scroll the playlist it always scrolls in increments of 1 row height (is is possible to change this to 1 pixel row? I rather like the "smooth scroll" look to things). My COMCTL32.DLL identifies itself as v5.82.3790.2778 and should be the default version for Win2k3 SP1.
Title: foo_uie_single_column_playlist
Post by: mobyduck on 2006-10-27 10:07:07
The blank row at the bottom is not the same height as a row, instead it appears as though the entire list is scrolling too far and the "blank line" is the height of whatever would be visible if the playlist was 1 entry longer.

I experimented by changing my row height but this had no effect on the blank row.

If the foobar window is resized vertically while the blank row is displayed, the row expands to fill the space until the blank row is the same height as normal row. At which point the entire playlist jumps down one row and the blank row begins to expand from 0 again.
A darn good explanation, thanks for that.  And, FWIW, the current behaviour is perfectly acceptable to me: what I'd really like to see is $tab support.

Anyway, here (Win2000 SP4) COMCTL32.DLL is 5.81.4916.400.

HTH.

Alessandro
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-27 13:25:54
5.82.5744.16384 here (Vista RC2).

terrstrial, Whenever i switch to a new track with keyboard hotkeys or after searching for a track, It starts playing but the playlist does not focus on it anymore even if 'Cursor Follows Playback' is enabled. Also, My statusbar action is set to focus on the playing track upon doubleclick - That also no longer works, The playing track does not get focused.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-27 14:47:14

Coppertop's description of our focus bug are correct. The plugin no longer obeys 'Playback Follow Cursor' nor 'Cursor Follows Playback' anymore.

I'll try the latest version now to see about the display glitch and playing on enter feature. Thanks again for the quick responses.


I'm still not able to reproduce this. please post a screeshot if possible. both "Playback follows cursor" and "Cursor follows playback" seems to be working for me...



I did some more expirimenting and found out some more details. 'Playback follows cursor' works, maybe it already got fixed or I somehow confused it with 'Cursor follows playback' 

[a href="http://img91.imageshack.us/my.php?image=foobar1vy7.jpg" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-27 15:58:58
The blank row at the bottom is not the same height as a row, instead it appears as though the entire list is scrolling too far and the "blank line" is the height of whatever would be visible if the playlist was 1 entry longer.

I experimented by changing my row height but this had no effect on the blank row.

If the foobar window is resized vertically while the blank row is displayed, the row expands to fill the space until the blank row is the same height as normal row. At which point the entire playlist jumps down one row and the blank row begins to expand from 0 again.

When I scroll the playlist it always scrolls in increments of 1 row height (is is possible to change this to 1 pixel row? I rather like the "smooth scroll" look to things). My COMCTL32.DLL identifies itself as v5.82.3790.2778 and should be the default version for Win2k3 SP1.


this is normal behavior, then. the last "blank" row should be filled with the background color, and should always be less than the row height. this space is what's left over after all the rows get displayed (since scrolling only goes in 1 row increments). I don't think its possible to change the incrementing behavior.


A darn good explanation, thanks for that.  And, FWIW, the current behaviour is perfectly acceptable to me: what I'd really like to see is $tab support.

Anyway, here (Win2000 SP4) COMCTL32.DLL is 5.81.4916.400.

HTH.

Alessandro


$tab would be kinda redundant... you can use one of the $align functions instead.


5.82.5744.16384 here (Vista RC2).

terrstrial, Whenever i switch to a new track with keyboard hotkeys or after searching for a track, It starts playing but the playlist does not focus on it anymore even if 'Cursor Follows Playback' is enabled. Also, My statusbar action is set to focus on the playing track upon doubleclick - That also no longer works, The playing track does not get focused.


I'm not able to reproduce any of that... maybe it's a vista thing. I'll see if I can test it out on vista later today.  Anyone else with the same symptoms.. and what OS are you running?


To conclude: it looks like that when the next item that is to played is not in the current screen, the whole screen jumps back to the top of the playlist.

I really hope this helps and that my explanation is understandable


so the playlist jumps and the focused/selected item is not visible? its off screen to the top? it should center the item in the middle of the screen.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-27 16:22:57

5.82.5744.16384 here (Vista RC2).

terrstrial, Whenever i switch to a new track with keyboard hotkeys or after searching for a track, It starts playing but the playlist does not focus on it anymore even if 'Cursor Follows Playback' is enabled. Also, My statusbar action is set to focus on the playing track upon doubleclick - That also no longer works, The playing track does not get focused.


I'm not able to reproduce any of that... maybe it's a vista thing. I'll see if I can test it out on vista later today.  Anyone else with the same symptoms.. and what OS are you running?


To conclude: it looks like that when the next item that is to played is not in the current screen, the whole screen jumps back to the top of the playlist.

I really hope this helps and that my explanation is understandable


so the playlist jumps and the focused/selected item is not visible? its off screen to the top? it should center the item in the middle of the screen.


Yes, the playlist jumps and the focused/selected item is not visible.

I'm also using Vista, I'm trying my Foobar installation on a Windows 2000 PC soon.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-27 18:09:51
Coppertop to the rescue again. Exact description of the problem.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-27 18:09:55
I moved my Foobar installation to a Windows 2000 PC and the problem was no longer there, so it looks like a Vista-specific problem

I really hope you can try to fix the problem, but I understand if you don't want to because it is Vista-related.

Funny thing: the garbled last line bug that doesn't occur on my Vista PC, did immediatly show up on the Windows 2000 PC.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-27 18:50:59
Well, Vista isn't too far off, And it is going to be a widely used operating system. It is possible, However, That it is indeed a bug in the updated COMCTL32 in Vista. Anyone else with Windows 2003 and\or XP to test it out?
Title: foo_uie_single_column_playlist
Post by: cic on 2006-10-27 21:30:35
I can't display any images, I tried $imageabs(0,0,images\somerandomimage.png,) (I placed images\somerandomimage.png in the foobar-directory) but no image. 
Nobody else seem to have this problem . No error, no crash or something like that, just nothing...
I have no idea what to do. No copy-n-past code posted previously in this thread works either, so I don't think its a problem with my code. Do I need to get some other plugin for the imageabs function or something like that?

The whole code:
Code: [Select]
$font(calibri,10,bold,)
$alignabs(10,9,200,50,,)
%artist%
$imageabs(0,0,images\somerandomimage.png,)
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-10-27 22:19:34
terrestrial, could you please fix support for columns ui's globals? it works well in your track info panel mod, but still not here.

I will fix it, but I'm curious as to what you use the globals for? It doesn't help with performance any here (in fact, the opposite). Is it so that the same code isn't in two different places, or is there another use for globals that I'm missing?

yes, i have some strings in columns_ui globals like strings for va album detection, color schemes etc.
Title: foo_uie_single_column_playlist
Post by: vulc44n on 2006-10-27 23:26:14
Would it be possible to have sort within group format box?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-28 05:24:10
I've uploaded a new version. Please see if that fixes (some) of the vista issues.
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-10-28 10:08:08
 Thank you very much! The 'scrolling' problem is fixed!
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-28 11:20:40
Confirmed, Fixed here too. As a developer, I'm interested to know how did you fix it, If you don't mind

The filesize seems to be the same.. Is it just a recompile against the vista DLL ?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-28 16:31:34
Confirmed, Fixed here too. As a developer, I'm interested to know how did you fix it, If you don't mind

The filesize seems to be the same.. Is it just a recompile against the vista DLL ?


some problem with LVM_GETITEMPOSITION. replaced it with some code to manually calculate the position and amount to scroll.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-10-28 19:37:45
I see. Well, Good work
Title: foo_uie_single_column_playlist
Post by: rocketsauce on 2006-10-28 21:44:57
Great plugin!

I would love to have an option to control "Item rows" in the same way that "Group rows" are controlled...if it's possible.

Rob
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-29 04:25:35
Great plugin!

I would love to have an option to control "Item rows" in the same way that "Group rows" are controlled...if it's possible.

Rob


just make the row height taller
Title: foo_uie_single_column_playlist
Post by: rocketsauce on 2006-10-29 07:01:09

Great plugin!

I would love to have an option to control "Item rows" in the same way that "Group rows" are controlled...if it's possible.

Rob


just make the row height taller


What I meant was I would like to specify a row height and then set "Item rows" in the same way that "Group rows" can currently be set. I want to set row height to 13 and set "Group rows" = 1 and "Item rows" = 2.

Rob
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-10-29 15:34:52
You can't specify how many `lines' there are per track, but you can make the row twice as high and align some content below the first `row', so it would appear to be two rows.  This is what Nick was referring to, I believe.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-29 15:51:54
Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.

Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.
Title: foo_uie_single_column_playlist
Post by: Moe-loves-ayumi on 2006-10-29 16:27:44
Can some1 tell me the code to display a picture if there is no album art.

in other words i need the code to check if there is album art present.
This is not possible to test if an image exist. But you can display a "no-cover" image : make a code to display an "no-cover" image and make another code to display the cover after the previous code. So, if there is a cover, the cover will hide the no-cover image.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-29 18:18:22
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?

(http://www.seriosuploader.com/files/1/letters.jpg)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-10-29 19:41:53
What is the code you are using for your track number? Are you confining the text by an $alignabs() or $padding()?
Title: foo_uie_single_column_playlist
Post by: rocketsauce on 2006-10-29 21:21:04
You can't specify how many `lines' there are per track, but you can make the row twice as high and align some content below the first `row', so it would appear to be two rows.  This is what Nick was referring to, I believe.


I know that I can't specify how many "lines per track". That's why I was saying that I would like that as an option...as in a feature request. I have already increased the row height. I would just like the group header rows to be half the height of the item rows.

Rob
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-30 00:59:55
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?

(http://www.seriosuploader.com/files/1/letters.jpg)

Try aligning your text to the "top" of the row.  Some of the new microsoft fonts, which it appears you are using, have numbers that have different vertical offsets, such as 9 and 6.
Title: foo_uie_single_column_playlist
Post by: SuperPhly on 2006-10-30 02:02:17
I have a job. I am very busy. I don't have time to setup my foobar to my exact specifications, but I do have time to use someone else's code. I cannot find the code you guys are using in Single Column... where can I find that junk?

Thanks
Title: foo_uie_single_column_playlist
Post by: thuan on 2006-10-30 02:15:13
You can just ask/PM the person has the Single Column config to your taste and ask for his/her code.
Title: foo_uie_single_column_playlist
Post by: phunkydizco on 2006-10-30 07:22:41
My track numbers are getting cut off. All my other columns are fine eg artist & title. I've tried to adjust the row height but that doesn't seem to help. Any ideas?

(http://www.seriosuploader.com/files/1/letters.jpg)


How did you make this layout? Could you please post your code?
Title: foo_uie_single_column_playlist
Post by: Gord on 2006-10-30 08:34:47
How did you make this layout? Could you please post your code?



This topic here (http://www.hydrogenaudio.org/forums/index.php?showtopic=49401&st=0&).
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-30 16:02:51
item:

$imageabs(2,$if($strcmp(%tracknumber%,01),0,$add(17,$mul(-17,%tracknumber%))),images\album_overlay.png,)
$imageabs(3,$if($strcmp(%tracknumber%,01),1,$add(18,$mul(-17,%tracknumber%))),$replace($replace(images\albums\
$directory(%path%,2)\$directory(%path%,1)\mini.png,',',),?,),)

$font(calibri,10,bold,)
$if($strcmp(%tracknumber%,01),$alignabs(113,1,170,55,,)
$if(%artist%,%artist%,$font(Calibri,10,italic bold,)Artist unknown))
$if($strcmp(%tracknumber%,02),$alignabs(113,1,170,55,,)
$if(%album%,%album%,$font(Calibri,10,italic bold,)Album unknown))
$if($strcmp(%tracknumber%,03),$alignabs(113,1,170,55,,)
$if(%genre%,%genre%,$font(Calibri,10,italic bold,)Genre unknown))
$if($strcmp(%tracknumber%,04),$alignabs(113,1,170,55,,)
$if(%date%,%date%,$font(Calibri,10,italic bold,)Date unknown))

$if(%_selected%,$drawrect(277,1,550,16,brushcolor-216-216-216 pencolor-210-210-210))

/// Now Playing
/////////////////////////////////
$if(%isplaying%,
$font(calibri,10,,0-160-0)
$alignabs(284,1,30,12,,)
$ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))
$alignabs(317,1,250,20,,)%title%
$alignabs(467,1,120,20,right,)%length%

$font(calibri,10,,114-116-120)
$alignabs(691,1,220,20,left,)%artist%

//// Rating
/////////////////////////
$puts(rating,%play_counter%)
$if($greater($get(rating),4),$puts(rating,5))
$if($equal($get(rating),0),$puts(rating,0))
$if($stricmp(%play_counter%,?),$puts(rating,0))
$imageabs(604,0,images\$get(rating)s1.png,)
,

/// Inactive tracks
/////////////////////////
$font(calibri,10,,0-0-0)
$alignabs(284,1,30,12,,)
$ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))
$alignabs(317,1,245,20,,)%title%
$alignabs(467,1,120,20,right,)%length%
$font(calibri,10,,114-116-120)
$alignabs(691,1,220,20,left,)%artist%

//// Rating
/////////////////////////
$puts(rating,%play_counter%)
$if($greater($get(rating),4),$puts(rating,5))
$if($equal($get(rating),0),$puts(rating,0))
$if($stricmp(%play_counter%,?),$puts(rating,0))
$imageabs(604,0,images\$get(rating)s1.png,)

)




Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-10-30 16:11:25
Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off

I posted earlier that you might need to align your text to the top of the item row.  The new Vista fonts have some numbers that are aligned differently, such as the numbers 9 and 6.

In your code, where you see $alignabs, the last two positions in the code deal with horizontal and vertical alignment.  If you put "top" in the last position, I believe it will work.

For example:
Instead of
$alignabs(113,1,170,55,,)
Use
$alignabs(113,1,170,55,,top)
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-30 16:15:36

Didnt write most of this so if some1 could tell me which bit is causing the track number to cut off

I posted earlier that you might need to align your text to the top of the item row.  The new Vista fonts have some numbers that are aligned differently, such as the numbers 9 and 6.

In your code, where you see $alignabs, the last two positions in the code deal with horizontal and vertical alignment.  If you put "top" in the last position, I believe it will work.

For example:
Instead of
$alignabs(113,1,170,55,,)
Use
$alignabs(113,1,170,55,,top)


didnt fix it
Title: foo_uie_single_column_playlist
Post by: sune on 2006-10-30 17:52:17
didnt fix it

make your row heigth bigger, leaving the text aligned to the top of the row. you'll see how many pixels you need your row to be so that the text fits.

or, change the font size (10)
or, change the font (calibri)

  $if(%isplaying%,
  $font(calibri,10,,0-160-0)
  $alignabs(284,1,30,12,,)
  $ifgreater(%tracknumber%,9,%tracknumber%,$right(%tracknumber%,1))

sune
Title: foo_uie_single_column_playlist
Post by: azazel100 on 2006-10-30 20:49:43
Great plugin ;]

Bugs:


requests:
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-30 23:11:56
requests:

  • would it be possible to make this plugin not single instance, and add abilitiy for instances to have different configs and alsow be fixed to a specific playlist?

    my goal is to have one view displaying fixed playlist feed by playlist tree, displaying cover art, ane one with regular playlists.


it is multiple instance (and with selectable playlists...). the keyboard shortcuts, however, always refer to the active playlist.
Title: foo_uie_single_column_playlist
Post by: jonpb on 2006-10-31 03:08:22
I noticed that the SDK distinguishes between an active playlist and a playing playlist. It seems that with single_column_playlist, the playing playlist is always the active playlist even though you may be viewing a different playlist. Is there a reason for this? I'm asking because I have, perhaps an unconventional layout where I have a dedicated "Now Playing" playlist and a dedicated "Browser" playlist. With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist, which in my case, when viewing the "Browser", is the "Now Playing" playlist not the "Browser" playlist.

Perhaps I'm not understanding the foobar2000 concept of "active" and "playing" playlists.

Thanks.

[EDIT]
Quote
it is multiple instance (and with selectable playlists...)

That explains the way it acts this way, for instance you could have more then one panel in your layout viewing different playlists, which one is "active" in this scenario? I only have one panel showing, and I use the single_columns_playlist context menu playlist selection to switch playlists, so this didn't occur to me.

Still, I wonder if there is some solution to using foo_uie_quicksearch, for my particular layout?
Title: foo_uie_single_column_playlist
Post by: azazel100 on 2006-10-31 03:37:49
it is multiple instance (and with selectable playlists...). the keyboard shortcuts, however, always refer to the active playlist.


Thanks. All i needed was to place it in another tab container. And it's a bummer with these keyboard shortcuts... 
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-10-31 04:13:13
Would it be possible to give a group minimum item count? So that if group is smaller it is explode into several smaller groups without header?



$ifgreater(3, %_itemcount%,!noheader!,)

That should work, but the !noheader! command isn't working for me for some reason... Did it get removed?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-10-31 08:04:07
I noticed that the SDK distinguishes between an active playlist and a playing playlist. It seems that with single_column_playlist, the playing playlist is always the active playlist even though you may be viewing a different playlist. Is there a reason for this? I'm asking because I have, perhaps an unconventional layout where I have a dedicated "Now Playing" playlist and a dedicated "Browser" playlist. With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist, which in my case, when viewing the "Browser", is the "Now Playing" playlist not the "Browser" playlist.

Perhaps I'm not understanding the foobar2000 concept of "active" and "playing" playlists.

Thanks.


no, active and playing playlists are different. in any case I've switched things around for the new version to make things work better.


$ifgreater(3, %_itemcount%,!noheader!,)

That should work, but the !noheader! command isn't working for me for some reason... Did it get removed?


you can't use %_itemcount% in the group by box... there are no groups when the group by string is evaluated, hence no %_itemcount%. it's the chicken and the egg problem.

--------

I've uploaded a new version. hopefully I didn't break anything.. If anyone still has graphical glitches, let me know.
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-10-31 09:49:26
No more graphical glitches for me, thank you very much!  :>
Title: foo_uie_single_column_playlist
Post by: Corelian on 2006-10-31 10:27:16
No more graphical glitches, thank you very much!  :>

Yes there are. At least the corruption at the top of the playlist remains (also reported by Squeller on some earlier version).
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-31 19:00:50
I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)
Title: foo_uie_single_column_playlist
Post by: sune on 2006-10-31 20:41:39
I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)

All those values are pixels:

*60,60 = width,heigth of the bounding box of the image
*the missing " , " = would be the left and top offset of the image inside that box
*60,60 = width and heigth displayed
*17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = x-position, y-position    (absolute, referring to the row)

[blockquote]$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = if(tracknumber=1), then y-pos= 3, else y-pos= 25 + ((-22)x(tracknumber)).
So if tracknumber is 1, then y-pos = 3
                          is 2, then y-pos = 25+(-22x2) = -19
                          is 3, then y-pos = 25+(-22x3) = -41
so, x-pos is constant in every track (17 pixels), and y-pos depends on the track number ( if this wasn't so, each row would display the top-piece of the image. repeating it 3 times..like this, each piece of the image starts 22 pixels (which I assume is your row heigth)  more to the top than in the previous row, making the 3 pieces fit togethershowing the complete image.[/blockquote]

*$replace(%path%,%filename_ext%,folder.jpg) = the path of your image

I hope I explained it fine, it's kind of hard in english.. 

sune
Title: foo_uie_single_column_playlist
Post by: odyssey on 2006-10-31 20:55:24
I'm having a problem using multiple singlecolumn panels. If I choose a different playlist in both panels, and double-click an item to start playing, it only works in one panel. If I doubleclick in the other panel it would start playing (Edit) the selected track from the other playlist  I'd be glad if I could just swap the panels, so the one working is actually the one I wanted to use LOL

Another edit: I think I was able to "swap" the active panel by creating a new playlist... But still   
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-10-31 23:42:51

I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)

All those values are pixels:

*60,60 = width,heigth of the bounding box of the image
*the missing " , " = would be the left and top offset of the image inside that box
*60,60 = width and heigth displayed
*17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = x-position, y-position    (absolute, referring to the row)

[blockquote]$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = if(tracknumber=1), then y-pos= 3, else y-pos= 25 + ((-22)x(tracknumber)).
So if tracknumber is 1, then y-pos = 3
                          is 2, then y-pos = 25+(-22x2) = -19
                          is 3, then y-pos = 25+(-22x3) = -41
so, x-pos is constant in every track (17 pixels), and y-pos depends on the track number ( if this wasn't so, each row would display the top-piece of the image. repeating it 3 times..like this, each piece of the image starts 22 pixels (which I assume is your row heigth)  more to the top than in the previous row, making the 3 pieces fit togethershowing the complete image.[/blockquote]

*$replace(%path%,%filename_ext%,folder.jpg) = the path of your image

I hope I explained it fine, it's kind of hard in english.. 

sune


Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-10-31 23:52:35
Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing


When you use $imageabs2 you need to put the full path of the image
Try this code:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,C:\Program files\foobar2000\images\vista1\002.png,)

(or replace C:\Program files\foobar2000\ with the right folder)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-01 00:37:37
I'm having a problem using multiple singlecolumn panels. If I choose a different playlist in both panels, and double-click an item to start playing, it only works in one panel. If I doubleclick in the other panel it would start playing (Edit) the selected track from the other playlist  I'd be glad if I could just swap the panels, so the one working is actually the one I wanted to use LOL

Another edit: I think I was able to "swap" the active panel by creating a new playlist... But still   


are you using the last version from yesterday?
Title: foo_uie_single_column_playlist
Post by: odyssey on 2006-11-01 00:47:50
are you using the last version from yesterday?

I need to update more often  I got the one from 27. oct. I'll test this one
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-01 01:01:45
@terrestrial

Will you add $button function to this component?
I'm waiting for it.

Regards.
Title: foo_uie_single_column_playlist
Post by: jonpb on 2006-11-01 02:26:04
With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist


no, active and playing playlists are different. in any case I've switched things around for the new version to make things work better.

Thanks for the quick response, foo_uie_quicksearch is working as expected now.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-01 13:31:55

Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing


When you use $imageabs2 you need to put the full path of the image
Try this code:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,C:\Program files\foobar2000\images\vista1\002.png,)

(or replace C:\Program files\foobar2000\ with the right folder)


ahh i get it.  But if i want to use imageabs2 to display a image in my foobar (USB drive) how would i do that (as in the drive letter will vary depending on PC) is there a %path% for foobar?

many thanks
Title: foo_uie_single_column_playlist
Post by: phunkydizco on 2006-11-01 13:45:28
I can't display any images, I tried $imageabs(0,0,images\somerandomimage.png,) (I placed images\somerandomimage.png in the foobar-directory) but no image. 
Nobody else seem to have this problem . No error, no crash or something like that, just nothing...
I have no idea what to do. No copy-n-past code posted previously in this thread works either, so I don't think its a problem with my code. Do I need to get some other plugin for the imageabs function or something like that?

The whole code:
Code: [Select]
$font(calibri,10,bold,)
$alignabs(10,9,200,50,,)
%artist%
$imageabs(0,0,images\somerandomimage.png,)


I am having the same problem. Have you fix it?
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-01 15:04:54

I can't display any images, I tried $imageabs(0,0,images\somerandomimage.png,) (I placed images\somerandomimage.png in the foobar-directory) but no image. 
Nobody else seem to have this problem . No error, no crash or something like that, just nothing...
I have no idea what to do. No copy-n-past code posted previously in this thread works either, so I don't think its a problem with my code. Do I need to get some other plugin for the imageabs function or something like that?

The whole code:
Code: [Select]
$font(calibri,10,bold,)
$alignabs(10,9,200,50,,)
%artist%
$imageabs(0,0,images\somerandomimage.png,)


I am having the same problem. Have you fix it?


for $imageabs the image must be in C:\Documents and settings\YOURNAME\Application data\foobar2000, not in C:\Program files\Foobar2000. Maybe you put the images in the wrong folder. Check it.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-11-01 17:20:06
Thanks for the update Terrestrial, love the wildcard and fileexist options.

How do you implement the horizontal and vertical align options?
edit: I don't need this now thanks to the NOKEEPASPECT (thats no keep aspect), took me a while to work out what that meant

Can't wait to see these in Track Info Panel.
Title: foo_uie_single_column_playlist
Post by: bangbang023 on 2006-11-02 00:32:11
Ok, I actually have a setup from Neowin working. I had the images in the foobar program directory instead of my application data directory. The only thing now is that I need to find a way to not display a header or album art when there is less than, say, 4 tracks in the album. I am sorting by %directoryname%. Unfortunately, because I don't have all full albums, the "totaltracks" variable tends to be a bit unreliable. I need to find someway to count it by files in the directory or something of the sort. Can you guys perhaps think of something or a variable that I could use that I simply don't know of?
Title: foo_uie_single_column_playlist
Post by: nauqneyugn on 2006-11-02 04:07:44
I'm in need of some troubleshooting help. 

I'm using a very slightly modified version of tool++'s single column style and I'm having some trouble with the placement of album art. 

The config uses this line to display the art:

$imageabs2(90,90,,,,,0,$mul($sub(%tracknumber%,1),-15),$replace(%path%,%filename_ext%,)folder.jpg,)

As far as I know, the "90,90" should be resizing the image, but then why does this occur (the Yeah Yeah Yeahs album cover):

(http://img80.imageshack.us/img80/6312/foobarsfoobarmh4.gif) (http://imageshack.us)

Thanks!
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-11-02 04:17:53
I'm in need of some troubleshooting help. 

I'm using a very slightly modified version of tool++'s single column style and I'm having some trouble with the placement of album art. 

The config uses this line to display the art:

$imageabs2(90,90,,,,,0,$mul($sub(%tracknumber%,1),-15),$replace(%path%,%filename_ext%,)folder.jpg,)

As far as I know, the "90,90" should be resizing the image, but then why does this occur (the Yeah Yeah Yeahs album cover):

Thanks!


Because the size of the image is not an even aspect ratio. Resize the image to say 300x300
Title: foo_uie_single_column_playlist
Post by: nauqneyugn on 2006-11-02 04:28:02
Because the size of the image is not an even aspect ratio. Resize the image to say 300x300


Apparently it does matter that it is an even aspect ratio, but then why do we define both the height and width of a picture?  Aren't the first two values in $imageabs2 supposed to resize the picture to the values I want?
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-11-02 04:32:15

Because the size of the image is not an even aspect ratio. Resize the image to say 300x300


Apparently it does matter that it is an even aspect ratio, but then why do we define both the height and width of a picture?  Aren't the first two values in $imageabs2 supposed to resize the picture to the values I want?


Because thats how the plugin handles images. It will resize an image to what you specify but it cannot manipulate the aspect ratio.
Title: foo_uie_single_column_playlist
Post by: nauqneyugn on 2006-11-02 04:40:35
Because thats how the plugin handles images. It will resize an image to what you specify but it cannot manipulate the aspect ratio.


Ahh ok, thanks for the answer.  Much appreciated!
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-11-02 11:16:30
Get the latest version and add NOKEEPASPECT as an option to stretch the image to fit 300x300
Title: foo_uie_single_column_playlist
Post by: LXtreme on 2006-11-02 11:18:08
Bug or my fault?!

I'm using the latest version (foo_uie_single_column_playlist (2006-10-31)) in my "Compact-Mode-View" (columns design). In "Full-Mode-View" i use the columns playlist. Switching between these two modes is provided by a button. So far i had no problems with this configuration.

But with the latest update of SCPL i get in trouble when switching from Full to Compact View:
SCPL shows the active playlist, but every song is shown like a group (based on my group config).
When i switch to another playlist, it is shown correctly. And when i switch back to the active playlist it is shown correctly now, too.

Any ideas?!
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-11-02 11:39:39
Bug or my fault?!

I'm using the latest version (foo_uie_single_column_playlist (2006-10-31)) in my "Compact-Mode-View" (columns design). In "Full-Mode-View" i use the columns playlist. Switching between these two modes is provided by a button. So far i had no problems with this configuration.

But with the latest update of SCPL i get in trouble when switching from Full to Compact View:
SCPL shows the active playlist, but every song is shown like a group (based on my group config).
When i switch to another playlist, it is shown correctly. And when i switch back to the active playlist it is shown correctly now, too.

Any ideas?!

I have the same problem as you. For me the problem also appears while changing the layout. And like you everything s ok when i change playlist.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-11-02 14:52:07
I can confirm I also had this problem when I was removing something from my columns_ui layout.
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-02 15:30:10
Same problem here too while changing the layout.
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2006-11-02 16:26:45
It must be the same bug i posted on side 32 of this thread. It occurs when i use tabs (not layouts like you). Notice also the other bug i mentioned.

EDIT: Sorry! No it isn't the same. can somebody confirm what occured to me?
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2006-11-02 16:43:44
(I am sorry if this bug is already mentioned but now i haven't much time to read the last pages)

Bug:

If and only if the SCP doesn't shows the active playlist but the playing one or a special one (defined in context menu) this occurs:  it is not possible to start playback by doubleclicking an item. Playback starts but in most cases the active playlist begins to play.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-02 17:18:43

No more graphical glitches, thank you very much!  :>

Yes there are. At least the corruption at the top of the playlist remains (also reported by Squeller on some earlier version).


can you please post a screenshot.

@terrestrial

Will you add $button function to this component?
I'm waiting for it.

Regards.


eventually... no idea when though

Bug or my fault?!

I'm using the latest version (foo_uie_single_column_playlist (2006-10-31)) in my "Compact-Mode-View" (columns design). In "Full-Mode-View" i use the columns playlist. Switching between these two modes is provided by a button. So far i had no problems with this configuration.

But with the latest update of SCPL i get in trouble when switching from Full to Compact View:
SCPL shows the active playlist, but every song is shown like a group (based on my group config).
When i switch to another playlist, it is shown correctly. And when i switch back to the active playlist it is shown correctly now, too.

Any ideas?!


screenshot?
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-02 17:35:24
Before:
(http://xs108.xs.to/xs108/06444/before.png.xs.jpg) (http://xs.to/xs.php?h=xs108&d=06444&f=before.png)

After:
(http://xs108.xs.to/xs108/06444/after.png.xs.jpg) (http://xs.to/xs.php?h=xs108&d=06444&f=after.png)

I normally use SCPL but sometimes I switch via hotkey to my lyrics layout, after switching back from my lyrics layout to my SCPL layout playlist is like in the after screenshot. This can be fixed just like LXtreme said, switch to another playlist and it is shown correctly...
Title: foo_uie_single_column_playlist
Post by: Corelian on 2006-11-02 17:53:06


No more graphical glitches, thank you very much!  :>

Yes there are. At least the corruption at the top of the playlist remains (also reported by Squeller on some earlier version).

can you please post a screenshot.

Squeller already posted a screenshot, but here goes. There seems to be two lines of corrupted pixels always at the top of the playlist:
(http://www.elisanet.fi/devnull/SCP_playlist_corruption.png)

foobar2000 0.9.4.1
Columns UI 0.1.3 beta 1v5
Single Column Playlist Display 0.3.2 beta Oct 31
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-02 18:22:38
please try this (http://users.bowie-cass.com/singa/foo_uie_single_column_playlist-dbg.zip) version and post back the contents of the console.
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-02 18:30:50
dunno if you meant to try this version for my problem too but here it is:
Code: [Select]
Playlist: 0 | ubi's
0: Ashes Against the Grain
8: Enter
14: So Divided
25: The Eraser
34: Moletopopolis
44: Return to the Sea
55: Veneer
66: Alaska
77: Jesu
82: The Anatomy Of
WndRect: [132,125,411,279]
ListViewRect: [132,125,411,279]
WndRect: [132,527,132,542]
ListViewRect: [132,527,132,542]
WndRect: [335,578,732,968]
ListViewRect: [335,578,732,968]
Startup time : 0:03.227711
WndRect: [335,578,732,949]
ListViewRect: [335,578,732,949]
WndRect: [335,578,732,968]
ListViewRect: [335,578,732,968]
Playlist: 0 | ubi's
0: 01. Agalloch - [Ashes Against the Grain-2006 #01] Limbs 9:51
1: 02. Agalloch - [Ashes Against the Grain-2006 #02] Falling Snow 9:39
2: 03. Agalloch - [Ashes Against the Grain-2006 #03] This White Mountain on Which You Will Die 1:39
3: 04. Agalloch - [Ashes Against the Grain-2006 #04] Fire Above, Ice Below 10:29
4: 05. Agalloch - [Ashes Against the Grain-2006 #05] Not Unlike the Waves 9:16
5: 06. Agalloch - [Ashes Against the Grain-2006 #06] Our Fortress is Burning... I 5:26
6: 07. Agalloch - [Ashes Against the Grain-2006 #07] Our Fortress is Burning... II - Bloodbirds 6:21
7: 08. Agalloch - [Ashes Against the Grain-2006 #08] Our Fortress is Burning... III - the Grain 7:10
8: 09. Russian Circles - [Enter-2006 #01] Carpe 9:01
9: 10. Russian Circles - [Enter-2006 #02] Micah 8:03
10: 11. Russian Circles - [Enter-2006 #03] Death Rides A Horse 5:46
11: 12. Russian Circles - [Enter-2006 #04] Enter 7:54
12: 13. Russian Circles - [Enter-2006 #05] You Already Did 8:15
13: 14. Russian Circles - [Enter-2006 #06] New Macabre 5:18
14: 15. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #01] Intro: A Song Of Fire And Wine 1:42
15: 16. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #02] Stand In Silence 4:35
16: 17. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #03] Wasted State Of Mind 5:27
17: 18. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #04] Naked Sun 6:04
18: 19. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #05] Gold Heart Mountain Top Queen Directory 2:14
19: 20. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #06] So Divided 6:29
20: 21. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #07] Life 5:59
21: 22. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #08] Eight Day Hell 2:09
22: 23. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #09] Witches Web 4:11
23: 24. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #10] Segue: In The Realms Of The Unreal 2:19
24: 25. And You Will Know Us By The Trail Of Dead - [So Divided-2006 #11] Sunken Dreams 5:05
25: 26. Thom Yorke - [The Eraser-2006 #01] The Eraser 4:56
26: 27. Thom Yorke - [The Eraser-2006 #02] Analyse 4:03
27: 28. Thom Yorke - [The Eraser-2006 #03] The Clock 4:13
28: 29. Thom Yorke - [The Eraser-2006 #04] Black Swan 4:50
29: 30. Thom Yorke - [The Eraser-2006 #05] Skip Divided 3:36
30: 31. Thom Yorke - [The Eraser-2006 #06] Atoms For Peace 5:14
31: 32. Thom Yorke - [The Eraser-2006 #07] And It Rained All Night 4:16
32: 33. Thom Yorke - [The Eraser-2006 #08] Harrowdown Hill 4:39
33: 34. Thom Yorke - [The Eraser-2006 #09] Cymbal Rush 5:15
34: 35. Deathmøle - [Moletopopolis-2006 #01] The Prince Is Born 4:11
35: 36. Deathmøle - [Moletopopolis-2006 #02] Unicorn Remains 4:04
36: 37. Deathmøle - [Moletopopolis-2006 #03] The Unicorn Prince Approaches The Fire Centaur Clan (With A Gift Of Smoldering Ash From The Crater Of Mount Unimpous) 4:20
37: 38. Deathmøle - [Moletopopolis-2006 #04] Unicorn Battle 2:52
38: 39. Deathmøle - [Moletopopolis-2006 #05] With Flowing Manes They Charge 3:41
39: 40. Deathmøle - [Moletopopolis-2006 #06] Unicorn Waltz 4:29
40: 41. Deathmøle - [Moletopopolis-2006 #07] The Pyrrhic Victory of The Unicorn Prince 7:13
41: 42. Deathmøle - [Moletopopolis-2006 #08] Cycloptic Ashes Like Fallen Snow 5:35
42: 43. Deathmøle - [Moletopopolis-2006 #09] Death Comes To The Unicorn Prince 7:03
43: 44. Deathmøle - [Moletopopolis-2006 #10] We Tell The Tales Of Those We Vanquish 5:12
44: 45. Islands - [Return to the Sea-2006 #01] Swans (Life After Death) 9:33
45: 46. Islands - [Return to the Sea-2006 #02] Humans 5:00
46: 47. Islands - [Return to the Sea-2006 #03] Don't Call Me Whitney, Bobby 2:32
47: 48. Islands - [Return to the Sea-2006 #04] Rough Gem 3:37
48: 49. Islands - [Return to the Sea-2006 #05] Tsuxiit 3:05
49: 50. Islands - [Return to the Sea-2006 #06] Where There's a Will There's a Whalebone 3:57
50: 51. Islands - [Return to the Sea-2006 #07] Jogging Gorgeous Summer 2:47
51: 52. Islands - [Return to the Sea-2006 #08] Volcanoes 5:27
52: 53. Islands - [Return to the Sea-2006 #09] If 4:33
53: 54. Islands - [Return to the Sea-2006 #10] Ones 6:12
54: 55. Islands - [Return to the Sea-2006 #11] Renaud 16:21
55: 56. José González - [Veneer-2003 #01] Slow Moves 2:52
56: 57. José González - [Veneer-2003 #02] Remain 3:46
57: 58. José González - [Veneer-2003 #03] Lovestain 2:17
58: 59. José González - [Veneer-2003 #04] Heartbeats 2:40
59: 60. José González - [Veneer-2003 #05] Crosses 2:43
60: 61. José González - [Veneer-2003 #06] Deadweight On Velveteen 3:27
61: 62. José González - [Veneer-2003 #07] All You Deliver 2:20
62: 63. José González - [Veneer-2003 #08] Stay In The Shade 2:23
63: 64. José González - [Veneer-2003 #09] Hints 3:52
64: 65. José González - [Veneer-2003 #10] Save Your Day 2:30
65: 66. José González - [Veneer-2003 #11] Broken Arrows 1:58
66: 67. Between the Buried and Me - [Alaska-2005 #01] All Bodies 6:12
67: 68. Between the Buried and Me - [Alaska-2005 #02] Alaska 3:58
68: 69. Between the Buried and Me - [Alaska-2005 #03] Croakies and Boatshoes 2:22
69: 70. Between the Buried and Me - [Alaska-2005 #04] Selkies: the Endless Obsession 7:23
70: 71. Between the Buried and Me - [Alaska-2005 #05] Breathe In, Breathe Out 0:56
71: 72. Between the Buried and Me - [Alaska-2005 #06] Roboturner 7:07
72: 73. Between the Buried and Me - [Alaska-2005 #07] Backwards Marathon 8:27
73: 74. Between the Buried and Me - [Alaska-2005 #08] Medicine Wheel 4:18
74: 75. Between the Buried and Me - [Alaska-2005 #09] The Primer 4:46
75: 76. Between the Buried and Me - [Alaska-2005 #10] Autodidact 5:31
76: 77. Between the Buried and Me - [Alaska-2005 #11] Laser Speed 2:53
77: 78. Jesu - [Jesu-2005 #01] Your Path To Divinity 9:15
78: 79. Jesu - [Jesu-2005 #02] Friends Are Evil 9:44
79: 80. Jesu - [Jesu-2005 #03] Tired of Me 9:31
80: 81. Jesu - [Jesu-2005 #04] We All Faulter 6:57
81: 82. Jesu - [Jesu-2005 #05] Walk on Water 11:24
82: 83. Between the Buried and Me - [The Anatomy Of-2006 #01] Blackened (Metallica) 6:40
83: 84. Between the Buried and Me - [The Anatomy Of-2006 #02] Kickstart My Heart (Mötley Crüe) 4:55
84: 85. Between the Buried and Me - [The Anatomy Of-2006 #03] The Day I Tried to Live (Soundgarden) 5:29
85: 86. Between the Buried and Me - [The Anatomy Of-2006 #04] Bicycle Race (Queen) 3:09
86: 87. Between the Buried and Me - [The Anatomy Of-2006 #05] Three of a Perfect Pair (King Crimson) 4:11
87: 88. Between the Buried and Me - [The Anatomy Of-2006 #06] Us and Them (Pink Floyd) 7:52
88: 89. Between the Buried and Me - [The Anatomy Of-2006 #07] Geek U.S.A. (Smashing Pumpkins, The) 5:25
89: 90. Between the Buried and Me - [The Anatomy Of-2006 #08] Forced March (Earth Crisis) 3:52
90: 91. Between the Buried and Me - [The Anatomy Of-2006 #09] Territory (Sepultura) 4:51
91: 92. Between the Buried and Me - [The Anatomy Of-2006 #10] Change (Blind Melon) 4:07
92: 93. Between the Buried and Me - [The Anatomy Of-2006 #11] Malpractice (Faith No More) 4:02
93: 94. Between the Buried and Me - [The Anatomy Of-2006 #12] Little 15 (Depeche Mode) 4:32
94: 95. Between the Buried and Me - [The Anatomy Of-2006 #13] Cemetary Gates (Pantera) 7:06
95: 96. Between the Buried and Me - [The Anatomy Of-2006 #14] Colorblind (Counting Crows) (Bonus Track) 3:47
WndRect: [335,176,614,330]
ListViewRect: [335,176,614,330]
WndRect: [335,578,732,968]
ListViewRect: [335,578,732,968]
WndRect: [335,578,732,949]
ListViewRect: [335,578,732,949]
WndRect: [335,578,732,968]
ListViewRect: [335,578,732,968]

startup-->SCPL-->switch to lyrics layout-->switch back to SCPL layout
Title: foo_uie_single_column_playlist
Post by: Corelian on 2006-11-02 19:04:00
Code: [Select]
WndRect: [132,125,411,279]
ListViewRect: [134,127,409,277]
Playlist: 0 | Playlist
0: The White Stripes
17: The Life Pursuit
30: Layla and Other Assorted Love Songs
WndRect: [132,125,411,279]
ListViewRect: [134,127,409,277]
WndRect: [494,230,1177,907]
ListViewRect: [496,232,1175,905]
WndRect: [494,152,1177,907]
ListViewRect: [496,154,1175,905]
Startup time : 0:00.908829
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-02 20:58:03
Ive very nearly got foobar looking how i want it thank to u guys.  My only problem is single tracks.

I'm gonna tag all my single tracks correctly this weekend. I was wondering which is the best way to tag them as singles?

and how would i check if a song is a single or part of a album?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-02 21:27:59
ok, I've uploaded another debug version. it should fix the corruption / grouping problems, but I'd still like the console output from someone who had the display corruption, please.
Title: foo_uie_single_column_playlist
Post by: Corelian on 2006-11-02 21:33:33
ok, I've uploaded another debug version. it should fix the corruption / grouping problems, but I'd still like the console output from someone who had the display corruption, please.

Yes, the corruption is gone, it's actually replaced by two lines of grey pixels.
Code: [Select]
WndClientRect: [0,0,275,150]
WndRect: [132,125,411,279]
ListViewRect: [134,127,409,277]
WndClientRect: [0,0,275,150]
WndRect: [132,125,411,279]
ListViewRect: [134,127,409,277]
WndClientRect: [0,0,679,673]
WndRect: [467,283,1150,960]
ListViewRect: [469,285,1148,958]
WndClientRect: [0,0,679,751]
WndRect: [467,205,1150,960]
ListViewRect: [469,207,1148,958]
Startup time : 0:00.800851
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-02 21:57:29
Yes, I can confirm that this version fixes the grouping problems at least in my case
Title: foo_uie_single_column_playlist
Post by: odyssey on 2006-11-03 10:30:35

I'm having a problem using multiple singlecolumn panels. If I choose a different playlist in both panels, and double-click an item to start playing, it only works in one panel. If I doubleclick in the other panel it would start playing (Edit) the selected track from the other playlist  I'd be glad if I could just swap the panels, so the one working is actually the one I wanted to use LOL

Another edit: I think I was able to "swap" the active panel by creating a new playlist... But still   


are you using the last version from yesterday?

I tried the 30. Oct release. Multiple playlists are still (even more?) messed up. Especially if you drag-drop tracks from explorer into a panel, it almost never shows up - Sometimes it ends up in another playlist and other times they just disappear.

And a follow up: Any plans on implementing $button in this?
Title: foo_uie_single_column_playlist
Post by: LXtreme on 2006-11-03 10:59:03
Yes, I can confirm that this version fixes the grouping problems at least in my case


grouping problem fixed by debug version here, too 

(btw: problem only occured, if one playlist was active (playing/paused))
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-03 11:37:24
Startup time : 0:15.500766
WndClientRect: [0,0,279,154]
WndRect: [788,379,1067,533]
ListViewRect: [788,379,1067,533]
WndClientRect: [0,0,458,523]
WndRect: [788,379,1246,902]
ListViewRect: [788,379,1246,902]


It fixes the issue. Release compile please (fo' speed <3).

You're doing a damn good job, terrestrial
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-11-03 12:20:55
ok, I've uploaded another debug version. it should fix the corruption / grouping problems, but I'd still like the console output from someone who had the display corruption, please.
Where can I find the debug version? I want to test when I'm at home.
Title: foo_uie_single_column_playlist
Post by: Chaser on 2006-11-03 13:50:10
I guess you should try this link: http://users.bowie-cass.com/singa/foo_uie_...laylist-dbg.zip (http://users.bowie-cass.com/singa/foo_uie_single_column_playlist-dbg.zip)
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-11-03 14:24:56
OK, the display bug (display of window background on top) has gone. The panel displays grey there now, which looks way better.

Code: [Select]
WndClientRect: [0,0,279,154]
WndRect: [106,100,385,254]
ListViewRect: [106,100,385,254]
WndClientRect: [0,0,0,14]
WndRect: [110,100,110,114]
ListViewRect: [110,100,110,114]
WndClientRect: [0,0,707,191]
WndRect: [272,499,979,690]
ListViewRect: [272,499,979,690]
WndClientRect: [0,0,1020,253]
WndRect: [4,495,1024,748]
ListViewRect: [4,495,1024,748]
WndClientRect: [0,0,715,218]
WndRect: [268,476,983,694]
ListViewRect: [268,476,983,694]
WndClientRect: [0,0,1020,272]
WndRect: [4,476,1024,748]
ListViewRect: [4,476,1024,748]
Startup time : 0:10.211114
WndClientRect: [0,0,1020,251]
WndRect: [4,497,1024,748]
ListViewRect: [4,497,1024,748]
WndClientRect: [0,0,1020,272]
WndRect: [4,476,1024,748]
ListViewRect: [4,476,1024,748]
WndClientRect: [0,0,1020,251]
WndRect: [4,497,1024,748]
ListViewRect: [4,497,1024,748]
WndClientRect: [0,0,1020,272]
WndRect: [4,476,1024,748]
ListViewRect: [4,476,1024,748]
WndClientRect: [0,0,1020,251]
WndRect: [4,497,1024,748]
ListViewRect: [4,497,1024,748]
WndClientRect: [0,0,1020,272]
WndRect: [4,476,1024,748]
ListViewRect: [4,476,1024,748]
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-03 20:45:14
updated.

I rewrote most of the keyboard / mouse handling stuff so there may be some bugs, but on the whole it should work a lot better now.
Title: foo_uie_single_column_playlist
Post by: carmenm on 2006-11-03 20:48:48
Thanks Terrestrial for this update. Seeing that you are working on the mouse, would it be possible to have an action on middle mouse button. I really miss the delete with middle mouse button feature from Columns UI
Title: foo_uie_single_column_playlist
Post by: Corelian on 2006-11-03 21:52:00
Thank you for your efforts terrestrial.
Title: foo_uie_single_column_playlist
Post by: henn1ng on 2006-11-04 00:02:25
first of all, thanks for the updates!

but there is still one major feature im missing for this component and i think tool++ has mentioned it before:

the ability to set a minimal group size.

this would bring alot more structure to my playlist.

thx in advance.

henn1ng
Title: foo_uie_single_column_playlist
Post by: chiwou on 2006-11-04 01:01:42
hi there
I am using this plugin for a long time, but now I have a prob ^^ yeah I am using the current version

Code: [Select]
drawrect(0,0,0,0,brushcolor-159-190-80 pencolor-139-170-60)
$imageabs(0,0,'images\bg1.png',flow)

$imageabs(0,0,images\1bit\folder.png,flow)

$padding(22,0)
$align(left,middle)
$font(Segoe UI,9,bold,51-67-11)
$if($meta_test(album artist),%album%,%artist%)

$padding(-20,2)

$align(right,top)
$font(Segoe UI,7,bold,71-87-31)
$if($meta_test(album artist),%album artist%,%album%)

$align(right,bottom)
$font(kroeger 05_55,6,,91-107-51)
[%date% '| '][%genre%]


and the $align option dont work right for me
especially the top alignment, when I change it to middle or bottom the text appears "correct"  but I want to align the album informations to the right top

cya
chiwou
Title: foo_uie_single_column_playlist
Post by: xxchrno on 2006-11-04 02:01:24
is it me or the links are down? i cant download the current verson that terrestial posted
Title: foo_uie_single_column_playlist
Post by: Tomacco_Boy on 2006-11-04 08:36:16
I dont know if this is a bug or not, but you used to be able to select a group of tracks and right click for the context menu and the group would still be selected, now when you go to right click on any of em it only selects that one. Hope that made sense 
Title: foo_uie_single_column_playlist
Post by: bbt-hh on 2006-11-04 09:10:31
First let me thank you for your great plugin.
I dont know if this is a bug or not, but you used to be able to select a group of tracks and right click for the context menu and the group would still be selected, now when you go to right click on any of em it only selects that one. Hope that made sense 

I can confirm this bug.

And I noticed some other problems:
- 'Pos1' jumps to the first playlist entry, but isn't showing the group header.
- Opening foobar scrolls to the first playlist entry as well. Again not showing the group header. This occurs regardless of the playlist position when closing foobar.
- Pictures in folders which contain the charakter '#' are not displayed.

Thanks
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-11-04 10:00:41
Thanks for the update. Glad to see that arrow up now jumps correctly over the group descriptions.
Title: foo_uie_single_column_playlist
Post by: Draikin on 2006-11-04 10:42:36
thanks for the update

I have this weird bug when I start foobar, it display whatever is behind Foobar at this moment (here, my IRC client): http://omoikane.minstrum.net/foobug.jpg (http://omoikane.minstrum.net/foobug.jpg)
If I edit Item Display without changing anything it comes back to normal 

I noticed It happens only when group rows set to 0
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-11-04 10:44:02
Maybe I am not say something stupid now because I don't know what
I like the way you can modiy the playlist the way you want.
I miss just some things:
- drag and drop for the titles
- the option  set goup rows to zero and so not appearing in playlist
- maybe something similar to a header so that you can easy sort music as  you want (I use some buttons for some sorting)

And really for the newbies a really good tutorial because I found it really hard to modify the playlist
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-11-04 11:04:55
Ooh, the UI has become ultra slow now! When I switch through playlists, there's a very noticable lag. Between redrawing everything is grey. OK, I'm only on an intel p3/800 thinkpad, but this is not quake3?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-04 12:03:34
I can confirm the selection bug aswell.
Squeller, What size is your playlists? My tiny 2000 track lists take no more than a split second to draw.
Title: foo_uie_single_column_playlist
Post by: Squeller on 2006-11-04 13:18:12
Squeller, What size is your playlists? My tiny 2000 track lists take no more than a split second to draw.
With the bigger playlists, which have about 1500 entries, I see grey for about half a second. But with the small ones (100 entries) the look and feel is still as if it was bloatware, maybe 0.2 seconds of grey.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-04 14:09:06
is there any way for the group display to know whether it is singles or album? i can get it to work in the item display but not in the group.

Also is there a way to create a playlist of just singles / or just albums?
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-04 15:25:07
You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

Code: [Select]
$ifgreater($num(%totaltracks%,2),01,%album%%disc%,!noheader!)


Which results in albums getting headers and singles not. Singles are denoted by their TOTALTRACKS tag, Which should be set to 1.
Title: foo_uie_single_column_playlist
Post by: tomthomson on 2006-11-04 15:28:55
mmh, strange behaviour in the newest version:
when I select mulitple files with shift or strg and left-click to edit their properties it selects only a single file
but I think this is due to the rewriting of the keyboard/mouse handling
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-04 15:32:07
Yeah, If you read a few posts back, Some people noticed that. terrestrial will probably fix it for the next revision
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-04 16:22:38
You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

Code: [Select]
$ifgreater($num(%totaltracks%,2),01,%album%%disc%,!noheader!)


Which results in albums getting headers and singles not. Singles are denoted by their TOTALTRACKS tag, Which should be set to 1.


AHHHH i hadnt set my singles to have 1 as the total tracks. now it all makes sense thank you

Is !noheader! suppose to not show the header? for me it actually outputs the text "!noheader!"
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-11-04 16:47:30
put it in the "Group By" area
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-04 17:00:36
.. and make sure you're running one of the latest versions
Title: foo_uie_single_column_playlist
Post by: unprefaced on 2006-11-04 21:06:58
Thanks for the component

Only the simple 'space' will separate words. All other breaking symbols in unicode fonts are treated as non-breaking joiners.

Example
Code: [Select]
$replace(
$substr(%path%,$strstr(%path%,$meta(artist,0)),$strrchr(%path%,'\'))
,\, \ )

appending a zero-width space, instead of regular spaces, on both sides of backslashes will not have the effect of \ appearing to separate words
Title: foo_uie_single_column_playlist
Post by: parameter on 2006-11-05 01:21:23
My group display looks like this:

Code: [Select]
$drawrect(0,0,0,0,brushcolor-35-35-35 pencolor-0-0-0)

$alignabs(100,5,$add(%_width%,-107),30,left,top)
$font(tahoma,15,bold,200-200-200)
$if2(%album artist%,%artist%)
$font(tahoma,12,bold,200-200-200)%album%
blah blah blah


Which gives a look like this:

(http://content.imagesocket.com/images/Untitled_157c.png)

As you can see in the group display, it's %artist% %album% (in the smaller font). This works great, however on really long artist and album titles, like "Agoraphobic Nosebleed - PCP Torpedo & ANbRX" the text is too wide for the single column playlist. Is there any way to make ellipses for "%artist% %album%" that is too wide to fit in the column? If not ellipses, is there a way to use $cut(x,y) that would encapsulate %artist% and %album%?

Thank you.

edit:

Yotsuya gave me the following sample code:

Code: [Select]
$drawrect(0,0,0,0,brushcolor-35-35-35 pencolor-0-0-0)

$alignabs(100,5,$add(%_width%,-107),30,left,top)

$left(
$font(tahoma,15,bold,200-200-200)
$if2(%album artist%,%artist%)
$font(tahoma,12,bold,200-200-200)
%album%
,30)
$ifgreater($len(
$font(tahoma,15,bold,200-200-200)
$if2(%album artist%,%artist%)
$font(tahoma,12,bold,200-200-200)
%album%
),30,...,)


However, $left() applies to the text inside the parenthesis, not the variable %album%.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-11-05 01:55:36
heh, sorry I thought it would process the $font, I guess it doesnt because it's not a real titleformat command. try this:

Code: [Select]
$drawrect(0,0,0,0,brushcolor-35-35-35 pencolor-0-0-0)

$alignabs(100,5,$add(%_width%,-107),30,left,top)

$font(tahoma,15,bold,200-200-200)
%album artist%
$font(tahoma,12,bold,200-200-200)
$left( %album%,$sub(30,$len(%album artist%)))
$ifgreater($len(%album artist% %album%),30,...,)


Notes:
- You dont need to do $if2(%album artist%,%artist%) because foobar automatically maps %artist% for any missing %album artist%
- The position to clip the album name will change with the length of the artist name, so you want to apply the caclulations on the entire string not just %album%
Title: foo_uie_single_column_playlist
Post by: Patrick Bateman on 2006-11-05 04:04:29
Before:
(http://xs108.xs.to/xs108/06444/before.png.xs.jpg) (http://xs.to/xs.php?h=xs108&d=06444&f=before.png)

After:
(http://xs108.xs.to/xs108/06444/after.png.xs.jpg) (http://xs.to/xs.php?h=xs108&d=06444&f=after.png)

I normally use SCPL but sometimes I switch via hotkey to my lyrics layout, after switching back from my lyrics layout to my SCPL layout playlist is like in the after screenshot. This can be fixed just like LXtreme said, switch to another playlist and it is shown correctly...


do you think you could post your config for the scpl?
Title: foo_uie_single_column_playlist
Post by: iOsiris on 2006-11-05 05:59:07
Question to those of you with graphic overlay (more so png) intensive setups, does it lag when you scroll (fast)?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-11-05 06:11:26
Odd behavior with new selections?

Well I've noticed that the new SCPL allows us to click on a header to select all the items in the group.. this is nice. It even allows Ctrl+Click on multiple headers to select multiple groups. The problem though is that if I right click on selected tracks, the selection changes to only the track I right clicked on. This is particularly bothersome when trying to tag multiple tracks to make an album. I did notice though, that Ctrl+Rightclick will work in the way normal rightclick was expected.
Title: foo_uie_single_column_playlist
Post by: Seo on 2006-11-05 12:07:42
Little question :
I have 6 images (named 0s1.png, 1s1.png, 2s1.png, 3s1.png, 4s1.png and 5s1.png), I want to display the firt one when %rating% = 0, the second when %rating% = 1.....
I try this but it doesn't work :
Code: [Select]
if(%rating%,$imageabs(604,0,images\$get(rating)s1.png,),$imageabs(604,0,images\0s1.png,))


Can you help me ?
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-05 12:44:03
How can i show the icon for the codec of an album?
Ive been trying:

$imageabs2(30,30,,,30,30,,$add(28,$mul(-17,%tracknumber%)),images\icons\%codec%.ico,)
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-11-05 12:51:04
change the ico file extensions to png......put them in a different folder first though as they wont work in explorer if you dont
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-05 12:57:03
do you think you could post your config for the scpl?

this is really not the place to be asking one's config, but check the Configuration Distribution Thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=49783)
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-05 13:03:17
Can we get some sort of $set_global() and $get_global() support?

I'm basically looking to store a variable between groups. I'd like to have only the first group that belongs to an artist to display the artist's name. The groups afterwards that belong to the same artist would just have blank space. The look I'm going for is the WMP11 look.
Title: foo_uie_single_column_playlist
Post by: odyssey on 2006-11-05 13:42:24
Is there a way simelar to !noheader! in group display, to control item display, or is it impossible to control playlists this way?
Title: foo_uie_single_column_playlist
Post by: Coppertop on 2006-11-05 15:28:53
I have a keyboard shortcut (Alt-3) set to display the file property box (still a relic from my Winamp-using days ). However, since the latest version, I can't use Alt as a modifier for a keyboard shortcut any more. Ctrl does still work.
Title: foo_uie_single_column_playlist
Post by: callisto on 2006-11-05 15:47:08
Like it was said already, I would really appreciate if a MINIMUM GROUP SIZE function would be implemented in scpl! great work so far terrestrial!!
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-05 16:01:39
Like it was said already, I would really appreciate if a MINIMUM GROUP SIZE function would be implemented in scpl! great work so far terrestrial!!


I second that!
Title: foo_uie_single_column_playlist
Post by: Joelimite on 2006-11-05 17:12:41
You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

Code: [Select]
$ifgreater($num(%totaltracks%,2),01,%album%%disc%,!noheader!)


Which results in albums getting headers and singles not. Singles are denoted by their TOTALTRACKS tag, Which should be set to 1.

How does one not display a header with autoplaylists that are determined by track ratings? for example, i have a favorites playlist that only displays tracks with a rating of 5. each track actually belongs to an album and therefore their total tracks tags are not equal to 1. any ideas? i guess i want to know if its possible to display headers or no headers based on the playlist's name, instead of tag values.
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-11-05 18:22:18
Can we get some sort of $set_global() and $get_global() support?

I'm basically looking to store a variable between groups. I'd like to have only the first group that belongs to an artist to display the artist's name. The groups afterwards that belong to the same artist would just have blank space. The look I'm going for is the WMP11 look.


This will not work as $set and $get_global are per-track evaluated. It is NOT possible to reliably get all the meta-data from all tracks of an album (or a collection of tracks).

How does one not display a header with autoplaylists that are determined by track ratings? for example, i have a favorites playlist that only displays tracks with a rating of 5. each track actually belongs to an album and therefore their total tracks tags are not equal to 1. any ideas? i guess i want to know if its possible to display headers or no headers based on the playlist's name, instead of tag values.


yes it is just use %playlist_name% to get the name of the current playlist.
Title: foo_uie_single_column_playlist
Post by: Joelimite on 2006-11-05 22:23:26
Quote
yes it is just use %playlist_name% to get the name of the current playlist.


thanks, but pardon my idiocy, what would the full syntax be? and is it possible to use a conditional to display both the artist name and the song title only when there is no header?
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-11-06 00:05:11
thanks, but pardon my idiocy, what would the full syntax be? and is it possible to use a conditional to display both the artist name and the song title only when there is no header?


Haven't tested this properly but if you name your playlists that have ratings with a character or character code (I used "-r-" is this example):
Code: [Select]
$if($strstr(%playlist_name%,'-r-'),!noheader!,<some grouping patten>)

And for your display:
Code: [Select]
$if($strstr(%playlist_name%,'-r-'),<display for ratings>,<otherwise>)

Replace the <*>s for your setup.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-06 01:47:03

Can we get some sort of $set_global() and $get_global() support?

I'm basically looking to store a variable between groups. I'd like to have only the first group that belongs to an artist to display the artist's name. The groups afterwards that belong to the same artist would just have blank space. The look I'm going for is the WMP11 look.


This will not work as $set and $get_global are per-track evaluated. It is NOT possible to reliably get all the meta-data from all tracks of an album (or a collection of tracks).



I'm just looking for a way to set variables across the whole playlist, like Column UI's global variables. and be able to get/set them in the group and item display boxes.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-06 17:09:07

thanks, but pardon my idiocy, what would the full syntax be? and is it possible to use a conditional to display both the artist name and the song title only when there is no header?


Haven't tested this properly but if you name your playlists that have ratings with a character or character code (I used "-r-" is this example):
Code: [Select]
$if($strstr(%playlist_name%,'-r-'),!noheader!,<some grouping patten>)

And for your display:
Code: [Select]
$if($strstr(%playlist_name%,'-r-'),<display for ratings>,<otherwise>)

Replace the <*>s for your setup.


am i missing some plug in? i cant use %playlist_name% have to use %cwb_activelist%
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-06 18:38:11
i literally just bought a video ipod of ebay. i heard it uses embedded album art. i plan to put foobar on my ipod so 1 question: can scpl display embedded album art?

if yes does any1 have a code.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-06 18:42:06
i literally just bought a video ipod of ebay. i heard it uses embedded album art. i plan to put foobar on my ipod so 1 question: can scpl display embedded album art?

if yes does any1 have a code.


Unless you are some sort of genius, how exactly are you going to put foobar on your iPod?
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-06 18:44:16

i literally just bought a video ipod of ebay. i heard it uses embedded album art. i plan to put foobar on my ipod so 1 question: can scpl display embedded album art?

if yes does any1 have a code.


Unless you are some sort of genius, how exactly are you going to put foobar on your iPod?


i mean when its plugged into a pc, you can run foobar off the hard drive (portable)
This way i have my music collection & foobar setup with me at all times
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-06 18:47:27


i literally just bought a video ipod of ebay. i heard it uses embedded album art. i plan to put foobar on my ipod so 1 question: can scpl display embedded album art?

if yes does any1 have a code.


Unless you are some sort of genius, how exactly are you going to put foobar on your iPod?


i mean when its plugged into a pc, you can run foobar off the hard drive (portable)
This way i have my music collection & foobar setup with me at all times


  I'm sorry!  I need to get some sleep... Nevermind my stupid post.
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-11-06 20:21:35
am i missing some plug in? i cant use %playlist_name% have to use %cwb_activelist%


It worked for me last time I tried it, but I haven't used scp for a while maybe something was changed.
Title: foo_uie_single_column_playlist
Post by: gob on 2006-11-08 04:44:12
ive been looking at this plugin for a while and it looks pretty cool. is there a way prevent grouping unless there is going to be a particular number of files in the group? for example..

you could compare $right(%tracknumber%,2) with the number of files that are to be grouped. if it matches, they are shown as a group. if not, they are shown as individual tracks. this would prevent grouping from happening if the list is not sorted by albums.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-08 15:43:14
Well you could like, use an if statement or any other function in the group box - it groups things by the output of that, I mean you could group it by the crc32 of the albumname if you wanted.

I don't think you could "compare" with tracks above, you'd have to use something like %totaltracks% ?


Like it was said already, I would really appreciate if a MINIMUM GROUP SIZE function would be implemented in scpl! great work so far terrestrial!!


I second that!


Thirded!!!!!!!!!
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-08 18:12:37
ok im not sure if i have a bug or not. although it may have happen since i changed some code

for some reason the playlist dropdown and quicksearch plugin have stopped working on my scpl but when i switch to a columns playlist it works fine.

its wierd because if i right click on the scpl and change the playlist it changes but if i select one from the drop down plugin it does not.

i think i have the latest version of scpl i will download again and go have a play
Title: foo_uie_single_column_playlist
Post by: L4nt0m on 2006-11-08 18:49:02


Like it was said already, I would really appreciate if a MINIMUM GROUP SIZE function would be implemented in scpl! great work so far terrestrial!!


I second that!


Thirded!!!!!!!!!


fourthed!
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-11-09 02:36:25
ok im not sure if i have a bug or not. although it may have happen since i changed some code

for some reason the playlist dropdown and quicksearch plugin have stopped working on my scpl but when i switch to a columns playlist it works fine.

its wierd because if i right click on the scpl and change the playlist it changes but if i select one from the drop down plugin it does not.

i think i have the latest version of scpl i will download again and go have a play


When you right-click and select a playlist from the single columns panel, make sure you pick the 'Active' option instead of the playlist name. It'll work like normal then..
Title: foo_uie_single_column_playlist
Post by: gob on 2006-11-09 03:22:09
Well you could like, use an if statement or any other function in the group box - it groups things by the output of that, I mean you could group it by the crc32 of the albumname if you wanted.

I don't think you could "compare" with tracks above, you'd have to use something like %totaltracks% ?


thats what i meant. ;) if only there was a way to compare %totaltracks% to the number of items that match %album%. group them if the the number of tracks match the total tracks, and dont group them if they dont match.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-09 03:36:38

Well you could like, use an if statement or any other function in the group box - it groups things by the output of that, I mean you could group it by the crc32 of the albumname if you wanted.

I don't think you could "compare" with tracks above, you'd have to use something like %totaltracks% ?


thats what i meant. ;) if only there was a way to compare %totaltracks% to the number of items that match %album%. group them if the the number of tracks match the total tracks, and dont group them if they dont match.


Like if %_itemcount% = %totaltracks%?
Title: foo_uie_single_column_playlist
Post by: gob on 2006-11-09 06:36:53


Well you could like, use an if statement or any other function in the group box - it groups things by the output of that, I mean you could group it by the crc32 of the albumname if you wanted.

I don't think you could "compare" with tracks above, you'd have to use something like %totaltracks% ?


thats what i meant. ;) if only there was a way to compare %totaltracks% to the number of items that match %album%. group them if the the number of tracks match the total tracks, and dont group them if they dont match.


Like if %_itemcount% = %totaltracks%?

yes.
group if %_itemcount% = %totaltracks%
dont group if %_itemcount% != %totaltracks%

but i dont know if it is possible to get an item count unless the croup is already created in which case it would be too late of there are not the right number of files to make it a group.

someone mentioned above they would like to have a minimum group size. if you could make minimum group size = total tracks, that would probably work well, even with multi disc albums.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-09 07:07:02
Yea, it wouldn't work because %_itemindex% and %_itemcount% wouldn't be available until after grouping.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-09 12:49:16
[quote name='2Pacalypse' date='Nov 6 2006, 17:09' post='447384']

[/quote]

am i missing some plug in? i cant use %playlist_name% have to use %cwb_activelist%
[/quote]

can anyone tell me why this isnt working for me?

i put %playlist_name% in a track info panel as it displays "?" while %cwb_activelist% works
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-11-09 13:26:20
Can someone tell me about the bugs from the version of scpl you can download now?
I have no ideas how the versions of the plug-in changed about the features
The wiki helped me a lot.

@terrestrial:
Maybe a changelog would be a really good idea.  Maybe some could post it here or in the wiki
Title: foo_uie_single_column_playlist
Post by: Gord on 2006-11-09 13:37:16
The changelog is in the download.
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-11-09 14:03:58
can anyone tell me why this isnt working for me?

i put %playlist_name% in a track info panel as it displays "?" while %cwb_activelist% works


It doesn't work in the track info panel, only in the single column playlist (and probably normal columns ui playlist aswell..)
Title: foo_uie_single_column_playlist
Post by: hal9001 on 2006-11-09 20:02:26
Okay. 1st time user of this component.
Tried to read thgough some of the 37 pages of this thread + Wiki, and tried many many things.
Nothing works. My image files are not displayed.
I just know I doing something wrong.

All my album art is located in D:\#Download2\#Internet\#Radio\#LastFM\LastFM Desktop\cache\.
My final destination is actually to right-align the album art throughout the album or part of it (makes more sense). But before I ask how I should right-align it (another $align(right,top)? Guess not) I need an image to display - which, as I said - it doesn't.

Code: [Select]
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8))
$padding(4,0)
$align(left,top)[%tracknumber% | ]%title%
$align(right,top)%CODEC% %bitrate% | $div(%filesize%,1048576).$left($right($div(%filesize%,1024),3),2) MB
$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,D:\#Download2\#Internet\#Radio\#LastFM\LastFM Desktop\cache\*%album artist%*%album%*.jpg,)


Thanks
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-11-10 00:09:11
^^^^

You can't use hashes (#) in the path. I don't know why, but it causes the images not to display..
Title: foo_uie_single_column_playlist
Post by: pIv on 2006-11-10 05:29:46
I use next formating string for "Group by"

Quote
$if($or($strstr(%path%,'Singles'),%discnumber%,$strstr(%cwb_activelist%,Trackinfo Playlist),$strstr(%cwb_activelist%,default)),!noheader!,%directory%)




And when I swich playlists - the "Group by" value saves from previous playlists.

Example:
switch from "default" to "playlist tree", then switch against and "Group by" is %directory%.

I solve this in next way default - playlist tree - Trackinfo playlist - default and "Group by" is !noheader!.

Is it bug and is it possible correct this bug?
Title: foo_uie_single_column_playlist
Post by: gob on 2006-11-11 18:07:09
is it possible to use multiple lines for tracks? and is there a value to count the number of files that are selected?

what id like to do is create a playlist style that just shows the title and playlist number on each line, unless a single track is selected or playing. then id like it to show some more info like the album on a few lines and some album art.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-11-11 23:52:13
gob:

There is no way to change the item height based on if the track is a single or not. However you can increase your row height to accommodate two lines of text, use $align() or $alignabs() to position that text, and then use an $if() to determine if a second line of text is displayed an/or what it displays.
Title: foo_uie_single_column_playlist
Post by: wolfsong on 2006-11-12 00:22:35
I'm having a grouping problem. I use a subtitle tag to hold information like "Music From and Inspired by the Film" and "Original Motion Picture Soundtrack". In this cae I have both sound tracks to the film Crash. %album artist% is "Various Artists" for all tracks.

So far I group by:
Code: [Select]
%album%%disc%%edition%%album artist%

and everything works fine but all the tracks from both soundtracks are grouped together. If I add %subtitle% anywhere in the list it gives me

Album 1 Track 1
Album 2 Track 1
Album 1 Track 2
Album 2 Track 2

The sort string that I'm using is:
Code: [Select]
$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%) - %date% - %album% - $num(%disc%,2) - $num(%tracknumber%,2)

Any ideas?
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-12 21:00:48
hi sorry to ask again but i got no answer, is there a way to display embedded album art?
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-11-12 22:11:35
Not at present
Title: foo_uie_single_column_playlist
Post by: Lyx on 2006-11-13 00:57:28
I as well am missing global-variables support. In my case to define colors and config-vars in a central place, instead of spreading them all over the code.
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-11-14 11:01:50
I as well am missing global-variables support. In my case to define colors and config-vars in a central place, instead of spreading them all over the code.

seconded. terrestrial, please fix this.
Title: foo_uie_single_column_playlist
Post by: mil3s on 2006-11-15 17:33:41
Is it possible to have 2 rows for single track items?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2006-11-15 17:53:35
Is it possible to have 2 rows for single track items?


its possible to have row with two lines of text... is it different?
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-11-15 18:41:06
Is it possible to have 2 rows for single track items?


Have a look at here : Example from Wiki with to text rows (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Single_Column_Playlist_%28foo_uie_single_column_playlist%29&oldid=12982#Mazy_Design_Example)
Title: foo_uie_single_column_playlist
Post by: mil3s on 2006-11-15 18:59:25
I want to have 2 lines for %isplaying% and only one for others. Is that possible?
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-15 19:05:14
No, not possible if you are referring to using 2 different heights. It is possible by using $if(%_isplaying%,[double line functions here],[single line functions here])
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-15 22:02:09
I have another feature suggestion... the ability to draw gradients.

example:
$drawgradientrect(x,y,w,h,brush1color-200-200-200 brush2color-255-255-255 pencolor-0-0-0 orientation-v)
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-11-16 00:27:57
gradients would be very handy, yes (already on my mind). and they should support adding alpha values too ...
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-16 02:15:43
I'm just looking for a way to set variables across the whole playlist, like Column UI's global variables. and be able to get/set them in the group and item display boxes.


even if values persist through different items, there is no order in which items are evaluated (they are evaluated as needed when displayed).


I as well am missing global-variables support. In my case to define colors and config-vars in a central place, instead of spreading them all over the code.


globals should work.... you might need to restart if you make any changes w/ globals though.
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-11-16 08:45:22
globals should work.... you might need to restart if you make any changes w/ globals though.

they really do, thanks! i guess i (and Lyx and others) failed to notice that there was new version.
Title: foo_uie_single_column_playlist
Post by: Tommy01 on 2006-11-16 16:00:15
hi,...

how does the nokeepaspect-parameter work?

i use this code, but the images arn't shrinked...

$imageabs2(0,0,,,71,71,790,0,$replace(%path%,%filename_ext%,%album artist% - %album%.jpg),NOKEEPASPECT)

thanks....
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-16 18:14:35
i was wondering what every1 wanted to do with global variables?
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-11-16 18:35:19
hi,...

how does the nokeepaspect-parameter work?

i use this code, but the images arn't shrinked...

$imageabs2(0,0,,,71,71,790,0,$replace(%path%,%filename_ext%,%album artist% - %album%.jpg),NOKEEPASPECT)

thanks....


For starters, you're trying to resize the image to 0x0, a non-existant image isn't much fun...
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-16 20:23:53
So we need:

- Exporting/Importing to .fscp files.
- Pandas
- Globals support.
- Minimum Group sizes.


Any ETAs?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-11-16 23:29:29
Buttons would be nice also.
Title: foo_uie_single_column_playlist
Post by: gob on 2006-11-17 01:18:42
Buttons would be nice also.


is it possible to bring this panel into focus with girder? im able to do it with columns ui playlists, playlist tree and album list. i cnat seem to figure out how to do it with this.
Title: foo_uie_single_column_playlist
Post by: anza on 2006-11-17 07:18:31
So we need:

- Exporting/Importing to .fscp files.
- Pandas
- Globals support.
- Minimum Group sizes.


Any ETAs?


Globals do work already in the latest version.
Title: foo_uie_single_column_playlist
Post by: int on 2006-11-17 12:45:34
So we need:

- Exporting/Importing to .fscp files.
- Pandas
- Globals support.
- Minimum Group sizes.


Any ETAs?


More Pandas.

Oh and the ability to make the background an image, not just a colour :]
Title: foo_uie_single_column_playlist
Post by: Anas on 2006-11-17 14:08:26
int: Why don't you just use the $imageabs function?
Title: foo_uie_single_column_playlist
Post by: int on 2006-11-17 14:48:34
int: Why don't you just use the $imageabs function?


Can you do that with the background?! : o

I want to be able to use a full image as the background and overlay the item & group display and then integrate it with my trackinfo's and browser...
Title: foo_uie_single_column_playlist
Post by: ANT on 2006-11-17 15:30:02
I have a keyboard shortcut (Alt-3) set to display the file property box (still a relic from my Winamp-using days ). However, since the latest version, I can't use Alt as a modifier for a keyboard shortcut any more. Ctrl does still work.


same here 
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-17 17:05:38

int: Why don't you just use the $imageabs function?


Can you do that with the background?! : o

I want to be able to use a full image as the background and overlay the item & group display and then integrate it with my trackinfo's and browser...



You could use a similar technique to the album art, but use a modulation of the list index instead of tracknumber.


That would mean it scrolls with the playlist though :/

So we need:

- Exporting/Importing to .fscp files.
- Pandas
- Background image
- Minimum Group sizes.
- $button
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-11-17 17:38:10
terrestrial, i would like to request one (or two) features

please, add the command (assignable to a keyboard shortcut) to toggle "collapse" of all groups just to group headers. it would auto-expand on doubleclick on any group (and start playback on its first item). you could also add features like auto-exapnd on hover (after given time) etc.

similar feature would be to auto-expand playing group and collapse everything else.

also, it would be nice to have those group-related summary infos and info whether given group has item that is playing or not.

thank you
Title: foo_uie_single_column_playlist
Post by: whr on 2006-11-17 21:07:04
Any chances to be able to download the 31 October release of the plug in?

I just installed the latest one, and i am hating that it's not possible to open the properties or do something else with a group of items without either the SHIFT or the CTRL key pressed (otherwise the whole selection is lost when right clicking).

Plus even with globals support, i can't get the hotness code to display right. With Column_UI it displays right (range for hotness tops at 100) but under the single column playlist the numbers go up to 25k and the more a song is played the more the number decreases.
Title: foo_uie_single_column_playlist
Post by: musosticky on 2006-11-17 21:43:18
nice ideas mazy
Title: foo_uie_single_column_playlist
Post by: callisto on 2006-11-17 22:34:18
just a short question: what are "pandas"? I guess it's not the animal ^^
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-11-18 10:45:13
Any chances to be able to download the 31 October release of the plug in?

I just installed the latest one, and i am hating that it's not possible to open the properties or do something else with a group of items without either the SHIFT or the CTRL key pressed (otherwise the whole selection is lost when right clicking).

Plus even with globals support, i can't get the hotness code to display right. With Column_UI it displays right (range for hotness tops at 100) but under the single column playlist the numbers go up to 25k and the more a song is played the more the number decreases.


I have only October 16 version. But if you want to have it this should be no problem.
Title: foo_uie_single_column_playlist
Post by: int on 2006-11-18 14:48:49
just a short question: what are "pandas"? I guess it's not the animal ^^


You bet your ass it's the animal;

(http://www.worldalmanacforkids.com/images/panda.jpg)
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-18 16:12:25

just a short question: what are "pandas"? I guess it's not the animal ^^


You bet your ass it's the animal;

(http://www.worldalmanacforkids.com/images/panda.jpg)


JA JA JA JA JA!

Maybe I'm stupid, but why you need bears in this plugin?
Title: foo_uie_single_column_playlist
Post by: Morgensonne on 2006-11-18 18:16:29
Hi... i have problems to display a cover, if the files belong to one album but do not exist in one directory... e.g. some classical works in a directory structure like composer/work/tracks (ensemble).

They are grouped correctly but no cover is shown with $imageabs2(80,80,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

THX
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-18 20:02:09
Hi... i have problems to display a cover, if the files belong to one album but do not exist in one directory... e.g. some classical works in a directory structure like composer/work/tracks (ensemble).

They are grouped correctly but no cover is shown with $imageabs2(80,80,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

THX


Your code is fine.
Is the path of the track and the path of the cover the same?
Example:
Song:  C:\Music\Incubus\Make yourself\Drive.mp3
Cover:  C:\Music\Incubus\Make yourself\folder.jpg
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-18 20:41:44
terrestrial, i would like to request one (or two) features

please, add the command (assignable to a keyboard shortcut) to toggle "collapse" of all groups just to group headers. it would auto-expand on doubleclick on any group (and start playback on its first item). you could also add features like auto-exapnd on hover (after given time) etc.

similar feature would be to auto-expand playing group and collapse everything else.

also, it would be nice to have those group-related summary infos and info whether given group has item that is playing or not.

thank you



EXPANDABLE GROUPS WOULD BE AMAZING !! !!

:D:D:D:D:D:DD

I am O.o at the mere concept of this. Holy hell.




just a short question: what are "pandas"? I guess it's not the animal ^^


You bet your ass it's the animal;

(http://www.worldalmanacforkids.com/images/panda.jpg)


JA JA JA JA JA!

Maybe I'm stupid, but why you need bears in this plugin?


Isn't it obvious??
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-11-18 21:07:06
mazy's collapsible/expandable groups idea = awesome.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-18 21:27:48
Yeah, I hope we get that soon :}
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-11-18 22:27:02
terrestrial, i would like to request one (or two) features

please, add the command (assignable to a keyboard shortcut) to toggle "collapse" of all groups just to group headers. it would auto-expand on doubleclick on any group (and start playback on its first item). you could also add features like auto-exapnd on hover (after given time) etc.

similar feature would be to auto-expand playing group and collapse everything else.

also, it would be nice to have those group-related summary infos and info whether given group has item that is playing or not.

thank you


if a group was collapsed would songs inside be played? or would the playlist skip over it?
Title: foo_uie_single_column_playlist
Post by: Ken-chan on 2006-11-18 23:30:43

...


if a group was collapsed would songs inside be played? or would the playlist skip over it?


Options...they're there because they should be.
Title: foo_uie_single_column_playlist
Post by: Morgensonne on 2006-11-19 03:18:38

Hi... i have problems to display a cover, if the files belong to one album but do not exist in one directory... e.g. some classical works in a directory structure like composer/work/tracks (ensemble).

They are grouped correctly but no cover is shown with $imageabs2(80,80,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

THX


Your code is fine.
Is the path of the track and the path of the cover the same?
Example:
Song:  C:\Music\Incubus\Make yourself\Drive.mp3
Cover:  C:\Music\Incubus\Make yourself\folder.jpg


Yes they are always in the same folder... i also have some folders with a complete album and a folder.jpg but no cover is shown. i've updated my library and the browser and restarted foobar but some covers are shown and others not. hm ?!?!
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2006-11-19 14:26:38
@mazy

great idea!

It is nice that in the new version i can start playback by doubleclick in that playlists that are not the active ones (setted so by context menu). It would be so cool and at least for me a killer feature if clicking or double clicking an item in such playlist wouldn't make them to the active playlist. But i guess it is not so easy to implement
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-11-19 15:23:02
I requested collapsible headers on page 2 (http://www.hydrogenaudio.org/forums/index.php?showtopic=47810&st=25).  I vaguely remember Terrestrial commenting on it also. But suffice to say, the idea has been about a while and it seems unlikely that it will be implemented in the near future.
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-11-19 15:31:17
the problem is with the win32 list control, as terrestrial would probably have to do more things like position / scrollbar stuff by himself. if he couldn't implement arbitrary collapse / expand feature, i would like "collapse / expand everything" command at least (for quick overview of the playlist's groups).
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2006-11-19 17:08:42
Not sure if its possible, but maybe he could base the component around a treeview control instead of a list control. Then collapsing could be implemented easily. This would also allow a lot more customization like multiple levels of groups.
Title: foo_uie_single_column_playlist
Post by: tool++ on 2006-11-20 16:59:56

terrestrial, i would like to request one (or two) features

please, add the command (assignable to a keyboard shortcut) to toggle "collapse" of all groups just to group headers. it would auto-expand on doubleclick on any group (and start playback on its first item). you could also add features like auto-exapnd on hover (after given time) etc.

similar feature would be to auto-expand playing group and collapse everything else.

also, it would be nice to have those group-related summary infos and info whether given group has item that is playing or not.

thank you


if a group was collapsed would songs inside be played? or would the playlist skip over it?



I think that should be an option. It would actually be pretty cool feature in making playlists if you could selectively expand albums

I like the idea of the now playing album being expanded too.

I think all of this would have to be optional though.

It would also have to save what is expanded/not on close/open.

It would also be kinda nice if text rendering was crisper and more like cleartype. :]
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-11-20 19:49:16
Is there a chance to get to know what features tererestrial is programming?
Title: foo_uie_single_column_playlist
Post by: wolfsong on 2006-11-20 20:17:05
Small annoyance. When I add tracks to the queue, SCP blanks for a moment. I've also noticed that F2K seems to save changes to tracks played minutes prior and also at shudown.  Perhaps it's normal behaviour I just hadn't noticed prior to using SCP.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2006-11-20 20:43:12
I think that should be an option. It would actually be pretty cool feature in making playlists if you could selectively expand albums

I think It might work best if you could independently set the number of rows for a group.
Imagine:
Code: [Select]
$if(%isplaying%,$grouprows(10),$grouprows(5))

or (what Ive been wanting to do):
Code: [Select]
$ifgreater(%discnumber%,1,$grouprows(1),)



The current set number of group rows could then become the default.
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2006-11-21 21:25:08
This seems like a very promising plugin. I have a few suggestions, which most likely already been suggested...

1. Increase the size of the boxes the code is in. I hate how I'm trying to make a working config, and all I have is one tiny little 6 line box to edit the code. I'd like that bot to be much bigger, or better yet, re-sizable. Also, the ability to interact with the playlist while that box is up would be nice too.

2. Allow for a way for the user to assign a command for a double click on empty space in the playlist. Columns_UI had an option to do this. I got accustomed to double clicking empty space to clear the playlist. I'd like to still be able to do that.
Title: foo_uie_single_column_playlist
Post by: wolfsong on 2006-11-21 21:45:44
This seems like a very promising plugin. I have a few suggestions, which most likely already been suggested...

1. Increase the size of the boxes the code is in. I hate how I'm trying to make a working config, and all I have is one tiny little 6 line box to edit the code. I'd like that bot to be much bigger, or better yet, re-sizable. Also, the ability to interact with the playlist while that box is up would be nice too.

I second that and would also like to be able to select all and clear all text. Dragging to select is a pain in this tiny window (ditto for TIM).
Title: foo_uie_single_column_playlist
Post by: Silverbolt on 2006-11-21 21:49:13
Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2006-11-22 20:03:35
I think I found a bug:

This bit of code:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'%artist%' - '%Album%'.jpg',)

works fine, that is until a file with a special character comes along. For instance the file:

X:\Covers\Godspeed You Black Emperor - F#A# (Infinity).jpg

will not get displayed unless I take out the #'s and rename the ID3 tags. The same goes for any file with a '&' in the title.
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-22 21:37:03
I think I found a bug:

This bit of code:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'%artist%' - '%Album%'.jpg',)

works fine, that is until a file with a special character comes along. For instance the file:

X:\Covers\Godspeed You Black Emperor - F#A# (Infinity).jpg

will not get displayed unless I take out the #'s and rename the ID3 tags. The same goes for any file with a '&' in the title.


Try this code:
$imageabs2(104,104,,,,,5,3,$replace('X:\Covers\'%artist%' - '%Album%'.jpg',#),)
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2006-11-22 22:05:38
Try this code:
$imageabs2(104,104,,,,,5,3,$replace('X:\Covers\'%artist%' - '%Album%'.jpg',#),)


doesn't the replace function take three parameters?

Anyways, I'm not wanting to replace the #'s because the #'s are in the filename. #'s are not illegal characters in windows systems.

edit: here is the code I'm using:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.jpg',)
$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.png',)
$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.gif',)

which works for every single album in my collection except for the GYBE album. What the heck... The album art plugin displays the gybe cover fine. (which used the exact same code, except it used wildcards instead of the three different lines for each format).
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-22 23:08:34
new version. mostly internal changes / some optimizations.
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-11-22 23:28:00
new version. mostly internal changes / some optimizations.

Mouse wheel scroll doesn't work anymore
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-11-22 23:50:46
Mouse wheel scroll doesn't work anymore

Same here.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-23 00:15:53
ok, I uploaded a new version with support for the mouse wheel.
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-23 02:34:31
It works.
Thanks for this and the new version - according to my task manager, the cpu usage has changed a bit for the better overall.

I see the topic of rearranging the tracks in the playlist has already been brought up here, but no resolution was given. Here are a few thoughts and ideas on that subject, hope you find them of any value.
1) Not only there is no dragging, we also can't cut and/or copy the tracks from the playlist. Inserting them from the album list works all right, so I guess the other ones can be implemented too.
2) The drag and drop rearranging doesn't really have to be identical to the one in the columns playlist. With real-time position updating, retaining the distances between selected tracks and whatnot. While it certainly would be nice, I can't envision that in the context of scpl - especially the first one.
Do something simpler, maybe? Like Windows' native drag and drop. We select the tracks, then hold down left muse button again, the cursor changes its shape to the familiar arrow with a dotted frame under it. While dragging, the tracks stay on their positions until we release the mouse button. And then they are automatically cut from their places, sticked together (keeping the order though) and pasted/inserted into the new position, right after the track above which we released the button (if the mouse button is released above the group header, tracks will be pasted before the group). And that's that.

Or you can add some inner indicator of where the dragged tracks will be going, too.
The simpler way is just draw a line of some (hardcoded or customizable) color there where the tracks will be inserted if we release the button right now.
A more advanced one would require introducing an additional variable - %_dragmarker% or something, which we will use to detect if the currently rendered track is the one after which the tracks will be pasted, to change its view accordingly.

What do you think?
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-11-23 02:56:19
Changing playlist from the context menu doesn't work anymore.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-23 05:26:07
^^ fixed.

to rearrange tracks hold down the alt + mouse or alt + up/down. moving isn't optimized, so the whole playlist has to be reindexed.
Title: foo_uie_single_column_playlist
Post by: callisto on 2006-11-23 13:32:31
great plugin so far...
but I have one issue/question. I just updated after long time and found something I don't like ^^
Before I had the version from september 24.
after I installed the version from today the font size increased strangly, but just from the first row of the item display!
as you can see here:

thx

callisto
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-23 14:50:58
Quote
to rearrange tracks hold down the alt + mouse or alt + up/down. moving isn't optimized, so the whole playlist has to be reindexed.


Yay! Thanks.
Since now it's like this, an option to not break groups while moving would be great too. At least for the case when the tracks have been selected with ctrl-clicking on the groups' headers (only).

Also, two small issues here:
1. When you select multiple tracks and then right-click on the header of a group not holding down ctrl or shift, selection completely switches to this group. Even if this group is completely included in the selection.
2. If I right-click anywhere in the playlist (to call the context menu) and then click on any header (discarding the menu), only the first track in this header's group would be selected.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-23 15:57:04
right clicking while a few tracks are selected loses the selection. Now, The only way to access the context menu for a group of selected tracks is via the keyboard. Is this bug still present, And can it be fixed?

Thanks in advance for all the hard work you've put into your plugins, terrestrial.
Title: foo_uie_single_column_playlist
Post by: tomthomson on 2006-11-23 16:13:00
right clicking while a few tracks are selected loses the selection. Now, The only way to access the context menu for a group of selected tracks is via the keyboard. Is this bug still present, And can it be fixed?


Well, with the latest update this bug is gone
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-23 16:15:04
Quote
right clicking while a few tracks are selected loses the selection
Works for me. With the version dated as Nov 22 2006 - 23:21:26.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-11-23 16:33:54
Yeah, I posted before checking the very latest. Works here aswell. Kudos to terrestrial on his skills.
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-23 22:04:12
Found some new bugs.
1) Deleting some files from the playlist and then doing 'undo' (ctrl+z) makes scrollbar disappear. To make it reappear, you have to either resize the window or repeat the "delete-restore" action again.
2) As a continuation, if you do this "delete-restore" routine two or more times, without resizing the window, this will have the following effects: i) bug 1 won't reappear until resizing the window again, ii) the scroll box on that scrollbar won't be able to reach the bottom, even if you drag it with the mouse, iii) the size of the scroll box becomes fixed, and  this behavior persists between all the playlists. All of those disappear when you resize the window.
3) Deleting, then doing 'Undo', and 'Redo' after that leads to the bug 2.
4) An empty playlist doesn't have any scrollbar. It also doesn't get any when you add some files to it (while you don't - right - resize the window).
If you then switch between playlists, the scrollbar won't be in any of them, too.
Can be partially healed with switching playlists to the one with lots of tracks and resizing the window in it. Partially means they (all except the one with a few tracks) will become subject to some 'independent' version of bug 2 (with the difference of having scroll boxes of different sizes).
Full healing can be reached with adding enough files to that almost-empty playlist so that they fill up the window in height, and scrollbar appears. Or you can just delete that playlist and resize the window.
5) Deleting enough files in a playlist leads to the bug 4.

Edit: A bit of specifics.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-11-24 02:36:29
I'm also getting a lot of scrollbar bugs when it comes to measuring the panel's height and if it's even necessary to be shown.
Title: foo_uie_single_column_playlist
Post by: fabiospark on 2006-11-24 10:18:24
Is there a way to lock this plugin to show always a chosen playlist?

(Of course every instance should have its target.)

Thanks.
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-11-24 15:01:01
I too like the idea to be able to collapse groups that fofr and mazy introduced, but since I have experienced the scrollbar bug I have started to think that it would also be nice to be able to completely disable the scrollbar. I personally don't have playlists so large that I would need to use the scrollbar to get to the end of playlist. I really like the way my foobar looks without the scrollbar and this options would be nice, if it is possible to implement.
Title: foo_uie_single_column_playlist
Post by: Great Jay on 2006-11-24 18:05:13
Hi guys,

I just started installing the newest foobar version and trying to get a nice config with this plugin. but it doesn't work for me.

I have all my covers in the folder of the depending album and they are all named "00. Front.jpg".
So for AlbumArt I use this code:
$replace(%path%,%filename_ext%,)00. Front.jpg
But for the SingleColumnPlaylist this code doesn't work. And I can't find a code that seems to fit my needs.

Hopefully someone can help me.

Thanx

Great Jay
Title: foo_uie_single_column_playlist
Post by: zmur on 2006-11-24 19:13:18
Hi guys,

I just started installing the newest foobar version and trying to get a nice config with this plugin. but it doesn't work for me.

I have all my covers in the folder of the depending album and they are all named "00. Front.jpg".
So for AlbumArt I use this code:
$replace(%path%,%filename_ext%,)00. Front.jpg
But for the SingleColumnPlaylist this code doesn't work. And I can't find a code that seems to fit my needs.

Hopefully someone can help me.

Thanx

Great Jay


if you re - name your cover to  folder.jpg  it'll show up in your single_column_playlist .
Title: foo_uie_single_column_playlist
Post by: callisto on 2006-11-24 19:30:36
why that? It could be named as mymommyisthebest.jpg and would show up...

@great jay. did u put u're code in an $imageabs() function?? like $imageabs(10,10,$replace(%path%,%filename_ext%,)00. Front.jpg,)
Title: foo_uie_single_column_playlist
Post by: Great Jay on 2006-11-24 19:34:51
thanx...it worked out for me now 

I tried to put the code in the group panel but I had to edit something in the item panel as well..

thx

gReat jay
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-25 02:26:21
another quick update to (hopefully) fix the scroll bar issues.
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-25 03:02:04
Works all right here.
Title: foo_uie_single_column_playlist
Post by: Russell777 on 2006-11-25 11:33:35
A small fix request:when in the "grey" window mode,there's a hole at the bottom of the playlist thet cannot
be fixed by changing window's size.(http://img86.imageshack.us/img86/854/asdfgru6.png)
Title: foo_uie_single_column_playlist
Post by: kabuki on 2006-11-25 12:01:11
Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.


Same trouble here, even with the last update (2006.11.24).
Title: foo_uie_single_column_playlist
Post by: saberrider on 2006-11-25 21:08:06
small bug: when starting up foobar there's always a horizontal scrollbar visible even if the playlist isn't long enough. when switching playlists it disappear eventually if not needed.
Title: foo_uie_single_column_playlist
Post by: jonpb on 2006-11-26 23:33:10
Thanks, so much Terrestrial! This latest version is amazing, the optimizations rock (it no longer refreshes more times then needed) and the drag and drop is exactly what I always wanted. Not to mention you have solved all the active / playing issues I need to have multiple views synchronized and still have a coherent, intuitive player interface.

Thanks! Thanks! Thanks!
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-11-27 09:50:17
I don't mean to just show up in here and start demanding stuff, but i have a request, if somebody else hasn't brought it up already: Is it possible to make the keyboard shortcut for 'select all' (Ctrl+A here, dunno if it's different in other languages) work in the edit boxes? I instinctively hit those keys to copy text from a box like that, and it just keeps beeping at me every time. :/

(edit: I had a question here earlier, but i figured it out on my own, so i removed it. Great plug-in by the way.)
Title: foo_uie_single_column_playlist
Post by: mausemecker on 2006-11-27 11:20:07
Hi, I really like your plugin.

But I have a question: If I have different playlists, is there a possibility to format them differently?

I tried simply making different tabs with that, and i can format that differently. But then i noticed that it showed the same playlist at both tabs - and i want it so that it stays with the selected playlist.

I hope that anyone understands what i mean...

Thanks

mausemecker
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-11-27 15:58:46
Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-27 16:57:28
Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
%list_index%?
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-11-27 17:16:29

Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
%list_index%?


Er, no. It's %_itemindex(). Thanks anyway.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2006-11-27 17:33:43
another quick update to (hopefully) fix the scroll bar issues.

Great update.
Thanks for the hard work.
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-11-27 18:09:46
what is the syntax for the fileexists()?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-11-28 01:06:33

Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.


Same trouble here, even with the last update (2006.11.24).


space selects/deselects items in the playlist, so you can't use it in a shortcut.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-11-28 02:10:13
I too would love to know the syntax - I am trying to take advantage of the new features terrestrial has added but not having much luck.

Here is my example

Code: [Select]
$if($fileexists(%path%,Folder.*),
$imageabs2(%_height%,%_height%,,,,,0,0,$replace(%path%,%filename_ext%,Folder.*),NOKEEPASPECT),
$imageabs2(%_height%,%_height%,,,,,0,0,C:\Documents and Settings\xxxxx\Application Data\foobar2000\data\misc images\nocover.png,NOKEEPASPECT))

If my code doesnt make sense then my thoughts are that $fileexists is a test for a file existing, in this case if there is a file called Folder.* in the %path% location then this should turn true/1 thus in my if statement the first result should be 1 and the 2nd should be 0


Currently only my nocover image is showing... when I know there is a file.* there.. so what am I doing wrong...
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-11-28 02:34:25
First of all, change
Code: [Select]
$fileexists(%path%,Folder.*)

to
Code: [Select]
$fileexists($replace(%path%,%filename_ext%,Folder.*))

The %path% contains the filename too, not just the name of the containing folder.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-11-28 02:37:14
fantastic Hakubo thanks heaps!!! working like a charm
Title: foo_uie_single_column_playlist
Post by: huythuy on 2006-11-28 14:23:52
Quote
Hakubo
Code: [Select]
$fileexists($replace(%path%,%filename_ext%,Folder.*))

hi, please help me to modify the function to check for the parent folder also.

I suppose it shoudl be like this
Code: [Select]
if (exist in this folder, cover, if(exist in parent folder, cover, nocover))


but i don't know how to check the parent folder.

thanks
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-11-28 15:08:23
There might another less ugly way to do what you want, but this string works:

Code: [Select]
$if($fileexists($replace(%path%,%filename_ext%,folder.*)),
    $replace(%path%,%filename_ext%,folder.*)
,
    $if($fileexists($replace(%path%,$directory(%path%)\%filename_ext%,folder.*)),
        $replace(%path%,$directory(%path%)\%filename_ext%,folder.*)
    )
)
Title: foo_uie_single_column_playlist
Post by: wolfsong on 2006-11-28 17:27:18
Is there a way to force the album art to update without restarting?
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-11-28 21:35:58
In the config window: type something, undo, press apply.
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-11-29 08:36:51
Er. After having played around with the plug-in for a while, i've come up with another request (please correct me if this function already exists and i just don't see it).

Here's my issue: It doesn't appear to be possible to alter the entries the component inserts into the context menu. That is, i can't move or get rid of the 'Settings...' and 'Playlist' entries when i right-click in the play list. This really messes me up because i'm so used to the 'Remove' and 'Crop' items being there.

Is it at all possible that this could be configurable?


edit:
Oh, hey. Another thing. This one's pretty small though.

It took me ages to figure out how to get the component to ignore the aspect ratio when resizing images. Perhaps someone could add a mention of the 'NOKEEPASPECT' option (and any other such undocumented features) to the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29&action=edit&section=9). I don't really want to register for that one thing, you know. :x


Other than that, fantastic plug-in. I'd been waiting for something like this... i don't know, almost since Columns UI was invented. A while, anyway.
Title: foo_uie_single_column_playlist
Post by: BelleAndZEK on 2006-12-01 02:24:57
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-01 02:39:11
So I was playing around with album art alignment and since I could find no real documentation outside of the wiki about it I thought I'd post this:

(http://img77.imageshack.us/img77/3673/fooalignbo9.th.png) (http://img77.imageshack.us/my.php?image=fooalignbo9.png)
Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).png),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).tif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).gif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).jpg),halign-r)
,),)

This basically displays a background image of an empty cd case, then resizes the album art to a height that will fit in the case and align it to the right of the case. This is somewhat useful as it will take full images like the first example and overlay on top of the case spine while normal images like the last example fit in the case as normal. Smaller images like cd singles in the center examples get pushed to the side.

I'd still like to be able to run some sort of calculation to figure out the size of the resized image and remove the empty case for cd singles, and there are some ugly results when using nonstandard sized images (like vertical full size cover scans) but hey.. this is an example of how to use that halign parameter if anyone is interested (there is also a valign parameter for vertical alignment).
Title: foo_uie_single_column_playlist
Post by: skelly831 on 2006-12-01 02:48:00
Oh, hey. Another thing. This one's pretty small though.

It took me ages to figure out how to get the component to ignore the aspect ratio when resizing images. Perhaps someone could add a mention of the 'NOKEEPASPECT' option (and any other such undocumented features) to the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29&action=edit&section=9). I don't really want to register for that one thing, you know. :x

The NOKEEPASPECT option and other changes are mentioned in the .txt file that's included with the plugin.
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-12-01 03:09:59
couldnt you just wildcard it like this?

Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),halign-r)
,),)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-01 03:13:22
Does this component now support wildcards for imageabs2? Last I checked it didnt but that was a little while ago.

EDIT: So I gave it a try and it worked. Optimizing my code now thanks for the heads up
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-12-01 13:51:01
Are buttons supported yet?

I would love to be able to have this:

$if($strcmp($right(%filename_ext%,3),mp4),
$button(700,0,0,0,0,0,images\arrow.png,images\arrow.png,VLC,),
)
Title: foo_uie_single_column_playlist
Post by: BelleAndZEK on 2006-12-01 16:52:33
I was going to ask the same about $button()

it'd be nice to have for this plugin with more parameters than just the usual "play", "pause", etc..
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2006-12-02 03:40:49
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work

I'm having the exact same problem. My code works for every single album in my collection except for one, and that one has a '#' in it.
Title: foo_uie_single_column_playlist
Post by: topdownjimmy on 2006-12-02 18:58:04
I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.
Title: foo_uie_single_column_playlist
Post by: fabiospark on 2006-12-02 19:29:47
I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.


Can you do some more tests, please?

Maybe the ability to have scp stay on a different playlist than the one selected in the columns UI has been implemented silently... (if it's even possible)

There are a lot peple waiting for that.

Thanks.
Title: foo_uie_single_column_playlist
Post by: topdownjimmy on 2006-12-02 19:37:22
I added a second SCPL, and that one followed the playlist switcher selection.  I moved my formatting strings over, removed the first one, and now I'm back to normal.  Not sure what went wrong.

I can say that what seems to have triggered it was having both a playlist dropdown and a playlist switcher in my layout.  As soon as I added the switcher, it stopped following either.  And even after I then removed the playlist dropdown, it wouldn't follow the selection.
Title: foo_uie_single_column_playlist
Post by: topdownjimmy on 2006-12-02 19:59:09
Thanks for this amazing plugin.  I think a lot of people agree it really revolutionizes foobar.  I never saw it coming!

A few feature requests:

* Sum of some tag in group.  This could be useful for generating an average rating for an album -- e.g. $div($groupsum(%rating%),%_groupitemcount%)

(I know %_groupitemcount% isn't correct -- isn't there code for this?)

or for generating the number of "total plays" of an album -- $div($groupsum(%play_count%),%_groupitemcount%)


* Can %_isplaying% be used in Group Display?  This way you could change the look of the header depending on whether something in the group is playing.


* Can buttons be made to work with foo_run?


Thanks again!
Title: foo_uie_single_column_playlist
Post by: Protoss on 2006-12-03 02:38:38
Okay I just started playing with foobar again, iTunes was just too bloated for me. I've got it so it shows my album art, but for some reason, it seperates a lot of my albums, so they are not grouped.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-03 03:04:44
Protoss:

File> Preferences> General> "Sort incoming files by:"
-or-
Edit> Sort> Sort by...

You need to put %album% somewhere in your sort string.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-12-03 03:11:28
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work


nope, won't work with paths with a #.


I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.


right click / playlist / make sure "Active" is checked.
Title: foo_uie_single_column_playlist
Post by: ViZioN on 2006-12-03 11:51:35
Hey guys!

I've got a few questions about the single column playlist plugin. Firstly is there any way to re-arrange items in your playlist, say my clicking and dragging? I've been unable to do it so far, maybe theres something i'm missing. Also is there any ETA even a rough one for when the refresh issue will be fixed.

I've attached a screenshot to show what I mean

(http://img165.imageshack.us/img165/740/foobaria6.jpg)

The U2 song was playing before slow moves but once it changes song it does not highlight the new song unless the new song is off the top of the playlist, or below the bottom.

Thanks for the great plugin!

ViZioN
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-12-03 11:55:47
You can re-arrange the play list by holding the Alt key when you're dragging stuff.


I don't know about the highlighting thing, though, that doesn't happen to me. You have 'Cursor follows Playback' checked in the Playback menu, yeah?
Title: foo_uie_single_column_playlist
Post by: ViZioN on 2006-12-03 12:56:37
You can re-arrange the play list by holding the Alt key when you're dragging stuff.

I don't know about the highlighting thing, though, that doesn't happen to me. You have 'Cursor follows Playback' checked in the Playback menu, yeah?


Thanks for the reply!

The holding ALT key works a charm thanks a lot for that 

I tried checking the cursor follows playback in the menu but it doesn't seem to have fixed the problem. I know it's a known issue with the plugin so I guess i'll just have to bear with it for now 

ViZioN
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-12-03 13:29:32
You can re-arrange the play list by holding the Alt key when you're dragging stuff.

Wow I didn't know that, that is really cool  .
Maybe some day this will work without having to click ALT   

Thanks terrestrial
Title: foo_uie_single_column_playlist
Post by: Hakubo on 2006-12-03 13:31:43

ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work


nope, won't work with paths with a #.
Is this "won't" as in "never/not planned" or "as of now"?
The $fileexists works correctly with paths with "#" in them. So instead of "no cover" image now I get no image at all.
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-12-03 13:43:05
On question does !noheader! works in the new version?
And what for settings you have to use? Tipping just !noheader! in group display?
Suppress Header works also if you type manually 0 in group rows. But then it shows 1 in group row settings but there is no  on playlist.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-03 17:26:31
Is it possible to show the same image twice using $imageabs2()? Whenever I try it, only one shows up.


Just to clarify, I'm using two $imageabs2() statements separately, and only the first works.
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-12-04 10:11:38
What do you mean 'the same image twice'? Something like this?

$imageabs2(15,13,,,,,15,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)
$imageabs2(15,13,,,,,35,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)


That works fine for me.


I have a question though. Did anybody ever figure out a good way to trim strings when they exceed a certain length? I saw some people discussing it way back on, like, page 28 or something, but it didn't do much for me.

The problem i'm running into is not necessarily getting it to trim, but rather getting it to trim more than once. I'm using this:

$ifgreater($calcwidth(%title%),$sub(%_width%,75),
$left(%title%,$sub($len(%title%),6))'...',
%title%)


And that works fine the first time. If i shrink the window to less than the title width, it chops off the last six characters. You run into a problem, of course, if you shrink the window any further than that, because the code is actually still checking to see if the length of the full title is less than the window width, not the length of the title minus whatever you chopped off it.

Is there any way to solve this currently?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2006-12-04 13:24:28
I use:
Code: [Select]
$ifgreater($calcwidth(%title%),$sub(%_width%,$get(position)),$cut(%title%,$sub($strchr(%title%,'['),2)),%title%)

where position is where the text is aligned to the left (depending on album art).
I store most version information in brackets in the filename such as [Live] or [Alternate Take]
you could just set up levels, or chop the filename in half and alternate which half is displayed with $mod().
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-04 15:44:13
^
The problem with your string is that it does not consider the average character width of a string (e.g. double width characters like W vs narrow ones like I.)

Here is what I am using. It cuts the string at the almost end of the area and replaces it with an ellipsis.

Code: [Select]
$puts(string,%title%)
$puts(charWidth,$div($calcwidth($get(string)),$len($get(string))))
$puts(areaWidth,$div(%_width%,5))

$alignabs(50,0,$get(areaWidth),30,left,top)

$ifgreater($calcwidth($get(string)),$get(areaWidth),
$left($get(string),$sub($sub($len($get(string)),$div($sub($calcwidth($get(string)),$get(areaWidth)),$get(charWidth))),2))'...'
,
$get(string)
)
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-12-04 17:03:00
Ug. I guess that works, but it's real hacky. Especially if you have variables like whether or not the artist is prepended to the track (in the case of compilations for example), et cetera. I suppose that's as good as you can get without re-implementing the original trackinfo ellipsising code though. Or using a monospaced font. :shrug:


(Why did the original code have to be removed anyway?)
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-04 20:41:40
What do you mean 'the same image twice'? Something like this?

$imageabs2(15,13,,,,,15,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)
$imageabs2(15,13,,,,,35,3,C:\Program Files\foobar 0.9.4\images\hellosatan.png,)


That works fine for me.


$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work
Title: foo_uie_single_column_playlist
Post by: TheDom on 2006-12-05 00:11:55
Until today I run with v0.8 of foobar but I discovered screenshots of this great plugin so I updated to v0.9.4.2

But I simply can't get this plugin to work. I installed v0.5.4 Beta of it and v0.1.3 Beta 7 of Columns UI but I can't find where I should be able to configure it. I read somewhere that this should be possible via Display -> Columns UI -> Playlist View but there is nothing.

[a href="http://img67.imageshack.us/my.php?image=screenshot003na8.jpg" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-05 00:15:20
Right-Click in SCP area -> Settings
Title: foo_uie_single_column_playlist
Post by: TheDom on 2006-12-05 00:19:14
Thanks, I got it
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-05 01:05:05
Ug. I guess that works, but it's real hacky. Especially if you have variables like whether or not the artist is prepended to the track (in the case of compilations for example), et cetera. I suppose that's as good as you can get without re-implementing the original trackinfo ellipsising code though. Or using a monospaced font. :shrug:

Setting the first variable value to "%artist% - %title%" (or whatever you want) should do the trick, no? I agree with you, it's a pretty harsh process to trim a string, but I can't think of another more straightforward yet accurate way to do that.

Quote
(Why did the original code have to be removed anyway?)

Request: is it possible to add some kind of ellipsising support for too long stings?
Title: foo_uie_single_column_playlist
Post by: lav-chan on 2006-12-05 15:05:04
$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


Setting the first variable value to "%artist% - %title%" (or whatever you want) should do the trick, no?

No, it wasn't quite that easy for me. First of all the artist doesn't always show up (only if it's a compilation or a single track), so i had to go back and create a variable to determine whether it should. Secondly the artist is formatted differently from the title, so i couldn't just add it to the one string ('cause otherwise they'd be formatted the same). So i had to add the variable to your code, and then go strip the artist back out of the string it displays at the end so it wouldn't show up twice.

Quote
Request: is it possible to add some kind of ellipsising support for too long stings?

signed
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-06 02:44:23
$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.
Title: foo_uie_single_column_playlist
Post by: CepiPerez on 2006-12-06 03:51:29
Terrestrial:
I' having problems with keyboard shortcuts in the latest version.
When I change between layouts, shortcuts doesn't work, until I restart or minimize-maximize foobar.
Title: foo_uie_single_column_playlist
Post by: san84 on 2006-12-06 11:28:42
How to hide scroll bar? It's really annoys me.. And in last beta it's always on my screen 
Title: foo_uie_single_column_playlist
Post by: ubi on 2006-12-06 11:29:19
I'm having the same problem as CepiPerez. For Example after switching to my lyrics display I'm not able to switch back to playlist display unless I restart foobar.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2006-12-06 11:53:11

$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.

areaWidth & areaHeight: This only allows shrinking, it does not allow expanding the size of the image. (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29#.24imageabs2)
Title: foo_uie_single_column_playlist
Post by: Infil on 2006-12-06 18:38:56
I'm having trouble using the ALT key to drag items. I'm using 0.3.2 beta. Is it because I have sorted elements in groups?

EDIT: I fixed it! I upgraded the component
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-07 02:37:40


$imageabs2(%_width%,%_width%,0,$sub($div(%_width%,2),22),%_width%,%_width%,0,0,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(78,78,0,0,78,78,5,5,$replace(%path%,%filename_ext%,folder.jpg),)

doesnt work

I dunno, it works for me. Shows two copies of folder.jpg.


It's supposed to make the first one stretch to as wide as the panel is and use a chunk of the image as a background to the group header basically. I'm just getting 2 of the same sized images.

areaWidth & areaHeight: This only allows shrinking, it does not allow expanding the size of the image. (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29#.24imageabs2)


That's not what I' doing. Basically, no matter what size, I cannot have the same image used twice in this panel if the two instances of the image are set to different sizes.

And with the release I have, it stretches the image.
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-12-07 22:10:04
I think I've found a bug with adding to the playback queue.

If I enqueue a track in ColumnsUI or the defaultUI it will switch playback to the playlist where I enqueued the file.

However if I do the same thing in SCP it goes back to where it was before. Also while playing the enqueued item %_isplaying% returns 0 and %cwb_queue_end_playlist% returns an empty string.

It's kind of annoying as I use add to playback queue to gaplessly change playlists.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-07 23:21:14
I have discovered odd behavior with the alpha parameter of the $drawrect() function under SCPL. I wonder if anyone could tell me if i'm using it wrong or if I have encountered a bug.

Starting with this line of code I see a normal blue bar for the now playing item:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)
(http://img373.imageshack.us/img373/6127/fooscplgreen1ft2.th.png) (http://img373.imageshack.us/my.php?image=fooscplgreen1ft2.png)

What I would like to do is make that blue bar semi-transparent so I try this, but I get a green semi-transparent bar instead of a blue one:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null alpha-64),)
(http://img394.imageshack.us/img394/1561/fooscplgreen2os5.th.png) (http://img394.imageshack.us/my.php?image=fooscplgreen2os5.png)

I have tried using brushcolor-0-0-255, I have tried many other colors and many other alpha levels but every time I get a green bar instead of a blue one. I can't even get a red one. Any input would be appreciated.
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-0-0-255 pencolor-null alpha-255),)
(http://img166.imageshack.us/img166/9062/fooscplgreen3tm0.th.png) (http://img166.imageshack.us/my.php?image=fooscplgreen3tm0.png)

EDIT: It appears that alpha uses pencolor not brushcolor. By using code like this I was able to achieve the desired effect:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-10-36-106 alpha-128),)
[(http://img468.imageshack.us/img468/5883/fooscplgreen4jk2.th.png) (http://img468.imageshack.us/my.php?image=fooscplgreen4jk2.png)
I still don't know where the green came from.
Title: foo_uie_single_column_playlist
Post by: saberrider on 2006-12-07 23:40:12
I'd also like to see ellipse support for alignabs. That shouldn't be too hard to implement I hope.
Title: foo_uie_single_column_playlist
Post by: spex04 on 2006-12-08 00:51:09
I have discovered odd behavior with the alpha parameter of the $drawrect() function under SCPL. I wonder if anyone could tell me if i'm using it wrong or if I have encountered a bug.

Starting with this line of code I see a normal blue bar for the now playing item:
Code: [Select]
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)
[a href="http://img373.imageshack.us/my.php?image=fooscplgreen1ft2.png" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: mazy on 2006-12-08 07:55:40
i think i wrote something about this quite some time ago (look up my $drawrect post). when using alpha, different (and sometimes not very logical or obvious) rules apply.

imho it would be nice to make some things more consistent, mostly colors and alpha stuff. like enable specifying color in foobar's format (inside 'square' characters), make color gray scale when using just one value (pencolor-50) and add alpha as 4th optional parameter (pencolor-100-0-0-200) etc.

what do you guys think?

edit: imho positioning stuff could use some polishing too. like what omitting a value does, what zero or negative value does, special constants, percentage values etc.

these are some issues which basically holds me back from extensively using these (single column playlist and this) components
Title: foo_uie_single_column_playlist
Post by: Betse on 2006-12-08 09:10:29
I'm glad the simple selecting now works in this plugin. So i started using it.
I have two remarks about that selecting.
1. when you want to select more than you can see in your screen and move, while selecting, your cursor up and past the edge of the playlist window it doesn't scroll up. It doesn't behave like in other windows while selecting.
Could you implement that?
2. Moving with ALT isn't very intuitive. There are probably reasons why you didn't take over the normal selectin procedure like in the colums_ui playlist, but, maybe it's still possible to just move while keeping left mousebutton down.

I have a nice layout now  I'm happy, except for the selecting procedure.
Title: foo_uie_single_column_playlist
Post by: FofR on 2006-12-08 17:21:47
is it possible to get an updated version that has the rotate image function within it?
Title: foo_uie_single_column_playlist
Post by: uac marine on 2006-12-08 23:15:33
Hi, I've got a problem on how groups are created.

If I sort my groups by %artist%, I would expect to have only one group for each different artist.
But instead, there are multiple groups for the same artist created. Could it be that more than one group is created because the songs come from different albums... that wouldn't make sense as I have them just sorted by %artist% and nothing else :/

How can I prevent single columns from further sub-sorting of groups, so that I have one group for one artist?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-09 03:02:06
SCPL does not sort, it only groups. You need to develop a functional sort string from either:
File> Preferences> General> "Sort incoming files by:"
-or-
Edit> Sort> "Sort by.."

For reference here is my own current sort string:
Code: [Select]
%album artist%|$if(%tracknumber%,%date%,0)|$if(%tracknumber%,%cdid%,)|$if(%tracknumber%,%album%, )|%discnumber%|%tracknumber%|%path_sort%

Once you have developed a working sort string you can then place your attention to the SCPL group by function. SCPL will group entries together but it will not sort your entries to fit those groups.
Title: foo_uie_single_column_playlist
Post by: uac marine on 2006-12-09 13:29:51
Thank you, it works
Title: foo_uie_single_column_playlist
Post by: blaxima on 2006-12-09 21:56:40
Terrestrial:
I' having problems with keyboard shortcuts in the latest version.
When I change between layouts, shortcuts doesn't work, until I restart or minimize-maximize foobar.


My problem is with certain keys no matter if I minimize it or not.
My spacebar no longer can be used for Play\Pause
My arrow keys can no longer scroll through my playlists
My other keys seem to still work however

I'm sticking with this version though because of the excellent job in reducing the memory used!!

Thanx Terrstrial
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-10 05:28:18
So I use albumart in the playlist, I do the thing where you put the album cover in the image of a cd case and I've seen many others do this too. Well, when you have albumart that is not a 1:1 aspect ratio you end up with half an empty cd sticking out which is kind of ugly so I whipped up a bit of code to fill in the space with white but only when the albumart is present. This way you still see the empty cd case when no art is available.

Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$if($fileexists($replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*)),
$drawrect(17,$sub(5,$mul(%_height%,$sub(%_itemindex%,1))),84,84,brushcolor-255-255-255 pencolor-null)
$imageabs2(84,84,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,17,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),)
,)
,),)
* this is for art in the itemlist not the group headers.
Title: foo_uie_single_column_playlist
Post by: stampgevaar on 2006-12-10 14:19:00
Love your plugin but can isn't there a way to make it when you select several songs with ctrl click and then rightclick that your selection doesn't go away?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-10 14:48:07
stampgevaar: keep holding ctrl when you right click
Title: foo_uie_single_column_playlist
Post by: stampgevaar on 2006-12-10 16:13:11
hehe nice didn't figured that out myself
Title: foo_uie_single_column_playlist
Post by: Sihkih on 2006-12-10 20:29:50
is there any chance to get total time of items in the grup?
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-11 04:19:01
I request the feature to add "dead lines" (an item row that takes up space but has no song there and is skipped over when playing) for layout purposes.

Pretty much, I want to display the full album art even if there isnt enough items in a group to display the whole thing.

I'm not sure how this would work, maybe some variable in the coding to say where to put the dead rows and how many. But hey, its a thought. It's probably been requested before too...
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-11 04:53:35
I request the feature to add "dead lines" (an item row that takes up space but has no song there and is skipped over when playing) for layout purposes.

Pretty much, I want to display the full album art even if there isnt enough items in a group to display the whole thing.

I'm not sure how this would work, maybe some variable in the coding to say where to put the dead rows and how many. But hey, its a thought. It's probably been requested before too...

A minimum group size has already been suggested somewhere in the thread which was an interesting idea. I guess it shouldn't be too hard to implement.. from my no programing skills at all point of view.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-11 05:08:01
I request the feature to add "dead lines" (an item row that takes up space but has no song there and is skipped over when playing) for layout purposes.

Pretty much, I want to display the full album art even if there isnt enough items in a group to display the whole thing.

I'm not sure how this would work, maybe some variable in the coding to say where to put the dead rows and how many. But hey, its a thought. It's probably been requested before too...

A minimum group size has already been suggested somewhere in the thread which was an interesting idea. I guess it shouldn't be too hard to implement.. from my no programing skills at all point of view.


Oh yeah I remember that being requested, just didn't know what a minimum group size was.

It all makes sense now. >_<
Title: foo_uie_single_column_playlist
Post by: Fresh on 2006-12-11 10:09:22
Hello, everyone!
I try to read all of 45 pages in this topic but I can't...

Please help me, I just want a one simple thing in my playlist.

before someone help me:

...
audiotrack 13
audiotrack 14
audiotrack 1
audiotrack 2
...

after that:

...
audiotrack 13
audiotrack 14
Artist - Album
audiotrack 1
audiotrack 2
...

no color themes, one column.

---
sorry for my english...
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-12-11 12:24:46
Oh yeah I remember that being requested, just didn't know what a minimum group size was.

It all makes sense now. >_<


For the time being you could add the Location "silence://1" and blank out the track info if its %path% starts with "silence:".
Title: foo_uie_single_column_playlist
Post by: sPeziFisH on 2006-12-11 14:39:43
@ Fresh: What you want to have is 'Group Display' (I guess the different tracks do not belong to the same album) and furthermore I guess you want the tracks to be grouped by album.

Group by: [%album%]


Group Display: [%artist%] - [%album%]
or
Group Display: $align(center,middle)[%artist%] - [%album%]


hope this helps
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-12-11 17:17:34
please terrestrial update single columns with the rotate flip stuff from trackinfo...
Title: foo_uie_single_column_playlist
Post by: Fresh on 2006-12-12 05:22:13
Group by: [%album%]

Group Display: [%artist%] - [%album%]
or
Group Display: $align(center,middle)[%artist%] - [%album%]


Where i must write this?
...
I'd like to see my playlist like in first post...

I have installed these components:
Trackinfo Mod
Single Column Playlist
MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

but nothing haven't happenned...
Title: foo_uie_single_column_playlist
Post by: sPeziFisH on 2006-12-12 11:37:51
Where i must write this?
First of all you have to read.
As you found the 1st post, you should use the given link, it refers to the wiki.
The only thing which is somewhat stupid is that it refers to the history of that wiki, therfore you have to use the 'foobar 2000'-link at the top-left of the referred page - you'll check it out.
You will have to 'install' ColumnsUI and after some times of reading and simply trying you could understand what this configuration-thing is about.
Don't ask for service, better give yourself some service.. become fresh 

edit: typo
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-12-12 12:09:27
Hey this helped me to solve a problem 
Now I added in Group by [%artist%] - [%album%]
I had some problems that headers from other albums didn't appear in playlist when sending albums to playlist
Thanks 
Title: foo_uie_single_column_playlist
Post by: walla on 2006-12-12 18:05:59
I've a request.

Could you add the feature that the group display will be removed if no code is set? It's because I want have a simple layout "%artist% - %title%" with no headline. I could do it with Columns Playlist, but i would miss the skinning-thing  .

btw: Is the sourcecode somewhere available for download?
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2006-12-12 18:45:49
If the result of group by is "!noheader!" then no header will be created, for any of those groups. I personally group by %album% or "1" depending on the playlist name, that way there is a header for the playlist in single mode.
Title: foo_uie_single_column_playlist
Post by: crackpirate on 2006-12-13 11:21:01
hey there ...this plugin is the bomb I really love it ...thx for that

the only real major problem I sometimes have with it is that I can't sort/move tracks around in a playlist by hand

will this be possible in the future?
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-12-13 11:32:59
hey there ...this plugin is the bomb I really love it ...thx for that

the only real major problem I sometimes have with it is that I can't sort/move tracks around in a playlist by hand

will this be possible in the future?


hold down "Alt" and drag tracks
Title: foo_uie_single_column_playlist
Post by: crackpirate on 2006-12-13 11:54:27

hey there ...this plugin is the bomb I really love it ...thx for that

the only real major problem I sometimes have with it is that I can't sort/move tracks around in a playlist by hand

will this be possible in the future?


hold down "Alt" and drag tracks


hah

thx a bunch
Title: foo_uie_single_column_playlist
Post by: unprefaced on 2006-12-15 16:01:51
There is a variable for group index: first group has index of 1, second group has index of 2. I cannot remember the name of that variable.
Is there/I would like a variable that would return the total nubmer of groups.
I will use is with foo_skip to calculate the average group size, and skip some songs in groups that are above that average
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-15 18:03:24
There is a variable for group index: first group has index of 1, second group has index of 2. I cannot remember the name of that variable.

Such a thing does not exist AFAIK. And if it does, I'd like to know the name too.
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2006-12-16 19:20:00
Displaying the same image twice with different scaling seems to fail the second time.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-16 22:29:35
Displaying the same image twice with different scaling seems to fail the second time.


yep I said that a few pages ago
Title: foo_uie_single_column_playlist
Post by: stampgevaar on 2006-12-18 11:41:20
Isn't it possible to do buttons in the single column playlist ?? would be very nice to do ratings, search for info etc
Title: foo_uie_single_column_playlist
Post by: 2Pacalypse on 2006-12-18 14:42:16
Isn't it possible to do buttons in the single column playlist ?? would be very nice to do ratings, search for info etc


hopefully in the next release
Title: foo_uie_single_column_playlist
Post by: rouge on 2006-12-19 10:32:08
There is a variable for group index: first group has index of 1, second group has index of 2. I cannot remember the name of that variable.

Such a thing does not exist AFAIK. And if it does, I'd like to know the name too.


%_itemcount% and %_itemindex% are the ones I use to calculate if a row is the top row or the bottom row of a group.  I forget which is which.


Will the introduction of per-second strings in the trackinfo mod panel carry over into single column? That might reduce the resources a bit when using images in the playlist.  For example, I can't image that the typical way to display album art in the playlist is particularily optimized if it has to render an image x times per spanned row.  This plug-in could use some speed tweaks, though I still can't give it up because of it's rich features.

Speaking of features, this plug-in really has taken foobar to the next level of configuration options.  I'd say this place is only about average when it comes to taking criticism, so I always try to mention something positive.
Title: foo_uie_single_column_playlist
Post by: MyMaster on 2006-12-20 00:03:55
Off topic:

i have a bit of a problem with my code here, i'm trying to use a noalbum image and a cover overlay image, and it does work when i go to settings and use apply, but if i, for example, right click a directory and play in foobar then my noalbum and overlay images don't work.  not sure if it is because i'm, using the same dimensions for all images.

any help would be appreciated.

here's my Group display code:

$if(%album%,
$imageabs(,,images\album.png,),
$imageabs(,,images\album2.png,)
)
$if(%album%,
$imageabs2(100,94,0,0,,,4,6,'images\nocover.jpg',NOKEEPASPECT)
$imageabs2(100,94,0,0,,,4,6,$replace(%path%,%filename_ext%,)album.jpg,NOKEEPASPECT)
$imageabs2(100,94,0,0,,,4,6,'images\artoverlay.png',NOKEEPASPECT),
)

$imageabs(113,94,images\bar_artist2.png,)
$if(%album%,$alignabs(113,2,1000,60,,)$font(impact,40,textalpha-25,255-170-30)%artist%,)

$alignabs(113,65,1000,20,,)
$font(calibri,11,glow-32-32-32,255-170-30)[%artist%]
$if(%album%,$font(calibri,11,glow-64-64-64,255-255-255)  •  $font(calibri,11,glow-32-32-32,255-170-30)%album%,
)
$if(%album%,
$alignabs($sub(%_width%,406),75,400,20,right,)
$if(%genre%,
$font(calibri,8,glow-64-64-64,255-255-255)
$if(%genre%,%genre%,'('Unknown Genre')') 
$font(calibri,9,glow-32-32-32,255-170-30)•  ,
)
$if(%date%,
$font(calibri,8,glow-64-64-64,255-255-255)
$if(%date%,%date%,'('Unknown Date')') 
$font(calibri,9,glow-32-32-32,255-170-30)•  ,
)
$font(calibri,8,glow-64-64-64,255-255-255)%_itemcount% track
$if($stricmp(%_itemcount%,1),,s) 
$font(calibri,9,glow-32-32-32,255-170-30)• 
$font(calibri,8,glow-64-64-64,255-255-255)%codec%
$if(%__replaygain_album_gain%, 
$font(calibri,9,glow-32-32-32,255-170-30)• 
$font(calibri,8,glow-64-64-64,255-255-255)AlbumGain:
$if(%__replaygain_album_gain%,%__replaygain_album_gain%, '('not available')')),
)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-20 04:39:05
%_itemcount% and %_itemcount% are the ones I use to calculate if a row is the top row or the bottom row of a group.  I forget which is which.


Do you mean %_itemcount% and %_itemindex% ?

%_itemcount% = total number of items in the current group
%_itemindex% = the position of the current item in the current group
%list_total% = total number of items in the playlist
%list_index% = the position of the current item in the playlist
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2006-12-20 09:13:51
how long until single columns is updated to be in line with track info mod - I would love the rotate function stuff to be implemented.. pls
Title: foo_uie_single_column_playlist
Post by: Lyx on 2006-12-20 17:57:56
IMHO the way to move tracks in a playlist is extremely unintuitive.

First, i had no clue at all how to do it. I searched the config pages if there is an option. After about 5mins, the idea crossed my mind, that it may work in combination with shift, crtl or alt. Only that way (trial and error) i found out how it works. If i would be less experienced with computers, i probably wouldn t have found it at all.
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-20 18:13:57
i have a bit of a problem with my code here, i'm trying to use a noalbum image and a cover overlay image, and it does work when i go to settings and use apply, but if i, for example, right click a directory and play in foobar then my noalbum and overlay images don't work.  not sure if it is because i'm, using the same dimensions for all images.

I once had the same problem. Here's the answer I got:

Code: [Select]
$imageabs2(,,,,,,,,images\art.png,)

It will seek for art.png in X:\%foobar_install_directory%\images\art.png.

not quite... the path (images\art.png) is unaltered, and how it is interpreted is determined by windows (which uses the "working directory" as the base). The working directory is the foobar install directory if you run foobar from a shortcut, or launch it directly, but if foobar starts from you clicking an associate file (eg .mp3), then the working directory is the directory where the mp3 resides. I wouldn't recommend using this.

Code: [Select]
$imageabs2(,,,,,,,,/images\art.png,)

It will also seek for art.png in X:\%foobar_install_directory%\images\art.png.

yep. the path (/images\art.png) will be altered to %foobar_install_directory%\images\art.png.


Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2006-12-20 20:38:50
IMHO the way to move tracks in a playlist is extremely unintuitive.

First, i had no clue at all how to do it. I searched the config pages if there is an option. After about 5mins, the idea crossed my mind, that it may work in combination with shift, crtl or alt. Only that way (trial and error) i found out how it works. If i would be less experienced with computers, i probably wouldn t have found it at all.


While i agree to an extent, This plugin is clearly not for computer-illiterates as it requires some pseudo-code understanding at the very least.
Title: foo_uie_single_column_playlist
Post by: MyMaster on 2006-12-21 02:18:11
absolute path worked, thank you

i have a bit of a problem with my code here, i'm trying to use a noalbum image and a cover overlay image, and it does work when i go to settings and use apply, but if i, for example, right click a directory and play in foobar then my noalbum and overlay images don't work.  not sure if it is because i'm, using the same dimensions for all images.

I once had the same problem. Here's the answer I got:

Code: [Select]
$imageabs2(,,,,,,,,images\art.png,)

It will seek for art.png in X:\%foobar_install_directory%\images\art.png.

not quite... the path (images\art.png) is unaltered, and how it is interpreted is determined by windows (which uses the "working directory" as the base). The working directory is the foobar install directory if you run foobar from a shortcut, or launch it directly, but if foobar starts from you clicking an associate file (eg .mp3), then the working directory is the directory where the mp3 resides. I wouldn't recommend using this.

Code: [Select]
$imageabs2(,,,,,,,,/images\art.png,)

It will also seek for art.png in X:\%foobar_install_directory%\images\art.png.

yep. the path (/images\art.png) will be altered to %foobar_install_directory%\images\art.png.



Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-21 03:16:48
sooo, is there any way to sort the stuff on the plugin without re-adding/manually moving the items?
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-21 03:35:32
Nope, no built-in sorting system yet. You can specify a custom sorting string in foobar preferences though. It works.
Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-21 04:23:06
where in the preferences?
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-21 04:43:08
Preference > General > Sort incoming files by

This is what I use:
Code: [Select]
$if($if3($meta_test(album artist),%VARIOUS%,),Various Artists,%ARTIST%) - $if(%TRACKNUMBER%,%DATE% - %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - )%TITLE%
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2006-12-21 04:59:18
is there a way to get the total time of the tracks in the group? like the length of an album to be displayed in the header?
Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-21 05:19:08
Preference > General > Sort incoming files by

This is what I use:
Code: [Select]
$if($if3($meta_test(album artist),%VARIOUS%,),Various Artists,%ARTIST%) - $if(%TRACKNUMBER%,%DATE% - %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - )%TITLE%

doesn't work if the files are already there though . what i do is i use the Album List plugin(not the column), i rescan the media library, i empty out the whole playlist, and then i just add all my songs from the Album List. the thing is, the album list is really picky when it comes to different album dates. eg, two CDs of the same album. on the first one the date is 1982 and the second one is 2005. so it doesn't order it right
Title: foo_uie_single_column_playlist
Post by: eejadx on 2006-12-21 05:39:10
It's weird.. Because it works perfectly for me...

I'm using Album List panel too. At first, I thought this "sort incoming files by" option was only meant to sort new files added to the library. But after some investigation, I noticed that the option have an effect in the way files are displayed in SCP. For instance, if you take the string I posted above, remove %date%, then try to send files from an artist from Album List to the playlist (i.e. SCP), you will see that albums are displayed in wrong %date% order. Put back %date% in the string and everything works. This is how it sorts my files:

Code: [Select]
*ARTIST 1
   *1998 - ALBUM 1
      *01 - TITLE 1
      *02 - TITLE 2
   *1999 - ALBUM 2 DISC 1
   *1999 - ALBUM 2 DISC 2
*ARTIST 2
   *SINGLE ALBUM TRACKS
      * TITLE 1
      * TITLE 2
      * ...
   *2002 - ALBUM 1
   *...
*VARIOUS ARTISTS
   *1982 - ALBUM 1
   *...


I tried last week playlist tree and I took note that "sort incoming files by" does not have an effect on the way files are displayed in playlist. I guess it is a "feature" from Album List...

Maybe I'm missing something, but let me know anyway.
Title: foo_uie_single_column_playlist
Post by: kockroach on 2006-12-21 14:21:28

Preference > General > Sort incoming files by

This is what I use:
Code: [Select]
$if($if3($meta_test(album artist),%VARIOUS%,),Various Artists,%ARTIST%) - $if(%TRACKNUMBER%,%DATE% - %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - )%TITLE%

doesn't work if the files are already there though . what i do is i use the Album List plugin(not the column), i rescan the media library, i empty out the whole playlist, and then i just add all my songs from the Album List. the thing is, the album list is really picky when it comes to different album dates. eg, two CDs of the same album. on the first one the date is 1982 and the second one is 2005. so it doesn't order it right

Go to the "Edit > Sort" menu.  The first one is your default custom sort string, the others are common sorting schemes.  Select the one you want, and it will sort your current list.  I had just used it, so I know it is working (for me at least).
Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-21 23:43:51
ty. that is EXACTLY what i was looking for
Title: foo_uie_single_column_playlist
Post by: Silverbolt on 2006-12-22 03:26:31
Just a quick report, pressing Page Up when you're on the first playlist item crashes foobar. 0.5b/Nov 24 build. Thanks.

Fixed in 0.5.4 beta, thanks.
Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-22 03:51:04
doesn't happen here...

edit: using 0.5.4 btw
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2006-12-22 04:35:46
Here's a big problem I'm having. Due to the caching used for images used in drawing the playlist, there are ugly drawing problems involved. With an image that is stretched using the imageabs2 function for the group and item rows, resizing the playlist section will result in breaking these images. There should be some sort of way to refresh the image cache on playlist window resize, or when the scrollbar is shown or hidden. I'm sure it only applies to resized images.

This also happens with album art as well when changing a sort option. The image will shrink, but not expand back to the right size.
Title: foo_uie_single_column_playlist
Post by: c0utta on 2006-12-24 08:57:33
Hi Guys,

I think I've found something peculiar with Playlist tabs together with Single Column Playlist View.

Using this setup (NOTE: I've removed other components to highlight the issue)

Code: [Select]
Vertical splitter
- Horizontal splitter
  - Playlist tabs
    - Single Column Playlist View


If I turn off the "Playlist tabs" caption, I find that I can't resize the Playlist tabs at all.  If I change the SCP to a Columns Playlist, I can resize just fine.

Has anyone else experienced this issue?

Cheers,

c0utta
Title: foo_uie_single_column_playlist
Post by: Lyx on 2006-12-24 14:08:54
IMHO the way to move tracks in a playlist is extremely unintuitive.

First, i had no clue at all how to do it. I searched the config pages if there is an option. After about 5mins, the idea crossed my mind, that it may work in combination with shift, crtl or alt. Only that way (trial and error) i found out how it works. If i would be less experienced with computers, i probably wouldn t have found it at all.

Next issue - the playlist does not scroll automatically when selecting or moving tracks. For example, when i want to move tracks further than the visible part of the playlist, i have to do FOUR things simultaneusly: hold lbutton, hold alt, move mouse, use scrollwheel.

Proposed ways to fix it:

Generally: Make the playlist autoscroll
Model1: Do it the same way columns UI does selection and moving(left mousebutton only)
Model2: add/remove tracks from selection via singleclick, or shift to define ranges. Moving via simple leftbutton-dragging.
Title: foo_uie_single_column_playlist
Post by: Lyx on 2006-12-24 21:33:48
Next usability-issue:

Rightclicking does not just access the contextmenu - it also modifies the selection of tracks.

How to reproduce:
1. click on first track
2. hold shift, then click on last track - all tracks are now selected
3. rightclick on a track in the middle - the selection will be modified AND the contextmenu will be opened
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-24 21:39:47
Lyx: This behavior does not happen all the time.

I just tried to re-create the problem but did not experience it. When I right clicked on the selection, the selection did not change.

However I have seen this happen before and discovered that shift+rightclick will prevent the selection from changing.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-26 06:31:07
Can anyone list specifically what the dependencies for this component are?

This may sound like an odd request but I am trying to hack away at getting foobar to run on a mac, and this component is presenting a bit of a challenge. I am currently exploring Crossover Mac with a WinXP bottle for compatibility.

I have been able to install the VC++ Redistributable package linked from the first post but this does not appear to be enough. In fact I have had similar problems with a default install of xp before (problem resolved after completing windows update with .net packages). I have attempted to run the .NETFX installer but it gives me all sorts of crap because I do not have IE installed. Before I go down the road of installing a full .net environment with IE and all the other crappiness that goes with it I was wondering if I could get away with simply copying some .dlls off a working windows system.
Title: foo_uie_single_column_playlist
Post by: Mangix on 2006-12-26 08:07:34
why not just get the VC++ runtimes instead of downloading .NET(which is almost useless in your case)? it should solve your problems. here's a link for them if you're wondering where to find them.

http://www.microsoft.com/downloads/details...99-220B62A191EE (http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-26 09:21:20
As stated before I have already installed the VC++ runtimes. I have also installed the GDI+ package even though I am not running Win2000. Whenever I attempt to load foobar with this component I encounter the standard error:

Quote
Failed to load DLL: foo_uie_single_column_playlist.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


I have encountered this exact same situation on a default install of WinXP SP2 before visiting windows update. So there is clearly something more than  just the runtimes that are required. Something most of us take for granted while running windows and is likely included in windows update.
Title: foo_uie_single_column_playlist
Post by: loft on 2006-12-26 20:10:00
I have this config in item display:
Code: [Select]
$ifequal($mod(%_itemindex%,2),0,
$imageabs(0,0,images/playlist/background2.png,),$imageabs(0,0,images/playlist/background3.png,))
$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255),)
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-64-32-32 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-32-32-32))

$alignabs(0,0,30,17,center,middle)$textcolor(80-80-80)%list_index%
$alignabs(1150,0,30,17,center,middle)%length%
$alignabs(1190,0,30,17,center,middle)
$if($stricmp($codec(),musepack),
$if($stricmp(%codec_profile%,''Thumb''),'q3',
$if($stricmp(%codec_profile%,''Radio''),'q4',
$if($stricmp(%codec_profile%,''Standard''),'q5',
$if($stricmp(%codec_profile%,''Xtreme''),'q6',
$if($stricmp(%codec_profile%,''Insane''),'q7',
$if($stricmp(%codec_profile%,''BrainDead''),'q8',
$if($stricmp(%codec_profile%,''quality 9''),'q9',
$if($stricmp(%codec_profile%,''quality 10''),'q10',
$if($stricmp(%codec_profile%,''Unstable/Experimental''),
'qX',))))))))),
$if($stricmp($codec(),mp3),
$if($stricmp(%__extrainfo%,VBR),~,)
$if($stricmp($left(%codec_profile%,3),vbr),$right(%codec_profile%,2),%bitrate%),%bitrate%))
$alignabs(1230,0,30,17,center,middle)
$if(%__replaygain_track_gain%,'T'
$if(%__replaygain_album_gain%,'A'))
$alignabs(400,0,600,17,left,middle)%title%
$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255)
$alignabs(400,0,600,17,left,middle)%title%
$alignabs(1150,0,30,17,center,middle)'['%length%']'
$alignabs(1020,0,100,17,center,middle)
'... '%playback_time%' / '%playback_time_remaining%' ...',)
$if($or($stricmp(%album artist%,'Various Artists'),$not(%type%)),
$alignabs(100,0,300,17,right,middle)
%artist%' ... ',)
and I don't know why only the blur is active when one track is played. The color of the text doesn't change. I'm talking about the first $if(%isplaying%.. because with the second it works.
Strange!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-26 20:21:25
Code: [Select]
// If the track is currently playing
// Apply these blur effects to the text
// Otherwise do nothing.

$if(%isplaying%,
$font(,,boldglow-105-105-100 glowblur-5,221-221-255)
,)

Your code is only telling it to apply the glow for the nowplaying track. What is it that you are trying to do?
Title: foo_uie_single_column_playlist
Post by: chis on 2006-12-27 13:15:15
I cannot get this plugin to work.  I'm looking high and low under Columns UI options in preferences, and I can't find SCPL at all.

Can someone PLEASE give me a step-by-step to open just the bloody SCPL preferences window?  I can't find http://wiki.hydrogenaudio.org/index.php?ti...SCP_config1.PNG (http://wiki.hydrogenaudio.org/index.php?title=Image:SCP_config1.PNG) anywhere!!

Yes, I have VC 2005 SDK installed, yes I have .NET installed.  I am running Windows 2000.
Title: foo_uie_single_column_playlist
Post by: bvm on 2006-12-27 13:26:59
I cannot get this plugin to work.  I'm looking high and low under Columns UI options in preferences, and I can't find SCPL at all.

Can someone PLEASE give me a step-by-step to open just the bloody SCPL preferences window?  I can't find http://wiki.hydrogenaudio.org/index.php?ti...SCP_config1.PNG (http://wiki.hydrogenaudio.org/index.php?title=Image:SCP_config1.PNG) anywhere!!

Yes, I have VC 2005 SDK installed, yes I have .NET installed.  I am running Windows 2000.


Right Click on the panel and press "settings"
Title: foo_uie_single_column_playlist
Post by: chis on 2006-12-27 13:32:51
What panel?  Which settings button?

I don't see any, other than what's in the the standard Foobar window.
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-27 15:45:50
What panel?  Which settings button?

I don't see any, other than what's in the the standard Foobar window.


hit Ctrl+P

then go to:
Display -> Columns UI -> Layout tab
Title: foo_uie_single_column_playlist
Post by: chis on 2006-12-27 16:03:56

What panel?  Which settings button?

I don't see any, other than what's in the the standard Foobar window.


hit Ctrl+P

then go to:
Display -> Columns UI -> Layout tab


Did that, what am I looking for?  I can't find any mention of SCPL there.  It IS listed under components.

Edit: I've since tried one of the UIs at here (http://www.hydrogenaudio.org/forums/index.php?showtopic=49783) and it seems to work.  Never mind then!
Title: foo_uie_single_column_playlist
Post by: Nickoladze on 2006-12-27 16:32:35
read a tutorial or something
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2006-12-27 17:06:30
@Chis: Have a look at here:
Video Tutorial fpr SCPL (http://www.hydrogenaudio.org/forums/index.php?showtopic=51199)
This must help you
Title: foo_uie_single_column_playlist
Post by: chis on 2006-12-27 17:23:51
Thankyou Spirit, that's a LOT more helpful.
Title: foo_uie_single_column_playlist
Post by: loft on 2006-12-27 19:56:09
Yotsuya I thought that it would change the color too (221-221-255). The second $if(%isplaying% seems to actually do that. That was the thing that puzzled me.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2006-12-29 14:28:27
Will the introduction of per-second strings in the trackinfo mod panel carry over into single column? That might reduce the resources a bit when using images in the playlist.  For example, I can't image that the typical way to display album art in the playlist is particularily optimized if it has to render an image x times per spanned row.  This plug-in could use some speed tweaks, though I still can't give it up because of it's rich features.


as long as you set the clipping region correctly, spanning images across rows shouldn't have a negative performance impact vs drawing one image.

sooo, is there any way to sort the stuff on the plugin without re-adding/manually moving the items?


you can use the sort command in trackinfo_mod.

Can anyone list specifically what the dependencies for this component are?


you can use this to find out: http://www.dependencywalker.com/ (http://www.dependencywalker.com/)  Everything should be pretty standard (on a windows machine, at least) except for the c++ runtimes.
Title: foo_uie_single_column_playlist
Post by: sgoct on 2006-12-30 04:02:58
I use a custom tag called "grouping" and I'd like to be able to make groups in this format:

ARTIST
    -titles of tracks that do not have a GROUPING or ALBUM tag

  GROUPING if there is one, ALBUM if not
    -titles of tracks that have this GROUPING or ALBUM tag

  GROUPING if there is one, ALBUM if not
    -titles of tracks that have this GROUPING or ALBUM tag

NEXT ARTIST
etc etc

etc. Other things I'd like to do if possible: only show the ARTIST once, at the top of a stack of groups (like in the example), and order GROUPING by tracknumbers and discnumbers. For example, on a given album, tracks 1-4 might be in GROUPING1, 5-7 are not in a grouping, 8-10 are in GROUPING2, and on disc 2 of the album tracks 1-3 are in GROUPING3, and 4-6 are not in a grouping. In this case, I'd like the groups to be GROUPING1, then an ALBUM group with 5-7, then GROUPING2, then GROUPING3, then another ALBUM group.

I have no idea how to do any of this, or if it's even possible.

Also, is there a way to get the total number of list items in a group? I'm using the first method in the wiki for splitting up an album image between list items (using %list_index% instead of tracknumber, though, since that works better on albums with multiple discs), but I'd also like to be able to shrink the album image proportionately so that, for example, if there are only 4 tracks in a group that has an associated album image, it will shrink the album image so that the full image is displayed (although much smaller, of course) across those four images.

Thank you!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2006-12-30 05:18:27
sgoct: You need to develop a sort string using your GROUPING tag
File> Preferences> General> "Sort incoming files by:"
-or-
Edit> Sort> "Sort by ..."

You'll probably want to use something like
%album artist%|$if2(%grouping%,%album%)|%discnumber%|%tracknumber%

You can control the display of the group header from the "Group Display" portion of the SCPL configuration.

%_itemcount% = total number of items in the current group
%_itemindex% = the position of the current item in the current group
%list_total% = total number of items in the playlist
%list_index% = the position of the current item in the playlist
Title: foo_uie_single_column_playlist
Post by: Apesbrain on 2006-12-31 17:12:13
Using the stock Item Display configuration:

$padding(4,0)
$align(right,top)%title%
$align(left,top)$textcolor(80-80-80)%list_index%

How do I make any titles longer than 30 characters display an elipsis after the first 30 characters?

Thanks if you respond.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-01 08:35:39
Change the second line to:
$align(right,top)$left(%title%,30)$ifgreater($len(%title%),30,...,)

NOTE: You asked for characters, not pixels. Unless you use a monospace font you will get different actual string lengths depending on what characters they consist of.
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2007-01-01 16:21:15
It would be great if you could access tags like %isplaying% in the group display,e.g. to color the now plying album differently.
Furthermore statistic tags would be nice, like average playcount, rating, length or the sum of those. Maybe similar to the realization in foo_playlisttree
Title: foo_uie_single_column_playlist
Post by: drake on 2007-01-02 08:27:29
will have to DL this....
Title: foo_uie_single_column_playlist
Post by: PredUK on 2007-01-02 22:28:11
Okay, I've caved. I've decided to start using SCPL. I've got my layout done, but I'm stumped on the code. What I want to do is drawn out in a screenshot done in Paint (of all programs!). I will install another program soon.

I apologise for saving the image as a .gif in paint, I didn't know it was going to do that. Eurgh.
[a href="http://img201.imageshack.us/my.php?image=foobarscplpf3.gif" target="_blank"]

EDIT2:
I'm completely done...unless tomorrow I find something wrong.
Title: foo_uie_single_column_playlist
Post by: asator on 2007-01-05 21:21:01
is there a tag to show the lenght in time of each group?
Title: foo_uie_single_column_playlist
Post by: jeriko on 2007-01-06 02:37:36
Hello.

I have a simple question fo this great plugin.
I've this command to show an image for my music within the playlist

$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)

but if the image does not exist, it (who wonders) displays nothing

so how can i point the plugin to a different location that it shows another image, if the first one does not exist?
Title: foo_uie_single_column_playlist
Post by: kalmark on 2007-01-06 11:05:08
Hello.

I have a simple question fo this great plugin.
I've this command to show an image for my music within the playlist

$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)

but if the image does not exist, it (who wonders) displays nothing

so how can i point the plugin to a different location that it shows another image, if the first one does not exist?

$if($fileexists($replace(%path%,%filename_ext%,\covers & tracklist\front.jpg)),
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),),
$imageabs2(46,46,0,0,46,46,291,1,'images/noalbum.png',))

I hope I got all the brackets and $s right - missing something like that always makes debugging fun

(note: $fileexists is specific to this component (and trackinfo_mod), AFAIK)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-06 11:09:57
jerika: There are two approaches you can use to create a "no cover" image.

1) Layering: You can have SCPL display the no-cover image, then overlay your cover art on top of that image so that it will only appear for albums with no cover. Using your example your code would go something like this:
Code: [Select]
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),)
2) $fileexists(): You can test to see if the coverart file exists. Then, if it exists display it otherwise display a the no cover image. Again using your example your code would go something like this:
Code: [Select]
$if($fleexists($replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),
$imageabs2(46,46,0,0,46,46,291,1,$replace(%path%,%filename_ext%,\covers & tracklist\front.jpg),),
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
)

Both of these examples assume your "no cover" images is a file called nocover.png in your foobar images directory. The $fileexists() approach appears to use less memory because it reduces the number of images loaded however if you want to start checking for many different kinds of images then the code gets rather complicated. The layering approach offers more flexibility when using many different types of images however it consumes more memory because it renders all the images even the "hidden" layers. 

I personally use a combination of the two to construct covers inside pictures of cd cases, filling in empty gaps, and with a picture of a cd instead of the cover when the cover doesnt exist:
Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(107,95,,$mul(%_height%,$sub(%_itemindex%,1)),,%_height%,2,,images\case.png,)
$if($fileexists($replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*)),
$drawrect(17,$sub(5,$mul(%_height%,$sub(%_itemindex%,1))),85,85,brushcolor-255-255-255 pencolor-null)
$imageabs2(85,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,17,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),)
,
$imageabs2(107,95,,$mul(%_height%,$sub(%_itemindex%,1)),,%_height%,2,,images\cd.png,)
)
,),)

Feature Request: I would like to request that this component support the / in front of image paths the way trackinfomod does so that images load properly when foobar is loaded from an alternate location. I downloaded the latest version of SCPL and tried it but my images do not load with the / in front. i.e.:
$imageabs2(46,46,0,0,46,46,291,1,/images\nocover.png,)
vs.
$imageabs2(46,46,0,0,46,46,291,1,images\nocover.png,)
Title: foo_uie_single_column_playlist
Post by: jeriko on 2007-01-06 14:19:41
@Yotsuya and Kalmark

Many thanks to your fast support, I'm impressed how friendly and courteously you give me assistance, instead of shouting read the fuckin manual

and btw...it works

best regards!
Title: foo_uie_single_column_playlist
Post by: 4nt1 on 2007-01-08 17:12:49
please can single columns be updated so it has the same features as track info mod... please...
Title: foo_uie_single_column_playlist
Post by: BelleAndZEK on 2007-01-08 20:16:19
Whenever I open a Mp3 from the command line and foobar2k is not already open, images in single column playlist wont show. fonts, alignments... everything else is fine. anyone knows what's causing this, or better, how to fix this?

It only happens when foobar is NOT running and i'm opening mp3s from the command line.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-08 22:36:51
BelleAndZEK: This has been discussed before. When you load an mp3 while foobar is not running, foobar is launched with the active directory being that of the mp3 file instead of the main foobar directory. You will find this behavior common to any windows program linked with file associations. When you launch foobar from it's shortcut, it will run with the main foobar as the active directory (or whatever directory you spcified in the shortcut properties). The result is that when SCPL evaluates code like:

$imageabs2(100,100,,,,,10,10,images\image.png,)

it attempts to load x:\path\to\your\mp3\file\images\image.png instead of x:\your\foobar\directory\images\image.png.  The quick fix is to change your code to load images explicitly from the foobar image directory like this:

$imageabs2(100,100,,,,,10,10,x:\your\foobar\directory\images\image.png,)

However trackinfomod has already implemented a nice fix for this situation and we are waiting for the changes to carry over to singlecolumnplaylist so that we can do code like this:

$imageabs2(100,100,,,,,10,10,/images\image.png,)

Where the initial forward slash is automatically resolved to the foobar directory.
Title: foo_uie_single_column_playlist
Post by: inatightspot on 2007-01-09 00:10:48
Hi:
I want the group display to stay visible when I use the scroll bar.

group by is:
%album%

item display is:

$ifequal($mod(%_itemindex%,2),0,
$drawrect(0,0,0,0,pencolor-0-0-0 alpha-30),)

$if(%_selected%,$drawrect(0,0,0,0,brushcolor-SYSCOL-13 pencolor-null))
$if(%_focused%,$drawrect(0,0,0,0,brushcolor-null pencolor-SYSCOL-6))
$if(%_selected%,$textcolor(SYSCOL-9),$textcolor(SYSCOL-8))

$padding(4,0)
$align(right,top)%title%
$align(left,top)%artist%

group display is:

$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-0-0-0 ALPHA-100)
$drawrect(0,0,0,%_height%,brushcolor-null pencolor-0-0-0)

$font(,,bold,255-255-255)
$alignabs(2,0,$sub(%_width%,2),$div(%_height%,4),left,top)%album%
$alignabs(0,0,$sub(%_width%,2),$div(%_height%,4),right,bottom)%genre%
$alignabs(2,17,$sub(%_width%2),$div(%_height%,5),left,top)%artist%
$alignabs(0,0,$sub(%_width%,2),$div(%_height%,4),right,top)%date%

//artwork

$if($not(%totaltracks%=1),$imageabs2(120,120,0,0,120,120,210,1,$replace(%path%,%filename_ext%,\cover.jpg),))

The group display and artwork attached should not scroll out of view in the playlist.

thanks
Title: foo_uie_single_column_playlist
Post by: BelleAndZEK on 2007-01-09 04:12:58
BelleAndZEK: This has been discussed before. When you load an mp3 while foobar is not running, foobar is launched with the active directory being that of the mp3 file instead of the main foobar directory. You will find this behavior common to any windows program linked with file associations. When you launch foobar from it's shortcut, it will run with the main foobar as the active directory (or whatever directory you spcified in the shortcut properties). The result is that when SCPL evaluates code like:

$imageabs2(100,100,,,,,10,10,images\image.png,)

it attempts to load x:\path\to\your\mp3\file\images\image.png instead of x:\your\foobar\directory\images\image.png. The quick fix is to change your code to load images explicitly from the foobar image directory like this:

$imageabs2(100,100,,,,,10,10,x:\your\foobar\directory\images\image.png,)

However trackinfomod has already implemented a nice fix for this situation and we are waiting for the changes to carry over to singlecolumnplaylist so that we can do code like this:

$imageabs2(100,100,,,,,10,10,/images\image.png,)

Where the initial forward slash is automatically resolved to the foobar directory.




ohh yeah, it totally makes sense. thanks!
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2007-01-09 15:41:32
I'm using using resized album arts in my playlist and with about 400 albums in the playlist scrolling is very slow... maybe 1-2 redraws every second.
Has anybody tested which function is how time comsuming? e.g. imageabs vs. imageabs2 etc...

Below my config, maybe someone can tell me why it isn't the fastest.

Code: [Select]
//ITEM DISPLAY
//Cover+Frame
$drawrect($sub(%_width%,170),-1,20,19,brushColor-200-200-200)
$drawrect($sub(%_width%,151),-1,201,19,brushColor-240-240-240)
$puts(sizec,$min(192,$add($mul(%_itemcount%,17),37)))
$if($or($greater(%_itemindex%,9),$greater(%disc%,1)),,
$ifequal(%_itemindex%,$min(9,%_itemcount%),$drawrect(0,-1,$add(14,$get(sizec)),14,brushColor-200-200-200),$drawrect(0,-1,$add(14,$get(sizec)),19,brushColor-200-200-200))
$imageabs2($get(sizec),$get(sizec),0,$add(30,$mul(%_itemindex%,17)),,,7,0,$replace(%path%,%filename_ext%,folder.jpg),NOKEEPASPECT)
)

// Selection frame + Now Playing Frame
$if(%_selected%,$drawrect(210,1,$sub(%_width%,385),16,brushcolor-233-243-247 pencolor-203-233-246),)
$if(%isplaying%,$drawrect(245,10,$sub(%_width%,460),7,)$drawrect(245,10,$add(1,$div($mul($sub(%_width%,460),%_time_elapsed_seconds%),%length_seconds%)),7,brushcolor-25-150-25))

// Tracknumber
$alignabs(215,1,300,120,,)
$ifequal($left(%tracknumber%,1),0,$font(calibri,10,,200-200-200)0$font(,,,0-0-0)$right(%tracknumber%,1),$font(calibri,10,,0-0-0)%tracknumber%)

//Tracktitel
$alignabs(245,1,$sub(%_width%,450),20,,)
$if(%cwb_queueindex%,$font(,,bold glow-200-100-100,)'['%cwb_queueindex%']' ,)
$if(%isplaying%,$font(,,glow-100-200-100,0-90-0),$font(,,,0-0-0))
$replace($caps2(%title%),'(',$font(,,,114-116-120)'(',')',')'$if(%isplaying%,$font(,,glow-100-200-100,0-90-0),$font(,,,0-0-0)))

// RPGain+Length
$alignabs($sub(%_width%,145),1,120,20,,)
$if(%__replaygain_track_gain%,$font(Wingdings,10,bold,50-150-50)ü,$font(Wingdings,10,bold,150-50-50)û)
$alignabs($sub(%_width%,230),1,55,20,right,)$font(calibri,10,,0-0-0)
%length%

//Play Counter
$if(%play_counter%,,$puts(play_counter,0))
$alignabs($sub(%_width%,130),1,116,20,left,)
$ifgreater(%play_counter%,14,$font(Wingdings,10,bold glow-80-80-255,255-100-100)«,
$ifgreater(%play_counter%,9,$font(Wingdings,10,bold glow-255-100-100,255-255-80)«,
$ifgreater(%play_counter%,4,$font(Wingdings,10,bold glow-240-240-60,114-116-120)«,
$font(Wingdings,10,bold glow-200-200-200,255-255-255)«)))
$font(,,,114-116-120)
$repeat(«,$mod(%play_counter%,5))
$font(,,,230-230-230)
$repeat(«,$sub(4,$mod(%play_counter%,5)))


//Bitrate
$alignabs($sub(%_width%,120),1,116,20,right,)$font(calibri,10,,0-0-0)
$if2(%__bitrate_dynamic%,%__bitrate%)' Kbps'

Code: [Select]
//GROUP DISPLAY
$ifgreater(%disc%,1,
$drawrect($sub(%_width%,170),,220,51,brushColor-200-200-200)
$drawrect($sub(%_width%,169),-1,18,53,brushColor-200-200-200 penColor-NULL)
,
$puts(sizec,$min(192,$add($mul(%_itemcount%,17),37)))
$drawrect(0,0,%_width%,51,brushColor-200-200-200 penColor-0-0-0)
$drawrect(1,50,$add(12,$get(sizec)),2,brushColor-200-200-200 penColor-NULL)
$imageabs2($get(sizec),$get(sizec),0,-4,,,7,0,$replace(%path%,%filename_ext%,Folder.*),NOKEEPASPECT)

$drawrect($sub(%_width%,169),0,18,51,brushColor-200-200-200 penColor-NULL)
$font(calibri,24,bold glow-230-230-230,200-200-200)$alignabs($sub(%_width%,80),5,100,35,,)
$if2(%date%,)
$font(calibri,18,bold glow-0-0-0,200-200-200)$alignabs(210,0,600,28,,)
$if2(%artist%,'['ARTIST']')
$font(calibri,18,bold glow-255-255-255,255-150-150)$alignabs(250,20,600,28,,)
$if2(%album%,SINGLES)
)

//Disc Image
$if(%disc%,$imageabs($sub(%_width%,140),5,images\minidisc.png,)
$font(calibri,24,bold glow-255-255-255,0-0-0)$alignabs($sub(%_width%,120),15,100,35,,)
%disc%,)

and a Screenshot:
(http://img407.imageshack.us/img407/4858/untitled1tc6.th.jpg) (http://img407.imageshack.us/my.php?image=untitled1tc6.jpg)
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-01-09 21:51:21
updated. mostly just to bring over stuff from trackinfo_mod.

I'm using using resized album arts in my playlist and with about 400 albums in the playlist scrolling is very slow... maybe 1-2 redraws every second.
Has anybody tested which function is how time comsuming? e.g. imageabs vs. imageabs2 etc...


1) Set the clipping rectangle for your images properly in imageabs2
2) Try to remove the glow, shadow, and alpha and see if it helps.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-09 22:05:19
yay! I can now use the forward slash for image paths. Thanks again terrestrial for your dedication to these components.
Title: foo_uie_single_column_playlist
Post by: adrosenth on 2007-01-11 19:48:17
Question.

Row height is 32, and group rows is 1.

I'm showing the album art to the left of the track items, resized to 107x107 pixels.

If there are only 3 tracks per group, the album art will be clipped at the bottom, obviously. 4 tracks is fine.

Is there a way to put a certain amount of white space in between each group if there are less than 4 tracks?

This would be very helpful for those albums that have 2 or 3 very long tracks, but are still considered albums.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-12 06:43:49
adrosenth: This situation has been discussed several times already please read the earlier posts before posting. Many (including myself) have requested a minimum rows/minimum group height option. Until such a feature emerges you can have the cover art removed for groups not large enough to display full image like this:

Code: [Select]
$ifgreater($mul(%_height%,%_itemcount%),100,
// Your existing cover art code
,)

* Where the 100 on the top line is the minimum height in pixels needed to display your cover art
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-12 21:20:21
I've tried searching, and can't come up with a definitive answer (although I've muddled through) - what exactly do blank or 0 values mean in an $imageabs2() function?  It's explained in the wiki for $imageabs(), but not abs2.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2007-01-12 23:21:44
Terrestrial, I'm having a problem that cropped up with the new version. Stretched images have a fade to the right or bottom, depending on which way its stretched. I know how to fix it, but I obviously don't have access to the code. Check your GDI+ graphics object and make sure that your quality and interpolation settings are correct.
Title: foo_uie_single_column_playlist
Post by: fenix on 2007-01-15 02:03:13
I read in the releasenotes that it was possible to use Columns UI Globals. How is this done? I've tried %globarvarname% and %_globarvarname% but I am only get a ? sign.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-15 03:38:36
I read in the releasenotes that it was possible to use Columns UI Globals. How is this done?

just like it is everywhere else. (http://yuo.be/wiki/columns_ui:config:global_variables)
Please check the wiki's (or at least search this thread) before asking questions.
Title: foo_uie_single_column_playlist
Post by: HiFiRE on 2007-01-15 05:39:41
Regarding globals...

I set a global in columns ui like so: $set_global("something",5)

but in scp I get unknown variable if doing this: $get_global("something")

What's wrong here?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-15 06:13:10
try using single quotes
Title: foo_uie_single_column_playlist
Post by: drake on 2007-01-15 06:36:29
if i have more than one SCPL open, how do i move tracks from one playlist to another?
Title: foo_uie_single_column_playlist
Post by: HiFiRE on 2007-01-15 15:07:07
try using single quotes


I still get unknown variable in this case. I've also tried no quotes but haven't had better luck. Does $get_global work for others? Could someone paste some working examples?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-15 15:57:17

try using single quotes


I still get unknown variable in this case.

WFM
Title: foo_uie_single_column_playlist
Post by: HiFiRE on 2007-01-16 07:57:44


try using single quotes


I still get unknown variable in this case.

WFM


Sorry for the trouble, I had to update my scp dll.
Title: foo_uie_single_column_playlist
Post by: vlada on 2007-01-16 15:54:42
VeaaC
Could you please help me with 2 little problems? I tried you config because I really like it. Unfortunately it looks like this:

(http://img294.imageshack.us/img294/7042/scplum9.th.png) (http://img237.imageshack.us/img237/7100/scplbm0.png)

So my 2 questions:

1) Why is the album name cropped? Probably because of using 100dpi fonts. So how do I fix it?

2) My album art images are named after following scheme: %album% - front.jpg. Sometimes it is different, in the case I'd like to display any .jpg image in the album folder.

And one more question: In the code I found a link to a file "images\minidisc.png". What is this image good for? Where can I get it?

I'm sorry for my laziness, I would be probably able to find the answers by studying the code more deeply. But I hope the questions will be really easy to answer for you.

Thanks in advance.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2007-01-16 19:56:02
Could you please make options to change the default clicking behavior in the playlist? Especially for double clicking, because this would make it possible to use jonpb's new component to have a true "Now Playing" playlist.
http://www.hydrogenaudio.org/forums/index....st&p=464523 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=51788&view=findpost&p=464523)
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-17 18:01:57
I'd like to request an %_isgroupplaying% variable.
Title: foo_uie_single_column_playlist
Post by: asciughino on 2007-01-18 01:08:12
HI,
    how I can eliminate those "square"chracters  from lyrics tag?
    thanks
    Flavio

(http://img92.imageshack.us/img92/3649/nuovo1rp6.jpg)
Title: foo_uie_single_column_playlist
Post by: kockroach on 2007-01-18 01:30:18
HI,
    how I can eliminate those "square"chracters  from lyrics tag?
    thanks
    Flavio

Try this:
Code: [Select]
$if(%unsynced lyrics%,[$replace(%unsynced lyrics%,$char(13),)]
You might need to change to the proper "lyrics" tag name.
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2007-01-18 01:51:59
I'd like to request an %_isgroupplaying% variable.
I wrote some code which will determine if a group is playing:
Code: [Select]
$if($strcmp(%playlist_name%,%cwb_playinglist%),$ifgreater($num(%cwb_playing_index%,2),$sub(%list_index%,1),$ifgreater($Add(%list_index%,%_itemcount%),$num(%cwb_playing_index%,2), 'GROUP IS PLAYING',),),)
The only problem is that this information only seems to update after you switch playlists and switch back. I'm not sure why, but I have a feeling it has something to do with foo_cwb_hooks.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-18 02:07:57
Sounds like SCPL could be made compatible with foo_cwb_hook updates (http://wiki.bowron.us/index.php/Foobar2000:Hooks#Developer_Information)

i dunno, maybe not.
Title: foo_uie_single_column_playlist
Post by: asciughino on 2007-01-18 08:47:42
Try this:
Code: [Select]
$if(%unsynced lyrics%,[$replace(%unsynced lyrics%,$char(13),)]
You might need to change to the proper "lyrics" tag name.


Thank you! It works...    I used it this way..

Code: [Select]
$alignabs(125,32,%_width%,500,center,)$replace(%lyrics%,$char(13),))
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2007-01-18 13:32:46
VeaaC
Could you please help me with 2 little problems? I tried you config because I really like it. Unfortunately it looks like this:

(http://img294.imageshack.us/img294/7042/scplum9.th.png) (http://img237.imageshack.us/img237/7100/scplbm0.png)

So my 2 questions:

1) Why is the album name cropped? Probably because of using 100dpi fonts. So how do I fix it?

2) My album art images are named after following scheme: %album% - front.jpg. Sometimes it is different, in the case I'd like to display any .jpg image in the album folder.

And one more question: In the code I found a link to a file "images\minidisc.png". What is this image good for? Where can I get it?

I'm sorry for my laziness, I would be probably able to find the answers by studying the code more deeply. But I hope the questions will be really easy to answer for you.

Thanks in advance.


Hi, I've set the row height to 17 and the the header height to 3 rows:
(http://img221.imageshack.us/img221/539/image1xe7.th.jpg) (http://img221.imageshack.us/my.php?image=image1xe7.jpg)
to display images labeled %album% - front.jpg just exchange every occurence of folder.jpg in the code with %album% - front.jpg ... very easy indeed. To display any .jpg found in the folder is another case... don't know if it is possible... but you can check if a file exists, but you have to know what alternate names the jpgs can have.
The minidisk.png is there to display albums stretching acrossmultiple discs... it is diplayed beneath the disc number...:
(http://img201.imageshack.us/img201/3435/minidiscct0.png)


I hope it helped a bit.
Title: foo_uie_single_column_playlist
Post by: beto on 2007-01-19 02:01:49
I am having a strange issue: some of my images do not display in SCPL using $imageabs2 and absolute paths.
They do however if you use album art display.

[a href="http://img266.imageshack.us/my.php?image=scplbug1zs8.png" target="_blank"]

Any help is appreciated.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-19 02:10:59
SCPL and Trackinfomod have issues with #

remove the # from the path and they will work.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-19 02:13:26
beto: I suspect the proble is that your path name for the album art contains a pound sign '#'. This is a known issue with SCPL. Avoid using the # character in path names and this should resolve your problem.
Title: foo_uie_single_column_playlist
Post by: beto on 2007-01-19 02:36:48
thanks for the reply 
Are there any other signs that should be avoided?
I have problems with the following directory too:
Code: [Select]
D:\Media\Audio\Lossy\My Rips\Midnight Oil\1997 - 20,000 Watt R.S.L
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-19 03:47:14
not that I know of.
I don't know what the deal with that one is.
Title: foo_uie_single_column_playlist
Post by: Fractal_Mortality on 2007-01-20 19:26:22
Just wondering... Is it in the works for Single Column Playlist to utilize sorting columns like in WMP?
Example

(http://img334.imageshack.us/img334/7056/clipboard011st.jpg)
Title: foo_uie_single_column_playlist
Post by: kockroach on 2007-01-20 19:33:55
Just wondering... Is it in the works for Single Column Playlist to utilize sorting columns like in WMP?

That would mean that it is no longer "Single Column".  You can always use the "Edit>Sort>" menus to do the sorting.
Title: foo_uie_single_column_playlist
Post by: Fractal_Mortality on 2007-01-20 20:04:57

Just wondering... Is it in the works for Single Column Playlist to utilize sorting columns like in WMP?

That would mean that it is no longer "Single Column".  You can always use the "Edit>Sort>" menus to do the sorting.


Is there a way to achieve that WMP playlist view with any other plugin?
Title: foo_uie_single_column_playlist
Post by: alphaex32 on 2007-01-20 21:39:36
Is there a way to achieve that WMP playlist view with any other plugin?
What you could do is make a row of buttons using a trackinfo_mod panel and put it right over the playlist. Then you could make them perform sorting to simulate column headers. Of course its still not true resizable columns, but it's better than nothing.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-21 02:04:17
alphaex32: Is there a way to hardcode the sorting strings into the button function? Can you give a code example of your concept for sorting buttons? This sounds like an interesting idea.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-21 02:53:10
check the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_Mod_%28foo_uie_trackinfo_mod%29#Sorting).
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-21 04:00:21
Thanks, I need to check the wiki more often :)
Quote
Example with SORT command:
Code: [Select]
$button2(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,
'SORT:source|!source!:genre|%genre%:artist|%artist%:album|%album%',)

Sorting

Code: [Select]
SORT:name_1|value_1:name_2|value_2:...:name_n|value_n

Enables a sorting context menu which shows name_1, name_2, etc, corresponding to sorting by value_1, value_2, etc. SORT sorts the currently selected playlist, which manifests itself in all playlist views of that active playlist.

Code: [Select]
$sorted(field)

Returns a sort index of the field, ie if the playlist is sorted first by genre, then artist, then by album, $sorted(artist) will return 3. If the playlist is not sorted by 'field' through the SORT command described above, then $sorted(field) will be evaluated as false and produce '[UNKNOWN FUNCTION]' as text output.


So I've had some fun learning about the sort command however I am having a bit of difficulty. To begin with I do not want a sorting context menu I just want the button to perform the sort. I found out that by specifying only one item/value combo, that value will auto execute. First hurdle cleared. However it appears that when using multiple buttons their sorting accumulates. So if you click a button to sort by %artist%, then click a button to sort by %album% this is the same as only clicking a button for %artist%%album% (or did I get that reversed?).

What I would like to do is have each button's sort isolated from each other. So that when I click on a button to sort by %artist% the list will sort by artist and if I then click on a button to sort by %album% the list is then resorted by album regardless of artist. (The difference in this example is slight, becomes apparent with various artist albums, but the problem is amplified with complex sort strings).  There is an option called "reset" available from the context menu which will allow the user to manually clear each tag from the sorting string however I can find no way to automate the process.

Does anyone have any ides on how to create buttons that will sort the playlist regardless of which buttons have been clicked before?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-01-21 05:54:30
you need to use more specific (and complex) sort algorithms.

Sorting by %artist% is incomplete. What happens when two songs are by the same artist? Then how does foobar decide which comes first? By default it (rather intelligently) then uses the previous sort method. Columns (and the rest of windows for that matter) does the same thing.

To avoid the problem, each sort string needs to have all tags found in all other strings.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-21 06:06:26
thanks for the reply 
Are there any other signs that should be avoided?
I have problems with the following directory too:
Code: [Select]
D:\Media\Audio\Lossy\My Rips\Midnight Oil\1997 - 20,000 Watt R.S.L

My guess would be the comma in the Album Title.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-21 06:17:26
you need to use more specific (and complex) sort algorithms.
I tried to oversimplify things during my previous example maybe that was a bad choice. I am not siimply using column headings like the previous post but instead trying to apply different sorting strings to change the view of the playlist between albums, singles, and online radio streams. This is my current code:
Code: [Select]
$drawrect(0,0,0,0,brushcolor-210-210-210 pencolor-null)

$alignabs(2,2,%_width%,%_height%,,)$font(tahoma,7,,0-0-0)Sorting$font(,,,128-128-128):$rgb()

$button2(50,1,0,0,37,13,'$rgb()$char(91)$font(tahoma,7,,128-128-128)Albums$rgb()$char(93)','$font(tahoma,7,shadow,255-255-255)Albums',
'SORT:Albums|
%album artist% - $if(%tracknumber%,%date%,0) - $if(%tracknumber%,%cdid%,) - $if(%tracknumber%,%album%, ) - %discnumber% - %tracknumber%
:dummy',)

$button2(90,1,0,0,35,13,'$rgb()$char(91)$font(tahoma,7,,128-128-128)Singles$rgb()$char(93)','$font(tahoma,7,shadow,255-255-255)Singles',
'SORT:Singles|
%artist% - %title%
:dummy',)

$button2(128,1,0,0,29,13,'$rgb()$char(91)$font(tahoma,7,,128-128-128)Radio$rgb()$char(93)','$font(tahoma,7,shadow,255-255-255)Radio',
'SORT:Radio|
$if($strstr($replace($lower(%genre%),$char(39) , ),goa),Goa,
$if($strstr($replace($lower(%genre%),$char(39) , ),trance),Trance,
$if($strstr($replace($lower(%genre%),$char(39) , ),techno),Trance,
$if($strstr($replace($lower(%genre%),$char(39) , ),anime),Anime,
$if($strstr($replace($lower(%genre%),$char(39) , ),japanimation),Anime,
$if($strstr($replace($lower(%genre%),$char(39) , ),jpop),JPop,
$if($strstr($replace($lower(%genre%),$char(39) , ),jrock),JPop,
$if($strstr($replace($lower(%genre%),$char(39) , ),japanese),JPop,
$char(255))))))))) - %codec% - $num($sub(1000,%bitrate%),3)
:dummy',)

This more or less works with the exception that I have to go and click reset between each button. This is why I have added the :dummy entry at the end to reveal the popup. Ideally I would like to find a way that the button would auto-reset the sort string after the sorting is performed so that I can eliminate the menu completely and use the different buttons to toggle different playlist views.
Title: foo_uie_single_column_playlist
Post by: wilflare on 2007-01-21 07:00:18
hi all
been searching for a solution to this but can't really figure a way out
for singles/singletracks, i use a SINGLETRACK tag to distinguish them

what can i type in the Group column
so under a playlist with both albums and singles
the singles will be all grouped together without headers
or if there's a header, it's under a common header called SINGLES

thanks!
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-21 07:05:14
wilflare: First you need to change your sorting string so that the singles appear together. add %SINGLETRACK% toward the beginning of your sort string:

File> Preferences> General> "Sort incoming files by:"
(for new playlists) -or- (for existing playlists)
Edit> Sort> Sort By...

Once your playlist is sorted you can change your group by code to something like this:
$if(%SINGLETRACK%,!noheader!,%album%%discnumber%)
Title: foo_uie_single_column_playlist
Post by: ciaran on 2007-01-21 08:50:03
Can you add standard UI behavior to SCP? Specifically, have tab cycle back and forth to SCP? As if right now, if track in SCP is selected, you cannot tab away to anything else within the :B window.

This becomes necessary for remote control operation.

Thx!
Title: foo_uie_single_column_playlist
Post by: eboomer on 2007-01-21 18:42:59
hi all
been searching for a solution to this but can't really figure a way out
for singles/singletracks, i use a SINGLETRACK tag to distinguish them

what can i type in the Group column
so under a playlist with both albums and singles
the singles will be all grouped together without headers
or if there's a header, it's under a common header called SINGLES

thanks!


Then if you want to group adjacent single tracks together, you can do something like:
$if(%singletrack%,%singletrack%,%labum%)

Then in the group display box, something like:
$if(%singletrack%,SINGLES,Code for displaying non-singletrack songs)
Title: foo_uie_single_column_playlist
Post by: eboomer on 2007-01-21 18:54:10
What I currently do for sorting is to have a ColumnsUI playlist above my Single Column Playlist that is so small that only the column titles are showing.  You could define your own columns with your own customized sorting strings and name them however you want.  This strategy allows much flexibility and you don't have to reset anything like you do with the SORT command in Trackinfo mod buttons. 

I find it's also handy to have a ColumnsUI playlist to the side of my Single Column Playlist because with all the images I use in Single Column Playlist, it scrolls kind of slowly, whereas ColumnsUI scrolls about as fast as my mouse can move ;-)
Title: foo_uie_single_column_playlist
Post by: eboomer on 2007-01-21 19:16:49
HI,
    how I can eliminate those "square"chracters  from lyrics tag?
    thanks
    Flavio

I believe those square characters are what is displayed for a character that is not defined in the particuar font you are using.  Try swithing the font to Arial Unicode.  If something other than square characters are displayed, then it's just a matter of using a font that has those characters.
Title: foo_uie_single_column_playlist
Post by: eboomer on 2007-01-21 19:33:44
adrosenth: This situation has been discussed several times already please read the earlier posts before posting. Many (including myself) have requested a minimum rows/minimum group height option. Until such a feature emerges you can have the cover art removed for groups not large enough to display full image like this: ...

You can alternatively have the image sized to either the dimesnsoins of width x width [width being the width that you choose to set aside to be available for album art] when there is enough room [when $mul(%height%,$get(numrows)) is greater than the width], or to the dimensions of height x height when the width that you allow is greater than the available height. [I hope that made sense]
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-01-22 06:03:19
I've tried searching, and can't come up with a definitive answer (although I've muddled through) - what exactly do blank or 0 values mean in an $imageabs2() function?  It's explained in the wiki for $imageabs(), but not abs2.


either 0s or full width/height.


Terrestrial, I'm having a problem that cropped up with the new version. Stretched images have a fade to the right or bottom, depending on which way its stretched. I know how to fix it, but I obviously don't have access to the code. Check your GDI+ graphics object and make sure that your quality and interpolation settings are correct.


everything is pretty much default. I can't reproduce it either... maybe post an example image/code?


So I've had some fun learning about the sort command however I am having a bit of difficulty. To begin with I do not want a sorting context menu I just want the button to perform the sort. I found out that by specifying only one item/value combo, that value will auto execute. First hurdle cleared. However it appears that when using multiple buttons their sorting accumulates. So if you click a button to sort by %artist%, then click a button to sort by %album% this is the same as only clicking a button for %artist%%album% (or did I get that reversed?).

What I would like to do is have each button's sort isolated from each other. So that when I click on a button to sort by %artist% the list will sort by artist and if I then click on a button to sort by %album% the list is then resorted by album regardless of artist. (The difference in this example is slight, becomes apparent with various artist albums, but the problem is amplified with complex sort strings).  There is an option called "reset" available from the context menu which will allow the user to manually clear each tag from the sorting string however I can find no way to automate the process.

Does anyone have any ides on how to create buttons that will sort the playlist regardless of which buttons have been clicked before?


you can click the button again and that particular sort string will be removed. alternatively append "RESET" to the sort string. there's also a button to reset the sort string, I think.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-22 06:38:50
...
you can click the button again and that particular sort string will be removed. alternatively append "RESET" to the sort string. there's also a button to reset the sort string, I think.

I think this appending of RESET is exactly what I am after, however I am having a bit of trouble making it work.

I have tried the following as the button2 command with no success:

'SORT:Singles|%artist% - %title%RESET:dummy'
'SORT:Singles|%artist% - %title% RESET:dummy'
'SORT:Singles|%artist% - %title%:dummy RESET'
'SORT:Singles|%artist% - %title%:dummy' RESET
'SORT:Singles|%artist% - %title%"RESET":dummy'
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-01-22 15:46:54
'SORT:Singles:RESET %artist% - %title%' should do it.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2007-01-22 16:03:17
Quote
everything is pretty much default. I can't reproduce it either... maybe post an example image/code?


Here's an example of what it looks like. Notice the right sides of the black group image, selection and now playing images. They all have a faded stretched look, which is not intentional.

[img=http://img213.imageshack.us/img213/7968/scpl2ik.th.jpg] (http://img213.imageshack.us/my.php?image=scpl2ik.jpg)

Here's the code I use to generate my playlist.

Row Height: 22
Group Rows: 2
Edge Style: Grey
Background: White
Group By: %album%%discnumber%

Group Headers:
Code: [Select]
$imageabs2(%_width%,%_height%,0,0,0,0,0,0,C:\Program Files\foobar2000\images\header.png,NOKEEPASPECT)
$font(Segoe UI,9,bold glow-0-0-0 glowexpand-1,255-255-255)
$alignabs(6,6,$sub(%_width%,100),%_height%,left,)%artist%
$alignabs(6,24,$sub(%_width%,100),%_height%,left,)%album%$ifgreater(%totaldiscs%,1,' (Disc' %discnumber% of %totaldiscs%')',)
$alignabs(-10,6,%_width%,%_height%,right,)%genre%
$alignabs(-10,24,%_width%,%_height%,right,)%date%


Items:
Code: [Select]
$drawrect(0,0,230,%_height%,brushcolor-111-117-143 pencolor-null)
$ifgreater(%_itemcount%,10,$puts(artsize,220),$puts(artsize,$sub($mul(%_height%,%_itemcount%),10)))
$ifequal($mod(%_itemindex%,2),0,$drawrect(230,0,$sub(%_width%,230),%_height%,brushcolor-231-233-239 pencolor-null),)
$if(%_isplaying%,
$imageabs2(27,22,0,0,0,0,230,0,C:\Program Files\foobar2000\images\nowplayingleft.png,)
$imageabs2($sub(%_width%,259),%_height%,0,0,0,0,257,0,C:\Program Files\foobar2000\images\nowplayingmiddle.png,NOKEEPASPECT)
$imageabs2(2,22,0,0,0,0,$sub(%_width%,2),0,C:\Program Files\foobar2000\images\nowplayingright.png,)
)
$if(%_selected%,
$imageabs2(27,22,0,0,0,0,230,0,C:\Program Files\foobar2000\images\selectionleft.png,)
$imageabs2($sub(%_width%,259),%_height%,0,0,0,0,257,0,C:\Program Files\foobar2000\images\selectionmiddle.png,NOKEEPASPECT)
$imageabs2(2,22,0,0,0,0,$sub(%_width%,2),0,C:\Program Files\foobar2000\images\selectionright.png,)
)
$if($fileexists($replace(%path%,%filename_ext%,folder.*)),$imageabs2($get(artsize),$get(artsize),0,$ifequal(%_itemindex%,1,0,$sub($mul(%_height%,%_itemindex%),$sub(%_height%,-5))),,%_height%,5,$ifequal(%_itemindex%,1,5,0),$replace(%path%,%filename_ext%,folder.*),),)
$font(Segoe UI,8,,0-0-0)
$alignabs(233,0,20,%_height%,right,middle)$num(%tracknumber%,1).
$alignabs(262,0,$sub(%_width%,300),%_height%,left,middle)%title%
$alignabs(-10,0,%_width%,%_height%,right,middle) [%playback_time% / ]%length%


The code used is nothing special. The images that are being stretched are small, less than 30 pixels in width.

You should be able to reproduce it. I'm surprised no one else has this problem as well.

Here's a bit of VB.Net sample code I use for the proper tiling of an image.

Code: [Select]
        Dim G As Graphics = Graphics.FromHwnd(Me.Handle)
        Dim Img As Image = Image.FromFile("C:\Program Files\foobar2000\images\selectionmiddle.png")
        Dim IA As New System.Drawing.Imaging.ImageAttributes
        IA.SetWrapMode(Drawing2D.WrapMode.Tile)

        Dim dstRect As New Rectangle(0, 20, Me.Width, Img.Height)
        G.DrawImage(Img, dstRect, 0, 0, Img.Width, Img.Height, GraphicsUnit.Pixel, IA)

        Img.Dispose()
        G.Dispose()


So maybe you can add a TILE option to the $imageabs2() function?
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-01-22 16:08:50
can you post the image that you're stretching
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2007-01-22 16:20:05
can you post the image that you're stretching


Sure. Here's the three that I stretch.

(http://www.nightiguana.com/images/foobar/header.png)
(http://www.nightiguana.com/images/foobar/selectionmiddle.png)
(http://www.nightiguana.com/images/foobar/nowplayingmiddle.png)
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2007-01-22 18:28:37
I think I've found a bug with adding to the playback queue.

If I enqueue a track in ColumnsUI or the defaultUI it will switch playback to the playlist where I enqueued the file.

However if I do the same thing in SCP it goes back to where it was before. Also while playing the enqueued item %_isplaying% returns 0 and %cwb_queue_end_playlist% returns an empty string.

It's kind of annoying as I use add to playback queue to gaplessly change playlists.


Any chance of getting this fixed? It's just a bit of a blocker for me.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-23 06:08:14
'SORT:Singles:RESET %artist% - %title%' should do it.


I am sorry but I am still having problems implementing this reset command. I tried the code you posted but all it did was create a second menu item called "RESET %artist% - %title%". I tried replacing the second colon with a pipe because this appeared to be more in line with the syntax of the wiki:
"SORT:Singles|RESET %artist% - %title%'
However this still is not executing the reset. This is my current button code I am using for testing:
Code: [Select]
$button2(90,1,0,0,35,13,'$rgb()$char(91)$font(tahoma,7,,128-128-128)Singles$rgb()$char(93)',
'$font(tahoma,7,shadow,255-255-255)Singles',
'SORT:Singles|RESET %artist% - %title%:Dummy',)

After the button is clicked and "Singles" is selected, the menu no longer displays "Singles" unless you choose "Reset".
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-01-23 06:40:29

I think I've found a bug with adding to the playback queue.

If I enqueue a track in ColumnsUI or the defaultUI it will switch playback to the playlist where I enqueued the file.

However if I do the same thing in SCP it goes back to where it was before. Also while playing the enqueued item %_isplaying% returns 0 and %cwb_queue_end_playlist% returns an empty string.

It's kind of annoying as I use add to playback queue to gaplessly change playlists.


Any chance of getting this fixed? It's just a bit of a blocker for me.


seems to work fine for me...


'SORT:Singles:RESET %artist% - %title%' should do it.


I am sorry but I am still having problems implementing this reset command. I tried the code you posted but all it did was create a second menu item called "RESET %artist% - %title%". I tried replacing the second colon with a pipe because this appeared to be more in line with the syntax of the wiki:
"SORT:Singles|RESET %artist% - %title%'
However this still is not executing the reset. This is my current button code I am using for testing:


yep, that's a typo on my part. here's some code that should work:

Code: [Select]
$if($sorted(Title),$drawrect(0,0,40,12,pencolor-0-0-0 brushcolor-null))
$button2(0,0,0,0,40,12,
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,0-0-0)Title',
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,255-0-0)Title',
    'SORT:Title|%title%',)

$if($sorted(Artist),$drawrect(50,0,40,12,pencolor-0-0-0 brushcolor-null))
$button2(50,0,0,0,40,12,
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,0-0-0)Artist',
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,255-0-0)Artist',
    'SORT:Artist|RESET %artist%',)

$alignabs(0,14,100,14,center,middle)$font(tahoma,7,bold,0-0-0)%sortstring%


Quote
After the button is clicked and "Singles" is selected, the menu no longer displays "Singles" unless you choose "Reset".


that's by design (since "Singles" is already added to the sort string).
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-23 07:08:20
Thank you for your help this appears to be working now. I do have a few more questions though. Am I right in assuming that by placing the RESET at the beginning, the sorting string isn't reset until the beginning of the next sort? I tried to expand upon the idea by using $sorted(Title) in the SCPL group by code but have once again come upon a stumbling block. I tried to expand on your previous example like this:

Code: [Select]
$if($sorted(Title),$drawrect(0,0,40,12,pencolor-0-0-0 brushcolor-null))
$button2(0,0,0,0,40,12,
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,0-0-0)Title',
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,255-0-0)Title',
    'SORT:Title|%title%',)

$if($sorted(Artist),$drawrect(50,0,40,12,pencolor-0-0-0 brushcolor-null))
$button2(50,0,0,0,40,12,
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,0-0-0)Artist',
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,255-0-0)Artist',
    'SORT:Artist|RESET %artist%',)

//$if($and($sorted(Artist),$sorted(Title)),$drawrect(100,0,40,12,pencolor-0-0-0 brushcolor-null))
$if($sorted(Both),$drawrect(100,0,40,12,pencolor-0-0-0 brushcolor-null))
$button2(100,0,0,0,40,12,
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,0-0-0)Both',
    '$alignabs(0,0,40,12,center,middle)$font(tahoma,7,bold,255-0-0)Both',
//    'SORT:Artist|RESET %artist% - %title%',)
    'SORT:Both|RESET %artist% - %title%',)

$alignabs(0,14,100,14,center,middle)$font(tahoma,7,bold,0-0-0)%sortstring%
But this is giving me odd behavior. The "Title" and "Artist" buttons behave as expected however the "Both" button has somewhat unpredictable behavior. Although I would have thought that with the RESET at the beginning of the string, clicking on either of the first two for a second time wouldnt clear the sorting. Also, does %sortstring% only return the first field of the current sort string?
Sorry, it appears $sorted() and %sortstring% refer to the name before the pipe, not the fields included in the sort string. I renamed the last command and realized this. I actually prefer this :)

Is %sortstring% and $sorted() available outside of the panel in which the buttons appear that set them? I keep getting ? or [UNKNOWN FUNCTION] when trying to use these in a different panel than the one the buttons are in.
Title: foo_uie_single_column_playlist
Post by: wilflare on 2007-01-23 15:51:01
thanks Yotsuya for the sorting code
just one last thing
i don't need my singletracks to display track number
so is there anyway, for it to display the artist name in the column instead.

using bbmartini's config.

here's the item display for the single column playlist
$ifequal($mod(%tracknumber%,2),0,
$imageabs(,,\images\LE5\reluna1.png,),   
$imageabs(,,\images\LE5\reluna2.png,))

$if(%_selected%,$imageabs(,,\images\LE5\relunagreen.png,),)

$if(%isplaying%,$imageabs(,,\images\LE5\relunablue.png,),)
$if(%isplaying%,$font(Calibri,8,bold,0-0-200),$font(Calibri,8,,0-0-0))

$alignabs(277,2,%_width%,20,left,)
$if(%isplaying%,%_time_remaining%,%length%)

$padding(7,)
$align(left,middle)
[%tracknumber%]

$alignabs(28,2,%_width%,20,left,)
[%title%]

$ifgreater($mul(%_height%,%_itemcount%),88,
$imageabs2(100,90,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,175,,images\ART_cd.png,)
$imageabs2(80,79,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,190,,$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(100,90,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,175,,images\case.png,)
,)

sorry for the trouble but really appreciate the help!
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2007-01-23 16:28:28


I think I've found a bug with adding to the playback queue.

If I enqueue a track in ColumnsUI or the defaultUI it will switch playback to the playlist where I enqueued the file.

However if I do the same thing in SCP it goes back to where it was before. Also while playing the enqueued item %_isplaying% returns 0 and %cwb_queue_end_playlist% returns an empty string.

It's kind of annoying as I use add to playback queue to gaplessly change playlists.


Any chance of getting this fixed? It's just a bit of a blocker for me.


seems to work fine for me...


Any ideas why it doesn't work like this for me?

I've got the latest SCPL (0.4.5 beta), ColumnsUI (0.1.3 beta 1v7) and Foobar.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-23 17:38:13
i don't need my singletracks to display track number
so is there anyway, for it to display the artist name in the column instead.

I do not use bbmartini's config but this looks like the chunk of code that controls the tracknumber and title columns:
Code: [Select]
$padding(7,)
$align(left,middle)
[%tracknumber%]

$alignabs(28,2,%_width%,20,left,)
[%title%]

This would be my suggestion on how to adapt this code for use with your SINGLETRACK tag, replacing the track number with artist name for those singles:
Code: [Select]
$padding(7,)
$align(left,middle)
$if(%SINGLETRACK%,
[%album artist% - ]%title%
,
[%tracknumber%]
$alignabs(28,2,%_width%,20,left,)
[%title%]
)
Title: foo_uie_single_column_playlist
Post by: mil3s on 2007-01-24 23:34:28
How do I put a $drawrect on the line above selected?
Title: foo_uie_single_column_playlist
Post by: Paxo on 2007-01-25 01:32:37
Hey, I have pretty much no experience coding and would like some help.  What I want to do is have the song title aligned to the left when the genre is Classical, and to the right for everything else.  Is it possible?  Thanks in advance.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-25 02:38:46
How do I put a $drawrect on the line above selected?

As far as I know there is no way to code one line based on another, however you may be interested in something like this:
$if(%_selected%,$drawrect(0,0,0,1,brushcolor-0-0-0),)


Hey, I have pretty much no experience coding and would like some help.  What I want to do is have the song title aligned to the left when the genre is Classical, and to the right for everything else.  Is it possible?  Thanks in advance.

$alignabs(0,0,%_width%,%_height%,$if($strcmp($lower(%genre%),classical),left,right),)%title%

EDIT: too many languages swimming in my head
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-25 04:08:55
$alignabs(0,0,%_width%,%_height%,$if($strcmp($tolower(%genre%),classical),left,right),)%title%

Little change to that.
Code: [Select]
$alignabs(0,0,%_width%,%_height%,$if($strcmp($lower(%genre%),classical),left,right),)%title%
Title: foo_uie_single_column_playlist
Post by: Crusoli on 2007-01-25 13:23:43
Got a question: Would it be possible to add an option to the "Settings" menu to change the doubleclick action of the playlist view?

I know you can reach all these actions via the context menu but I'm thinking of special views like a "ripping-window" or a special media library window where you dont want the playlist to become active and the song to start playing just because you double click it by accident because your used to it.

Is this even possible techincally (or would it require changes in other components?) and if its possible possible is there a chance of getting this integrated?

Thanks in advance.
Title: foo_uie_single_column_playlist
Post by: mil3s on 2007-01-25 17:15:59
I've just started using this plugin. It's great. Except for a few small things.

Feature Requests:
*Please add Crop and Sort to the rightclick menu, as in Columns Playlist.
*Please make selecting have the same behavior as in Columns Playlist. There is currently no way to rearrange the tracks in the list.
* Ability to remove the Playlist entry in the rightclick menu.
Title: foo_uie_single_column_playlist
Post by: Meddler on 2007-01-25 18:47:30
Is there a way to achieve that WMP playlist view with any other plugin?


Not quite what your after, but I've managed to get this:

(http://www.connceptual.com/MDLfoobarJan.jpg)

(please ignore the bottom bar - not done yet)

and here's the code:

Code: [Select]
Row Height: 18
Group Rows: 1
Edge Style: None
Group By: %album%


Item Display:
Code: [Select]
$drawrect(,,,,brushcolor-228-232-248 pencolor-null)

$imageabs2(105,105,0,$add(-18,$mul(%_itemindex%,18)),,,5,0,images\shadcover.png,)

$if($fileexists($replace(%path%,%filename_ext%,folder.jpg)),
$imageabs2(96,96,0,$add(-19,$mul(%_itemindex%,18)),,,6,0,$replace(%path%,%filename_ext%,folder.jpg),)
,
$imageabs2(96,96,0,$add(-19,$mul(%_itemindex%,18)),,,6,0,images\noart.jpg,)
)

$if(%_selected%,$drawrect(345,,$sub(%_width%,345),,brushcolor-244-248-255 pencolor-000-64-128),)
$if(%isplaying%,$drawrect(345,,$sub(%_width%,345),,brushcolor-212-216-224 pencolor-000-64-128)$drawrect(346,1,$add(1,$div($mul($sub(%_width%,346),%_time_elapsed_seconds%),%length_seconds%)),16,brushcolor-128-192-255 pencolor-null),)

$ifequal(%_itemindex%,1,$alignabs(115,0,230,%_height%,left,middle)$font(Segoe UI,9,bold,004-008-016)%album%,)
$ifequal(%_itemindex%,2,$alignabs(115,0,230,%_height%,left,middle)$font(Segoe UI,9,,004-008-016)%album artist%,)
$ifequal(%_itemindex%,3,$alignabs(115,0,230,%_height%,left,middle)$font(Segoe UI,9,,004-008-016)%genre%,)
$ifequal(%_itemindex%,4,$alignabs(115,0,230,%_height%,left,middle)$font(Segoe UI,9,,004-008-016)%date%,)
$ifequal(%_itemindex%,5,$alignabs(114,0,230,%_height%,left,bottom)$font(Segoe UI,7,,064-128-192)[%__codec% ][%__tool% ][%__codec_profile% / ][%bitrate%Kbps / ][RG: %__replaygain_album_gain%],)
$ifequal(%_itemindex%,6,$alignabs(114,0,230,%_height%,left,top)$font(Segoe UI,7,,064-128-192)Source: $meta(SOURCE),)

$if($strcmp(%album artist%,%artist%),
$alignabs(349,0,$sub(%_width%,349),16,left,middle)$font(Segoe UI,9,,004-008-016)[%track%.  ]%title%,
$alignabs(349,0,$sub(%_width%,349),16,left,middle)$font(Segoe UI,9,,004-008-016)[%track%.  ]%title%  - %artist%)

$if(%isplaying%,
$alignabs(349,0,$sub(%_width%,353),16,right,top)$font(Segoe UI,9,,004-008-016)'('%playback_time_remaining%')' %length%,
$alignabs(349,0,$sub(%_width%,353),16,right,top)$font(Segoe UI,9,,004-008-016)%length%))



Group Display:
Code: [Select]
$drawrect(,,,,brushcolor-228-232-248 pencolor-null)
Title: foo_uie_single_column_playlist
Post by: Fractal_Mortality on 2007-01-25 20:03:38
Is there a way to add sorting to the context menu while using single column playlist???
Title: foo_uie_single_column_playlist
Post by: panfist on 2007-01-26 00:28:54
Hey, I was wondering, for the context menu when clickin on a track in SCPL, there's an item called "playlist" which has "active" and "playing" in it, but I'm not sure what the check marks mean. Do they indicate which playlist is active and/or playing? Because you can click on them and change the appearance of the checkmark, which did not sync up with the same icons in the playlists dropdown component. If we don't use this context menu item, can we delete it?
Title: foo_uie_single_column_playlist
Post by: saberrider on 2007-01-26 15:16:54
i have another request: would it be possible to implement a variable that indicates if a group is the first of a specific artist in the playlist? I've got an artist picture in my group header and if there are several groups of the same artist in the playlist it shows the picture in every group header. because my playlist is sorted by artist first, I want the picture to appear only on the first album of the artist and not on the following albums. So basically I'd need a groupindex for groups of the same artist.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-26 16:18:21
i have another request: would it be possible to implement a variable that indicates if a group is the first of a specific artist in the playlist? I've got an artist picture in my group header and if there are several groups of the same artist in the playlist it shows the picture in every group header. because my playlist is sorted by artist first, I want the picture to appear only on the first album of the artist and not on the following albums. So basically I'd need a groupindex for groups of the same artist.

As a workaround you could add a custom tag to the first album (alphabetically) of your artist and use that tag to display (or not) your artist picture.
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2007-01-26 18:31:58
Would it be possible to have the plugin pre-cache all albumart in the playlist? I'd rather wait some seconds when creating a big playlist than have a lag when scrolling through the playlist.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2007-01-26 20:11:11
Would it be possible to have the plugin pre-cache all albumart in the playlist? I'd rather wait some seconds when creating a big playlist than have a lag when scrolling through the playlist.


From a programmer's point of view, on-request loading of the album art would give better performance than waiting for the whole thing to load. Using a Virtual ListView, you can get a lot of performance out of it using the on-request method. Without it, you could be waiting 30 seconds or more on a large playlist.
Title: foo_uie_single_column_playlist
Post by: VeaaC on 2007-01-27 01:55:18

Would it be possible to have the plugin pre-cache all albumart in the playlist? I'd rather wait some seconds when creating a big playlist than have a lag when scrolling through the playlist.


From a programmer's point of view, on-request loading of the album art would give better performance than waiting for the whole thing to load. Using a Virtual ListView, you can get a lot of performance out of it using the on-request method. Without it, you could be waiting 30 seconds or more on a large playlist.


Hmm, maybe saving cache between sessions.... with a big playlist and albumarts with ~2000*2000 pixels scrolling in very large playlists is not the so fast... resizing images takes some time.
Tried several solutions, but displaying album art in playlists is a big slowdown and I don't want to have foobar open all day just to have all images cached.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-27 06:13:57
If performance is that big of an issue for you, then maybe you should consider rethinking your playlist layout.  Nothing is going to make huge playlist with tons of albumart move all that fast.  Perhaps write a trackinfo_mod panel to display your album art, or use the albumart panel.  That would allow you playlist to scroll as fast as you desire, yet still display art for the song that's playing or selected.
Title: foo_uie_single_column_playlist
Post by: jimbo11883 on 2007-01-27 06:28:11


Would it be possible to have the plugin pre-cache all albumart in the playlist? I'd rather wait some seconds when creating a big playlist than have a lag when scrolling through the playlist.


From a programmer's point of view, on-request loading of the album art would give better performance than waiting for the whole thing to load. Using a Virtual ListView, you can get a lot of performance out of it using the on-request method. Without it, you could be waiting 30 seconds or more on a large playlist.


Hmm, maybe saving cache between sessions.... with a big playlist and albumarts with ~2000*2000 pixels scrolling in very large playlists is not the so fast... resizing images takes some time.
Tried several solutions, but displaying album art in playlists is a big slowdown and I don't want to have foobar open all day just to have all images cached.


Obviously using images any larger than 500x500 will be too large, and cause performance issues. Stick to something smaller. I can't even fit 2000x2000 on my screen at a time (with a 1280x1024 display resolution)
Title: foo_uie_single_column_playlist
Post by: thelightguy on 2007-01-27 08:08:34
*Please make selecting have the same behavior as in Columns Playlist. There is currently no way to rearrange the tracks in the list.


Hold down [alt] while dragging the tracks.  It works!
Title: foo_uie_single_column_playlist
Post by: henn1ng on 2007-01-28 16:06:30
hello fellow SCPL users! 

im here to ask you for a little favour. i have somehow lost touch with how this plugin works nowadays and hope you can help me a little.

here is the code im using at the moment:

ITEM:
Code: [Select]
$if(%_selected%,$drawrect(94,2,0,16,brushcolor-220-220-220 pencolor-null),)

$imageabs(13,$if($strcmp(%tracknumber%,01),2,$add(23,$mul(-21,%tracknumber%))),vista1\backcover.png,)
$if($strcmp(%tracknumber%,02),$font(calibri,8,boldshadow glowalpha-50-50-50,90-90-90)$alignabs(6,4,80,20,center,)No cover,)
$imageabs2(60,60,,,60,60,15,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,)folder.jpg,)

$alignabs(102,3,$sub(%_width%,150),12,,)
$font(calibri,8,shadow glowalpha-50,70-70-70)↘%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%



$if(%isplaying%,
$drawrect(94,0,0,0,brushcolor-244-244-244 pencolor-null)
$drawrect(94,2,0,16,brushcolor-40-120-180 pencolor-null)
//$imageabs(96,0,vista1\20.png,)
$font(calibri,8,glow-130-160-240 glowalpha-120,250-250-250)
$alignabs(102,3,$sub(%_width%,150),12,,)>>%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%
$alignabs($sub(%_width%,157),7,120,20,right,)
$font(wingdings,6,bold glow-130-160-240 glowalpha-110,180-220-250)$repeat(ï‚«,%rating%)

)


GROUP:
Code: [Select]
//$drawrect(0,0,0,18,brushcolor-170-170-170 pencolor-null)
//$imageabs(0,2,vista1\art2.png,)
$alignabs(20,3,300,20,,)
$font(calibri,9,boldshadow  glowalpha-100,20-100-160)%artist%


its basically a slightly modded version of cepiperez NEO4.
so what im asking is whether it is possible to add a funtion to put all items with a groupsize<4 in a new group called "various" or something and if it is possible please tell me how to

any help will be appreciated!

thanks in advance,

henn1ng
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-28 20:23:14
First you'll have to sort your playlist so albums with less than 4 tracks are grouped together.  Sort string something like -
Code: [Select]
$ifgreater(%totaltracks%,4,
<insert current sort code>
,
() - %artist%
) - %disc% - $tracknumber() - %title%

The '()' will get anything with less than 4 tracks sorted at the top of the list then sorted by artist.

Next in your 'Group By' setting in SCPL you have to group everything with less than 4 tracks together while still grouping normal albums.
Code: [Select]
$ifgreater(%totaltracks%,4,
<insert normal grouping, ie %album%>
,
%_itemcount%
)

%_itemcount% seems to work to get one header at the top of the list.

Then in your group header code you have to display something unique for this first group.
Code: [Select]
$ifgreater(%totaltracks%,4,
<insert normal group code>
,
<insert your 'Various' code>
)

I think that should do it.
Title: foo_uie_single_column_playlist
Post by: henn1ng on 2007-01-28 22:05:19
hmmmmm first of all, thanks for replying!

but i think that this is either not the final solution yet or im doing something terribly wrong
this is what i made after your post:

GROUP BY:

Code: [Select]
$ifgreater(%totaltracks%,4,
%ARTIST%
,
%_itemcount%
)


ITEM DISPLAY:

Code: [Select]
$ifgreater(%totaltracks%,4,
$if(%_selected%,$drawrect(94,2,0,16,brushcolor-220-220-220 pencolor-null),)

$imageabs(13,$if($strcmp(%tracknumber%,01),2,$add(23,$mul(-21,%tracknumber%))),vista1\backcover.png,)
$if($strcmp(%tracknumber%,02),$font(calibri,8,boldshadow glowalpha-50-50-50,90-90-90)$alignabs(6,4,80,20,center,)No cover,)
$imageabs2(60,60,,,60,60,15,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,)folder.jpg,)

$alignabs(102,3,$sub(%_width%,150),12,,)
$font(calibri,8,shadow glowalpha-50,70-70-70)↘%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%



$if(%isplaying%,
$drawrect(94,0,0,0,brushcolor-244-244-244 pencolor-null)
$drawrect(94,2,0,16,brushcolor-40-120-180 pencolor-null)
//$imageabs(96,0,vista1\20.png,)
$font(calibri,8,glow-130-160-240 glowalpha-120,250-250-250)
$alignabs(102,3,$sub(%_width%,150),12,,)>>%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%
$alignabs($sub(%_width%,157),7,120,20,right,)
$font(wingdings,6,bold glow-130-160-240 glowalpha-110,180-220-250)$repeat(ï‚«,%rating%)

)
,
) - %artist%
) - %disc% - $tracknumber() - %title%


GROUP DISPLAY:

Code: [Select]
$ifgreater(%totaltracks%,4,
//$drawrect(0,0,0,18,brushcolor-170-170-170 pencolor-null)
//$imageabs(0,2,vista1\art2.png,)
$alignabs(20,3,300,20,,)
$font(calibri,9,boldshadow  glowalpha-100,20-100-160)%artist%
,
Various
)



and it just looks terrible
im sure i made some mistakes tho.
anyway id be glad if you could look into this once more and help me fix it  it would practically make my foobar perfect

thx again

henn1ng


ps. im sorry for making these long posts but i forgot the tag for "scrollable" code.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-29 04:21:11
You got some code in the wrong places.  First, your GROUP BY code should be
Code: [Select]
$ifgreater(%totaltracks%,4,
%album%
,
%_itemcount%
)
This way a new header is created for each new album.  If you use %artist% then there is only a new header each time an artist changes (depends on sorting).

Now, probably the most important part, is the sorting.  You can either map sorting into a trackinfo mod button, or you have to use a ColumnsUI column custom sort spec.  For me, I have two layouts that I use.  SCPL is for everyday use.  I have a ColumnsUI layout that I use for resorting my playlists.  In the custom sort spec of any ColumnsUI column, you need
Code: [Select]
$ifgreater(%totaltracks%,4,
%album artist% - %album%
,
() - %artist%
) - %disc% - $tracknumber() - %title%
Pic for reference
(http://img263.imageshack.us/img263/7742/sortwz8.th.png) (http://img263.imageshack.us/my.php?image=sortwz8.png)

ITEM DISPLAY should probably be
Code: [Select]
$if(%_selected%,$drawrect(94,2,0,16,brushcolor-220-220-220 pencolor-null),)

$imageabs(13,$if($strcmp(%tracknumber%,01),2,$add(23,$mul(-21,%tracknumber%))),vista1\backcover.png,)
$if($strcmp(%tracknumber%,02),$font(calibri,8,boldshadow glowalpha-50-50-50,90-90-90)$alignabs(6,4,80,20,center,)No cover,)
$imageabs2(60,60,,,60,60,15,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,)folder.jpg,)

$alignabs(102,3,$sub(%_width%,150),12,,)
$font(calibri,8,shadow glowalpha-50,70-70-70)↘%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%



$if(%isplaying%,
$drawrect(94,0,0,0,brushcolor-244-244-244 pencolor-null)
$drawrect(94,2,0,16,brushcolor-40-120-180 pencolor-null)
//$imageabs(96,0,vista1\20.png,)
$font(calibri,8,glow-130-160-240 glowalpha-120,250-250-250)
$alignabs(102,3,$sub(%_width%,150),12,,)>>%title%
$alignabs($sub(%_width%,127),3,120,20,right,)%length%
$alignabs($sub(%_width%,157),7,120,20,right,)
$font(wingdings,6,bold glow-130-160-240 glowalpha-110,180-220-250)$repeat(ï‚«,%rating%)

)
This assumes you want the same thing displayed for all tracks regardless of total tracks.  If you DO want something different then you'll have to use the $ifgreater() function.  Either way, the sort code does not go here.

Your GROUP DISPLAY looks fine.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-29 08:40:04
You got some code in the wrong places.  First, your GROUP BY code should be
Code: [Select]
$ifgreater(%totaltracks%,4,
%album%
,
%_itemcount%
)


You cannot use %_itemcount% or %_itemindex% in the Group By field. Please, if this has changed someone correct me. My suggestion would be a group by code like this:
Code: [Select]
$ifgreater(%totaltracks%,4,%album%,!noheader!)
or
Code: [Select]
$ifgreater(%totaltracks%,4,%album%,%artist%)

Also, the $if(%_selected%) and $if(%isplaying% code should be moved outside of the $ifgreater() code otherwise you're only going to see the effects with your albums and not your "singles".

But you are right the sort string is a major problem many users of this plugin run into. This plugin does not sort your playlist entries it simply groups similar adjacent entries together. I would like to again suggest that this plugin atleast add the current group by string to the end of the current sort string for more intuitive behavior.
Title: foo_uie_single_column_playlist
Post by: Silverbolt on 2007-01-29 09:02:37
Some Alt shortcuts are overridden, for instance, you can't Alt+F4. 0.5.4 beta, Jan 9th build.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-29 10:07:55
wow he's right. forcing a user to use the mouse to close a program is evil. this might also be related to a problem another user reported in another thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=52246) regarding the use of a german keyboard with foobar.
Title: foo_uie_single_column_playlist
Post by: henn1ng on 2007-01-29 11:35:09
wow, thx for all the support ppl!

i have now managed to at least get a different header for items with a grousize <4.
my standard playlist is sorted by artist then date then album then tracknumber. i never really understood where it tells it to do so since im using cepiperez config but it looks just right.
i reckon it has something to do with the "playlist tree" or the  "browser".


so the best thing really would be to use this sorting and display method for all groups >3 and all the others should be up top sorted and  grouped by album.

i have not really understood your suggestion with the columns ui sorting. does that even effect my scpl ?? i have basically done it the exact same way as you di on the screenshot, only with the different sorting. but it didnt do anything.

maybe you could post what that trackinfo button should look like.

i think "we're" almost there  so please help me to get this done.

again, thank you for answering!
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-29 13:17:40
You cannot use %_itemcount% or %_itemindex% in the Group By field. Please, if this has changed someone correct me.

Well I tested it and it provides one group header at the top of all the 'singles'.  Whether it is actually the correct string to use, or I just cheated the sytem, I'm not sure.  But it works.

Using !noheader! would eliminate the header at the top of the list where he has his 'Singles' and %artist% would create a new header for each artist change.  He doesn't want either of those scenarios, just one header at the beginning of his 'Singles' section.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-01-29 13:28:16
i have not really understood your suggestion with the columns ui sorting. does that even effect my scpl ?? i have basically done it the exact same way as you di on the screenshot, only with the different sorting. but it didnt do anything.

maybe you could post what that trackinfo button should look like.

Any playlist sorting affects all playlist views, whether it is ColumnsUI or SCPL.  To sort using the custom sort spec in a ColumnsUI column you must switch to a ColumnsUI layout and just click the column header.  It works just like windows explorer to sort a column.

The trackinfo_mod button code would be something like this -
Code: [Select]
$button2(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,'SORT:Normal|$ifgreater(%totaltracks%,4,%artist% - %date%,()) - %album% - $tracknumber()',)

I think that sort string is correct based on what you posted.  I haven't tested this button code since I'm not at home, but I think it should work.
Title: foo_uie_single_column_playlist
Post by: foosion on 2007-01-29 16:22:43
Some Alt shortcuts are overridden, for instance, you can't Alt+F4. 0.5.4 beta, Jan 9th build.
This sounds like a problem with the WM_SYSCOMMAND handler.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-01-29 19:37:58
Is it possible to define playlist sorting with a button in a trackinfomod panel, for example:
Code: [Select]
$button2(90,1,0,0,35,13,'$font(tahoma,7,,$if($sorted(Singles),255-255-255,0-0-0))$char(91)
$font(,,,128-128-128)Singles$font(,,,$if($sorted(Singles),255-255-255,0-0-0))$char(93)',
'$font(tahoma,7,shadow,255-255-255)Singles',
'SORT:Singles|RESET
%artist% - %title%
',)

And then reference that sort using $sorted() in a SCPL group by routine, for example:
Code: [Select]
$if($sorted(Singles),!noheader!,
$if(%tracknumber%,%album%%discnumber%,
!noheader!
))

I have tried many permutations and combinations but have been unsuccessful in using $sorted() in any panel outside of the one where the original button resides.
Title: foo_uie_single_column_playlist
Post by: Aliarse on 2007-01-29 20:54:22
Is it possible to remove the scroll bar and just add two images for scrolling up/down the playlist?

I have a setup im happy with, but the scroll bar is "ruining" it atm as its not the same color as the rest of my theme...

(http://img454.imageshack.us/img454/161/newkx3.th.jpg) (http://img454.imageshack.us/my.php?image=newkx3.jpg)
Title: foo_uie_single_column_playlist
Post by: inatightspot on 2007-01-30 00:51:06
Is it possible to remove the scroll bar and just add two images for scrolling up/down the playlist?

I have a setup im happy with, but the scroll bar is "ruining" it atm as its not the same color as the rest of my theme...

(http://img454.imageshack.us/img454/161/newkx3.th.jpg) (http://img454.imageshack.us/my.php?image=newkx3.jpg)

I want my scroll bars gone too since focus follows the mouse cursor and I can use the middle button
Title: foo_uie_single_column_playlist
Post by: mister_tee on 2007-01-30 22:28:48
Hello everyone,
after playing around with this single column playlist thingy, I thought about a nice "extension" regarding "single song" playlists.

For example: I have some playlists with serveral albums and it that case everything works fine. But when I want to create a sampler, I only need the artist, the title of the song and no header. The header would only irretate while I'm dragging and dropping.

So I tried to build my single column playlist like "azraels" behaviour. If a playlist has the part "-s-" in the end of the name, no header will be created and the songs will be shown with the list index.

EXAMPLE 1, PLAYLIST NAME "Album list":
[a href="http://img245.imageshack.us/my.php?image=view01albumlistxy2.gif" target="_blank"]
Later,
mister_tee
Title: foo_uie_single_column_playlist
Post by: panfist on 2007-01-30 23:09:29
I was testing out dragging and dropping tracks in the playlist window, and I really don't like the way the window draws as you drag tracks. If you are viewing a playlist grouped by %album%, and you drag one track up, when the window draws the track in the next index position, it redraws the group header so you have to move your mouse over the group header once again to move the track one more index. This is especially annoying when you are dragging one track and if your "group rows" is set to more than 1, you must move your mouse more distance.

The problem is not as annoying but also present when you are dragging multiple tracks. A solution I thought of while messing around would be to re-draw the item displays as long as your mouse button (or alt) are "down," but only re-draw the group headers when your mouse button (or alt) is "up." In other words, don't refresh group headers while dragging.

I hope you can understand my idea because I'm not sure if I'm being clear. I really would like this to be an option.

EDIT: I just noticed that when you are dragging a track down in the list, that is to say increasing it's list index, and it's directly above a group header, it will refresh in the next highest list index position when your mouse cursor first crosses the group header below the track. I like this behavior. When you drag a track up in the list (decrease it's index) and it's directly BELOW a group header, it will not refresh until the mouse cursor crosses the top of the group header. This is very annoying, especially if that track has it's own group header, every time you decrease it's index and it re-draws in the window, you must move your mouse over the entire group header. It behaves much more smoothly when it's being dragged down, and it would be a nice fix if it behaved like that when you dragged it up, too.

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

(http://i65.photobucket.com/albums/h213/panfist/untitled.png)

I've found another problem which I would consider to be a general performance problem of this plugin. When I am using this component with my config, the re-draw rate while resizing the window varies according to how many album images I am displaying. I will include my code for an example at the end of the post. When the SCP view has a small height and I am only showing 1 group header, that is to say only showing 1 album art jpg, the window redraws quickly and smoothly. If I increase the height so that two group headers are showing, the redraw rate slows down considerably, but still follows the mouse cursor well. If I increase the height even more so that three JPGs are showing, the re-draw rate drops to about 2 fps and it makes the mouse cursor visibly lag. The jpgs I have for covers are no bigger than 300x300 or 800kB, and I have a 3.4ghz processor with 2gigs of dual channel ram, 512 meg PCIe video card. In order to try and get better perfomance I even renamed all of my album art from "%artist%\%album%\folder.jpg" to "album art\%artist% - %album%.jpg" and put all of my art in a central folder to see if seek times of my hard disk might be limiting my performance. Now, they are all in one folder and defragmented, yet I still have very slow screen refresh rates when displaying more than 2 JPGs.  The other images displayed are all under 4k each.

I commented my code thoroughly which I notice nobody around here does. I hope it helps anyone understand my problem.

SCP Code:
row height:15
group rows:3
group by: %album%

item display
Code: [Select]
// initialize variables needed to properly display dynamically resizing album art.
// imgwidth = the desired width of the entire composite image, art+jewel case
// imgheightfac*imgwidth/10=imageheight
// artdimfac*imgwidth/10=artwidth and artheight
// artvoffsetfac*imgheight/100 = the vertical offset of the album art from the top of the group display
// arthoffsetfac*imgwidth/100 = the horizontal offset of the album art
// grouprows = number of rows in the group
// compositeoffset takes into account the width of the album year and makes sure the composite doesn't run into the year
$puts(imgwidth,100)
$puts(imgheightfac,9)
$puts(artdimfac,83)
$puts(artvoffsetfac,45)
$puts(arthoffsetfac,120)
$puts(grouprows,3)
$puts(compositeoffset,37)

// calculating variables needed from the initialized variables
// imgheight the cropped height of the
// artdim = the dimensions of the album art within the case/disc/art composite
// ralignoffset = how far from the right window border the image renders, 45 = pixel width of the year display.
// ralignoffsetart = how far from the right window border the art renders (slightly more to the right than the whole image)
// artvoffset = the vertical offset of the art so it appears centered in the case
$puts(imgheight,$div($mul($get(imgheightfac),$get(imgwidth)),10))
$puts(artdim,$div($mul($get(artdimfac),$get(imgwidth)),100))
$puts(ralignoffset,$sub(%_width%,$add($get(imgwidth),$get(compositeoffset))))
$puts(ralignoffsetart,$add($sub(%_width%,$add($get(imgwidth),$get(compositeoffset))),$div($mul($get(arthoffsetfac),$get(imgwidth)),1000)))
$puts(artvoffset,$div($mul($get(imgheight),$get(artvoffsetfac)),1000))

$ifequal($mod(%_itemindex%,2),0,
$imageabs(,,\images\LE5\reluna1.png,),
$imageabs(,,\images\LE5\reluna2.png,))

$if(%_selected%,$imageabs(,,\images\LE5\relunagreen.png,),)

$if(%isplaying%,$imageabs(,,\images\LE5\relunablue.png,),)
$if(%isplaying%,$font(Calibri,8,bold,0-0-200),$font(Calibri,8,,0-0-0))

$padding(4,)
$align(right,middle)
$if(%isplaying%,%_time_remaining%,%length%)

$padding(2,)
$align(left,middle)
%tracknumber%

$padding(22,)
$align(left,middle)
[%title%]

$ifgreater($mul(%_height%,%_itemcount%),40,
$imageabs2($get(imgwidth),$get(imgheight),,$sub($mul(%_height%,$add(%_itemindex%,$get(grouprows))),$add(%_height%,1)),,%_height%,$get(ralignoffset),,/images\test\case.png,)
//$imageabs2($get(imgwidth),$get(imgheight),,$sub($mul(%_height%,$add(%_itemindex%,$get(grouprows))),$add(%_height%,1)),,%_height%,$get(ralignoffset),,/images\test\disc.png,)
$imageabs2($get(artdim),$get(artdim),,$sub($mul(%_height%,$add(%_itemindex%,$get(grouprows))),$add(%_height%,$get(artvoffset))),,%_height%,$get(ralignoffsetart),,d:\album art\%artist% - %date% - %album%.jpg,)
,)


group display
Code: [Select]
// initialize variables needed to properly display dynamically resizing album art.
// imgwidth = the desired width of the entire composite image, art+jewel case
// imgheightfac*imgwidth/10=imageheight
// artdimfac*imgwidth/10=artwidth and artheight
// artvoffsetfac*imgheight/100 = the vertical offset of the album art from the top of the group display
// arthoffsetfac*imgwidth/100 = the horizontal offset of the album art
// grouprows = number of rows in the group
// compositeoffset takes into account the width of the album year and makes sure the composite doesn't run into the year
$puts(imgwidth,100)
$puts(imgheightfac,9)
$puts(artdimfac,83)
$puts(artvoffsetfac,45)
$puts(arthoffsetfac,120)
$puts(grouprows,3)
$puts(compositeoffset,37)

// calculating variables needed from the initialized variables
// imgheight the cropped height of the
// artdim = the dimensions of the album art within the case/disc/art composite
// ralignoffset = how far from the right window border the image renders, 45 = pixel width of the year display.
// ralignoffsetart = how far from the right window border the art renders (slightly more to the right than the whole image)
// artvoffset = the vertical offset of the art so it appears centered in the case
$puts(imgheight,$div($mul($get(imgheightfac),$get(imgwidth)),10))
$puts(artdim,$div($mul($get(artdimfac),$get(imgwidth)),100))
$puts(ralignoffset,$sub(%_width%,$add($get(imgwidth),$get(compositeoffset))))
$puts(ralignoffsetart,$add($sub(%_width%,$add($get(imgwidth),$get(compositeoffset))),$div($mul($get(arthoffsetfac),$get(imgwidth)),1000)))
$puts(artvoffset,$div($mul($get(imgheight),$get(artvoffsetfac)),1000))

//chooses album artist over track artist for the entire header
$if(%album artist%,$put(artist,%album artist%),$put(artist,%artist%))

// the background image
$imageabs(,,\images\LE5\relunaorange2.png,)

// the genre image
$imageabs($sub($get(ralignoffset),53),2,\images\ojoink\%genre%.gif,)

//this section renders the album artist, album title
$alignabs(6,4,%_width%,20,left,top)
$font(Calibri,12,bold glow-255-255-255 glowexpand-1,0-0-0)
$get(artist)
$font(Calibri,11,bold glow-255-255-255 glowexpand-0,0-0-0)
$alignabs(6,20,%_width%,20,left,bottom)
%album%

// this section renders the date, codec, and bitrate
$font(Calibri,12,glow- glowexpand-0 glowalpha-15,40-40-40)
$alignabs($sub(%_width%,$add($calcwidth(%date%),4)),2,%_width%,20,left,)
%date%
$font(Calibri,8,glow- glowexpand-0 glowalpha-15,40-40-40)
$alignabs($sub(%_width%,$add($calcwidth(%codec%),5)),19,%_width%,20,left,)
%codec%
$alignabs($sub(%_width%,$add($calcwidth(%bitrate%),5)),29,%_width%,20,left,)
%bitrate%

// renders the album art
$ifgreater($mul(%_height%,%_itemcount%),90,
$imageabs2($get(imgwidth),$get(imgheight),,,,,$get(ralignoffset),,/images\test\case.png,)
//$imageabs2($get(imgwidth),$get(imgheight),,,,,$get(ralignoffset),,/images\test\disc.png,)
$imageabs2($get(artdim),$get(artdim),,,,,$get(ralignoffsetart),$get(artvoffset),d:\album art\%artist% - %date% - %album%.jpg,)
,)
Title: foo_uie_single_column_playlist
Post by: PonasX on 2007-01-31 12:15:14
I have two CepiPerez Foobar's configs, in one Single Column Playlist in playing playlist shows now playing song and if need jumps down or up, in the other config that doesn't work ..

[a href="http://img513.imageshack.us/my.php?image=fb2kbb5.png" target="_blank"]
Title: foo_uie_single_column_playlist
Post by: patrick0 on 2007-02-02 10:56:08
does anyone have any cool "group by" functions they are using?

I am trying to sort primarily by artist across libraries(music folders), which I understand from the wiki using cwb_hooks should be able to accomplish this(?).. So far after lots of fiddlling around, I have been unable to get it to work.. and I am getting the feeling this isn't the right function?

I would appreciate if you have something that works, you could post it up, and/or PM me!


edit
there are few examples using the example from the wiki, but I haven't been able to modify it to sort by music folders, eg:
http://www.hydrogenaudio.org/forums/index....st&p=468260 (http://www.hydrogenaudio.org/forums/index.php?showtopic=47810&view=findpost&p=468260)
http://www.hydrogenaudio.org/forums/index....st&p=426731 (http://www.hydrogenaudio.org/forums/index.php?showtopic=47810&view=findpost&p=426731)
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-02 15:25:30
patrick0: Can you be more specific about what you are trying to do? You can access the music's folder name by using %directory% or $directory(%path%,n) where n is the level of the pathname you want.
Title: foo_uie_single_column_playlist
Post by: patrick0 on 2007-02-02 21:38:17
Yotsuya:let me try to explain .. .

basically I have multiple libraries and when listed into the single column play list they go
Code: [Select]
library 1 , sorted by artist
    A
    B
    ...
    Z
followed by library2, sorted by artist
    A
    B
    ..
    Z


what I would like is this
Code: [Select]
library 1 & 2, sorted by artist together
    A
    B
    ..
    Z
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-02-02 22:44:39
The 'Group By' function in SCPL simply defines where the header rows are placed.  It does not sort your music for you.  You must accomplish this through a trackinfo_mod button or from a ColumnsUI column header with a custom sort spec.

Start reading from here - http://www.hydrogenaudio.org/forums/index....st&p=467661 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47810&view=findpost&p=467661)
through post #1273.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-02-03 01:00:40
It does not sort your music for you.  You must accomplish this through a trackinfo_mod button or from a ColumnsUI column header with a custom sort spec.

...or a line of script in Edit -> Sort -> Sort by...


Patrick, I don't see what your problem is here. Where the files are located shouldn't have anything to do with how they are sorted.

If you want to sort by artist, just go to File -> Edit -> Sort by Artist
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-03 02:00:22
As mentioned before, SCPL does not sort your playlist. The group by column only determines where to put group headers it does not change your item order to fit those groups. It sounds like you want to place %artist% toward the beginning of your sort string.

For existing playlists you can change your sort string from:
Edit> Sort> Sort By...

For all future playlists you can change your sort string from:
File> Preferences> General> "Sort incoming files by:"
Title: foo_uie_single_column_playlist
Post by: Tich on 2007-02-03 16:06:06
Is there a way to force SCPL to refresh?
Say I add some track to the playlist, get the album-art which didn't exist before and wan't to refresh the playlist in order for it to show the albumart.
The only way I know of is changing the config and hitting ok/apply, adding the same tracks again or restarting foobar.
I searched for the answer but didn't find anything useful in this topic.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2007-02-03 17:04:46
usually just switching to another playlist works for me.
Title: foo_uie_single_column_playlist
Post by: Tich on 2007-02-03 17:46:54
usually just switching to another playlist works for me.

might work for updating the tags (group info) but doesn't change the album-art... only a restart or changing the config did the trick for me.
Title: foo_uie_single_column_playlist
Post by: Ran Sagy on 2007-02-03 18:19:19
SCPL might cache the images, I think it does actually.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-02-03 23:31:49
If you have an alternate layout, like a ColumnsUI layout, then switching to that and back to SCPL will work for you (I found this out last night while updating a bunch of album art).
Title: foo_uie_single_column_playlist
Post by: hexonn on 2007-02-04 02:38:02
Alright, I need some help here :? 

I use this in the Group Display
Code: [Select]
$imageabs2(%_width%,%_width%,0,0,%_width%,%_width%,0,-25,$replace(%path%,%filename_ext%,)front.jpg,alpha-140)


i know that %_width probably isn't the best choise in using

here is an example of them working, it's just the album cover with some alpha transparency above a gradient
http://img300.imageshack.us/img300/2062/foory0.jpg (http://img300.imageshack.us/img300/2062/foory0.jpg)

but now gone?
http://img10.imagepile.net/img10/thmb73071foobad.jpg (http://img10.imagepile.net/img10/thmb73071foobad.jpg)

also, what causes some of the images to show, and others not? album arts are the same size 500x500 or 600x600, but they don't get displayed at all in some cases
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-02-04 07:33:27
Try this code instead -
Code: [Select]
$imageabs2(%_width%,%_width%,0,25,%_width%,%_height%,,,$replace(%path%,%filename_ext%,'front.jpg'),nokeepaspect alpha-140)
Title: foo_uie_single_column_playlist
Post by: jezuschryzt on 2007-02-05 01:28:08
hi,

I've recently upgraded from Windows 2000 Professional to Windows XP Professional SP2 and ever since doing it both foo_uie_single_column_playlist and foo_uie_trackinfo_mod refuse to work. I get the following error when starting f2k:

Code: [Select]
Failed to load DLL: foo_uie_single_column_playlist.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.  

Failed to load DLL: foo_uie_trackinfo_mod.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.



I've tried redownloading the components to the original directory as well as re-installing f2k altogether and yet I still get the same problem. Any ideas on how to fix this?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-02-05 01:34:09
yeah,
the first post says you need this:
http://www.microsoft.com/downloads/details...;displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en)
Title: foo_uie_single_column_playlist
Post by: jezuschryzt on 2007-02-05 02:29:13
oh, thanks.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-02-06 06:30:42
Thank you for your help this appears to be working now. I do have a few more questions though. Am I right in assuming that by placing the RESET at the beginning, the sorting string isn't reset until the beginning of the next sort?


no, the sort string is reset before the new sort.

Quote
Is %sortstring% and $sorted() available outside of the panel in which the buttons appear that set them? I keep getting ? or [UNKNOWN FUNCTION] when trying to use these in a different panel than the one the buttons are in.


no, not currently.

Any ideas why it doesn't work like this for me?

I've got the latest SCPL (0.4.5 beta), ColumnsUI (0.1.3 beta 1v7) and Foobar.


not sure.. these are the steps I did. 1) start playing in playlist a, 2) switch to playlist b, and enqueue file. Playback then continues on playlist b after the enqueued file. Are you doing something different?


Hey, I was wondering, for the context menu when clickin on a track in SCPL, there's an item called "playlist" which has "active" and "playing" in it, but I'm not sure what the check marks mean. Do they indicate which playlist is active and/or playing? Because you can click on them and change the appearance of the checkmark, which did not sync up with the same icons in the playlists dropdown component. If we don't use this context menu item, can we delete it?


the check mark indicates which playlist is being displayed, and it's not removable.

Hmm, maybe saving cache between sessions.... with a big playlist and albumarts with ~2000*2000 pixels scrolling in very large playlists is not the so fast... resizing images takes some time.
Tried several solutions, but displaying album art in playlists is a big slowdown and I don't want to have foobar open all day just to have all images cached.


you could just make thumbnails for the albumart and use that. shouldn't be too hard with some sort of batch image processing program.

I was testing out dragging and dropping tracks in the playlist window, and I really don't like the way the window draws as you drag tracks. If you are viewing a playlist grouped by %album%, and you drag one track up, when the window draws the track in the next index position, it redraws the group header so you have to move your mouse over the group header once again to move the track one more index. This is especially annoying when you are dragging one track and if your "group rows" is set to more than 1, you must move your mouse more distance.

The problem is not as annoying but also present when you are dragging multiple tracks. A solution I thought of while messing around would be to re-draw the item displays as long as your mouse button (or alt) are "down," but only re-draw the group headers when your mouse button (or alt) is "up." In other words, don't refresh group headers while dragging.

I hope you can understand my idea because I'm not sure if I'm being clear. I really would like this to be an option.

EDIT: I just noticed that when you are dragging a track down in the list, that is to say increasing it's list index, and it's directly above a group header, it will refresh in the next highest list index position when your mouse cursor first crosses the group header below the track. I like this behavior. When you drag a track up in the list (decrease it's index) and it's directly BELOW a group header, it will not refresh until the mouse cursor crosses the top of the group header. This is very annoying, especially if that track has it's own group header, every time you decrease it's index and it re-draws in the window, you must move your mouse over the entire group header. It behaves much more smoothly when it's being dragged down, and it would be a nice fix if it behaved like that when you dragged it up, too.


yeah, rearranging by mouse isn't the most convenient, but until I can rework it you can use the keyboard which works better.
Title: foo_uie_single_column_playlist
Post by: mazy on 2007-02-06 12:11:39
terrestrial, i would like to access foo_uie_trackinfo_mod's persistant variables in foo_uie_single_column_playlist, could you implement this somehow? i would use this for example to toggle album art in the playlist etc.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-02-07 03:33:47
that's actually the next thing I'm working on (however to do what you would like to do there'd have to be a way to tell scpl to redraw the display).
Title: foo_uie_single_column_playlist
Post by: Crusoli on 2007-02-10 15:30:07
Is it just me or are the Up Down Buttons not working anymore to scroll through the playlist?
Alt+Up/Down moving songs works but scrolling doesnt...
Title: foo_uie_single_column_playlist
Post by: Crusoli on 2007-02-12 05:05:39
Nevermind, keystrokes were messed up because of the columns layout.
Title: foo_uie_single_column_playlist
Post by: morphguy12 on 2007-02-12 06:18:11
There anyway to have this remember the artist and song after I have clicked my " now playing" button?

It always starts back at the top to (All Artists), there anyway to code it so it stays with that song/ artist?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-12 06:38:56
morphguy12: Where is your "now playing" button and what code does it execute when you click on it? When does it "start back at the top to (All Artists)" ? Are you switching between more than one playlist? How is your playlist sorted? Please provide more detail about your problem so we can help you, feel free to use pictures.
Title: foo_uie_single_column_playlist
Post by: morphguy12 on 2007-02-12 06:51:34
thanks yotsuya,  Im using CepiPerez's layout for the most part, with dark1, dark2, and dark 3 as my layouts.  On the top there are three buttons, and whenever I switch between them, the "Show Playlist" page resets.  On that page I have a browser panel on top with it looking in my library, and then I have a Singe Column Playlist  using Matias, which works with my browser which is up on top

EDIT: I changed between Matias, and default playlist for my Single Column, and same thing happens
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-12 08:36:34
I do not use CepiPerez's layout nor do I see his code posted in the configuration distribution thread with his layout. Looking at the screenshots and your description I assume the buttons at the top are switching between tabs under foo_uie_tabs and on one of those tabs singlecolumnplaylist sits with your music? I did play around a bit by placing singlecolumnplaylist as well as columnsui playlist on tabs with trackinfomod and some other components.  Whenever I would switch back and forth singlecolumnplaylist would remember the selected track regardless of the isplaying track or what I clicked on in the other panels (unless it was the same playlist). I even tried using two separate singlecolumnplaylists with different playlists on two separate tabs and bouncing back and forth.. both playlists remembered their selections.

Can you explore the problem further on your end and be more specific about what is going on? What is it that you are asking for this component to do?
Title: foo_uie_single_column_playlist
Post by: morphguy12 on 2007-02-12 18:19:20
it seems that yours is working just fine, cause mine doesn't remember which song is playing on the "Playlist tab"
Heres the trackinfo mod on the very top, the part with the buttons:

Code: [Select]
// Globals
$puts(background,255-255-255)

// Background

$if($fileexists(dark1\walls\%cwb_activelist%.png),
$imageabs2(%_width%,$mul(%_height%,13),,,,,0,0,dark1\walls\%cwb_activelist%.png,NOKEEPASPECT alpha-180)
,
$imageabs2(%_width%,$mul(%_height%,13),,,,,0,0,$get(background),NOKEEPASPECT)
)


// PerTrack

$button($sub($div(%_width%,2),193),12,0,0,0,0,dark1\buttons\now1.png,dark1\buttons\now2.png,dark3,)
$button($sub($div(%_width%,2),61),12,0,0,0,0,dark1\buttons\list1.png,dark1\buttons\list2.png,dark2,)
$button($add($div(%_width%,2),71),12,0,0,0,0,dark1\buttons\lyrics1.png,dark1\buttons\lyrics2.png,dark1,)

$if(%isplaying%,$if(%ispaused%,
$button($sub(%_width%,100),12,0,0,0,0,dark1\buttons\play1.png,dark1\buttons\play2.png,Play,),
$button($sub(%_width%,100),12,0,0,0,0,dark1\buttons\pause1.png,dark1\buttons\pause2.png,Pause,)),
$button($sub(%_width%,100),12,0,0,0,0,dark1\buttons\play1.png,dark1\buttons\play2.png,Play,))
$button($sub(%_width%,130),12,0,0,0,0,dark1\buttons\prev1.png,dark1\buttons\prev2.png,Previous,)
$button($sub(%_width%,70),12,0,0,0,0,dark1\buttons\next1.png,dark1\buttons\next2.png,Next,)
$button($sub(%_width%,40),12,0,0,0,0,dark1\buttons\stop1.png,dark1\buttons\stop2.png,Stop,)

----------------------------
Playlist Code
--------------------------------------------------------
Sort by: Album

Item Display
Code: [Select]
$if(%_selected%,$drawrect(294,2,0,16,brushcolor-220-220-220 pencolor-null),)

$button(0,0,0,0,0,0,vista1\now2.png,vista1\now1.png,Playing,)
$ifgreater($mul(%_height%,%_itemcount%),40,
$imageabs2(62,62,,,62,62,14,$add(1,$mul(-22,%_itemindex%)),dark1\nocover2.png,)

$if($fileexists($replace(covers\%artist% - %album%.jpg,?,)),
$imageabs2(60,60,,,60,60,15,$add(2,$mul(-22,%_itemindex%)),$replace(covers\%artist% - %album%.jpg,#,),NOKEEPASPECT)
,$imageabs2(60,60,,,60,60,15,$add(2,$mul(-22,%_itemindex%)),$replace(%path%,%filename_ext%,)folder.jpg,NOKEEPASPECT))
,)

$font(calibri,8,boldshadow glowalpha-50,0-0-0)
//$if(%album artist%,
//$if($strcmp(%_itemindex%,1),$alignabs(90,3,180,110,,)%album artist%,)
//,$if($strcmp(%_itemindex%,1),$alignabs(90,3,180,110,,)%artist%,))
//$if($strcmp(%_itemindex%,1),$imageabs(90,21,neo1\line2.png,))
$font(calibri,8,boldshadow glowalpha-50,100-100-100)
$if($strcmp(%_itemindex%,1),$alignabs(90,3,180,15,,)%album%,)
$if($strcmp(%_itemindex%,2),$alignabs(90,-18,180,40,,top)%album%,)





$font(calibri,8,shadow glowalpha-50,70-70-70)
$alignabs(302,3,$sub(%_width%,400),14,,)%track%. %title%
$alignabs($sub(%_width%,135),3,120,20,right,)%length%
$alignabs($sub(%_width%,170),7,120,20,right,)
$font(wingdings,6,bold,170-170-170)$repeat(,%rating%)


$if(%isplaying%,
$drawrect(294,0,0,0,brushcolor-244-244-244 pencolor-null)
$drawrect(294,2,0,16,brushcolor-0-0-0 pencolor-null)
$imageabs(296,0,dark1\miniplay.png,)
$font(calibri,8,glow-130-160-240 glowalpha-120,180-220-250)
$alignabs(320,3,$sub(%_width%,206),12,,)%title%
$alignabs($sub(%_width%,135),3,120,20,right,)%length%
$alignabs($sub(%_width%,170),7,120,20,right,)
$font(wingdings,6,bold glow-130-160-240 glowalpha-110,180-220-250)$repeat(,%rating%)
)


Group Display
Code: [Select]
$drawrect(0,23,,18,brushcolor-150-150-150 pencolor-null)
$ifgreater($mul(%_height%,%_itemcount%),60,
$imageabs2(62,62,,,,,14,23,dark1\nocover2.png,NOKEEPASPECT)
$if($fileexists($replace(covers\%artist% - %album%.jpg,?,)),
$imageabs2(60,60,,,,,15,24,$replace(covers\%artist% - %album%.jpg,#,),NOKEEPASPECT)
,$imageabs2(60,60,,,,,15,24,$replace(%path%,%filename_ext%,)folder.jpg,NOKEEPASPECT))
,)
$alignabs(90,25,180,110,,)$font(calibri,8,boldshadow glowalpha-50,255-255-255)
//$upper($if(%album artist%,%album artist%,%artist%))
$if(%album artist%,%album artist%,%artist%)
$alignabs($sub(%_width%,100),25,85,110,right,)%date%
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2007-02-12 18:38:59
Any ideas why it doesn't work like this for me?

I've got the latest SCPL (0.4.5 beta), ColumnsUI (0.1.3 beta 1v7) and Foobar.

not sure.. these are the steps I did. 1) start playing in playlist a, 2) switch to playlist b, and enqueue file. Playback then continues on playlist b after the enqueued file. Are you doing something different?

Don't think so.

I have:
"Playback follows cursor" off
"Cursor follows Playback" on

Code: [Select]
Core (2006-11-25 13:21:34)
    foobar2000 core 0.9.4.2
foo_albumlist.dll (2006-11-25 17:49:06)
    Album List 3.2.0
foo_audioscrobbler.dll (2006-12-20 20:53:00)
    Audioscrobbler 1.3.5
foo_autoplaylist.dll (2006-02-21 20:57:00)
foo_cdda.dll (2006-11-25 13:19:46)
    CD Audio Decoder 2.1.1
foo_common.dll (2006-03-11 18:23:55)
    Common services 0.1
foo_comserver2.dll (2006-07-31 19:13:20)
    COM Automation server 0.7 alpha 6
foo_converter.dll (2006-11-25 13:20:00)
    Converter 1.0.1
foo_custominfo.dll (2006-08-25 03:12:00)
    foo_custominfo 0.1.2
foo_cwb_hooks.dll (2006-12-01 13:47:00)
    cwbowron's title format hooks 1.1.0beta [Dec  1 2006 - 13:47:34]
foo_dsp_std.dll (2006-11-25 13:20:12)
    Standard DSP array 1.0
foo_dumb.dll (2006-05-18 18:12:00)
    DUMB module decoder 0.9.7.1
foo_freedb2.dll (2006-08-29 18:43:04)
    freedb Tagger 0.5.2a
foo_input_shorten.dll (2006-03-11 18:25:13)
    Shorten decoder 0.4.2a
foo_input_std.dll (2006-11-25 13:19:14)
    FLAC Decoder 1.1.0
    Standard Input Array 1.0
    WMA Decoder 1.1
foo_lnk.dll (2006-04-29 18:15:23)
    Shell Link Resolver 1.2
foo_lyricsdb.dll (2006-07-19 22:45:00)
    foo_lyricsdb 0.0.7 beta 4
foo_masstag.dll (2006-11-25 13:18:42)
    Masstagger 1.6
foo_msnalt.dll (2006-08-26 12:49:00)
    MSN Now Playing (alt) 2.4.2
foo_osd.dll (2006-02-28 14:08:00)
    On-Screen Display GDI+ 1.52
foo_playcount.dll (2006-09-16 17:55:00)
    Playback Statistics 1.3.2
foo_pqview.dll (2006-03-12 23:23:29)
foo_random.dll (2006-03-13 10:35:03)
    Randomized playlist entry 1.2.3
foo_rgscan.dll (2006-11-25 13:18:18)
    ReplayGain Scanner 2.0.2
foo_run.dll (2006-06-15 21:08:00)
    Run services 0.3.2
foo_ui_columns.dll (2006-11-22 12:05:24)
    Columns UI 0.1.3 beta 1v7
foo_ui_std.dll (2006-11-25 13:18:12)
    Default User Interface 0.9acc
foo_uie_albumart.dll (2007-01-15 17:04:00)
    Album Art Panel 0.2.6
foo_uie_albumlist.dll (2006-04-28 12:15:07)
    Album list panel 0.2.1 beta 4
foo_uie_lyrics.dll (2006-06-02 04:04:27)
    Lyric Show Panels 0.3.0.0
foo_uie_single_column_playlist.dll (2007-01-09 15:43:00)
    Single Column Playlist Display 0.5.4 beta [Jan  9 2007 - 15:42:59]
foo_uie_tabs.dll (2006-10-17 21:54:00)
    Tabbed panel modified 0.2.5
foo_uie_trackinfo.dll (2006-05-15 01:11:20)
    Track info panel 0.8
foo_uie_trackinfo_mod.dll (2007-01-05 13:36:00)
    Track info panel mod 0.8.0 beta [Jan  5 2007 - 13:36:12]

I'm using the built-in playlist switcher for ColumnsUI

Edit: still occures with only the basics
Code: [Select]
Core (2006-11-25 13:21:34)
    foobar2000 core 0.9.4.2
foo_input_std.dll (2006-11-25 13:19:14)
    FLAC Decoder 1.1.0
    Standard Input Array 1.0
    WMA Decoder 1.1
foo_ui_columns.dll (2006-11-22 12:05:24)
    Columns UI 0.1.3 beta 1v7
foo_uie_single_column_playlist.dll (2007-01-09 15:43:00)
    Single Column Playlist Display 0.5.4 beta [Jan  9 2007 - 15:42:59]
Title: foo_uie_single_column_playlist
Post by: morphguy12 on 2007-02-12 18:41:18
Screenshot:

(http://img371.imageshack.us/img371/2305/foobarconfiges2.th.jpg) (http://img371.imageshack.us/my.php?image=foobarconfiges2.jpg)

Moderation: Please do not inline images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.
Title: foo_uie_single_column_playlist
Post by: morphguy12 on 2007-02-12 22:19:24
I think it is a problem with my browser settings, and what playlist my  Single Column shows, 

Can someone help me out in what settings should be set in the Browser part in Preferences, and how to set it up with the browser & Playlist to correspond?

Thanks!!
Title: foo_uie_single_column_playlist
Post by: HiFiRE on 2007-02-14 14:59:15
Is it possible to refer to the song's path for album art, rather than have all the album art in the foobar folder?
Title: foo_uie_single_column_playlist
Post by: kalmark on 2007-02-14 15:21:33
Is it possible to refer to the song's path for album art, rather than have all the album art in the foobar folder?

Sure! For example:
Code: [Select]
$replace(%path%,%filename_ext%,)folder.jpg
Title: foo_uie_single_column_playlist
Post by: sPeziFisH on 2007-02-14 16:27:03
wildcards are also possible
Code: [Select]
$replace(%path%,%filename_ext%,*front*.jpg)
Title: foo_uie_single_column_playlist
Post by: q-stankovic on 2007-02-14 16:38:32
Hallo terrestrial!

Using the opportunity to set by context menu a playlist wich isn't the active one i try to achieve some fancy layouts: f.e. a "now playing" layout there the playing playlist is displayed or a browser layout there is displayed the browser playlist beside of the browser panels.

But all that is without any worth as long as clicking or doubleclicking an entry in this playlist makes this playlist to the active one. I like to ask if you can change that or if that is impossible at all.
Title: foo_uie_single_column_playlist
Post by: matosman on 2007-02-14 17:59:42
I use and i can't change playlist in the single columns by one other way like left clik.

it is work like it :

(http://img403.imageshack.us/img403/6563/sanstitrewo5.th.jpg) (http://img403.imageshack.us/my.php?image=sanstitrewo5.jpg)

but not work like it :

(http://img403.imageshack.us/img403/982/sanstitre2es6.th.jpg) (http://img403.imageshack.us/my.php?image=sanstitre2es6.jpg)

by uie_playlists_dropdown or an other plugin like playlist tab or others.

Why it isn't work ?
Title: foo_uie_single_column_playlist
Post by: Kiteroa on 2007-02-16 23:50:30
Is it possible to set and/or change the playlist which SCP is displaying from within SCP?

(It is possible from the context menu but sometimes this does not seem to take effect!)
Title: foo_uie_single_column_playlist
Post by: elemakil on 2007-02-19 11:44:10
Well, one question of mine:

I want to group my playlist content first by author and then by album, so it looks like this:

-------------
-- Author --
-------------
  --------------
  -- Album1 --
  --------------
    ContentOfPlaylistOne
  --------------
  -- Album2 --
  --------------
    ContentOfPlaylistTwo

[.. and so on ..]

the code I use at the moment is this:
Code: [Select]
// GroupBy Part //
%artist%

// GroupDisplay Part //
$drawrect(-1,,$add(%_width%,2),,brushcolor-100-100-100 pencolor-52-52-52)
$drawrect(-1,0,$add(%_width%,2),1,brushcolor-null pencolor-110-110-110)

// ARTIST, THE //////////////////////////////

$alignabs(12,2,200,19,,)
$font(,,bold,0-0-0)

$if(%artist%,$puts(TAG,%artist%),)
$if($get(TAG),
    $if($stricmp($left($get(TAG),4),The ),
        $puts(TAG,$right($get(TAG),$sub($len($get(TAG)),4))',' The)
    ,)
,)
$get(TAG)


So how can I modify this to get it look like described above ?


Thanks for your help .. !

greetings elemakil
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-19 14:28:39
elemakil: Double grouping is currently not possible (someone correct me if I'm wrong). However, if you place artist before album in your sort string you should be able to accomplish what you ask except there will be no header for the artist.

%album artist%|$if(%tracknumber%,%album%, )|%discnumber%|%tracknumber%|%path_sort%
Title: foo_uie_single_column_playlist
Post by: Erich w/ an h on 2007-02-19 17:55:50
the only thing I would like to see in the SCPL is the ability to change the dimensions of each track on a per track basis. Like, id like any track where $ifequal(%tracknumber%,%totaltracks%,,) to be a little higher than the other tracks, so I can place other information underneath it; the headers cant contain info from the previous track so I cant use them that way.

Other than that, i do miss dragging and dropping songs and on-click sorting from columns_ui, but otherwise im quite happy with SCPL
Title: foo_uie_single_column_playlist
Post by: Chris Norman on 2007-02-19 20:07:20
Really fantastic plugin.

Is there any way to show in the group section the total playing time of the group? I am thinking of something like %_itemcount% only for the total playing time.

Any ideas?
Title: foo_uie_single_column_playlist
Post by: iStormy on 2007-02-19 21:06:38
[removed]
Title: foo_uie_single_column_playlist
Post by: nbv4 on 2007-02-19 23:24:15
Can you (the author of this plugin) start editing the OP with the current version of the plugin? I want to update to the current version, but can't tell if what I have is the latest without having to go back over the last few pages of this thread to see a new version announced.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-02-20 00:05:15
This component is no longer being maintained as a separate package, to use the latest version you will need to install Panels UI.
Title: foo_uie_single_column_playlist
Post by: terrestrial on 2007-02-20 06:49:52


Any ideas why it doesn't work like this for me?

I've got the latest SCPL (0.4.5 beta), ColumnsUI (0.1.3 beta 1v7) and Foobar.


not sure.. these are the steps I did. 1) start playing in playlist a, 2) switch to playlist b, and enqueue file. Playback then continues on playlist b after the enqueued file. Are you doing something different?


Don't think so.

I have:
"Playback follows cursor" off
"Cursor follows Playback" on


I dunno... is it happening for anyone else?

Hallo terrestrial!

Using the opportunity to set by context menu a playlist wich isn't the active one i try to achieve some fancy layouts: f.e. a "now playing" layout there the playing playlist is displayed or a browser layout there is displayed the browser playlist beside of the browser panels.

But all that is without any worth as long as clicking or doubleclicking an entry in this playlist makes this playlist to the active one. I like to ask if you can change that or if that is impossible at all.


if you want to use two playlists, you should uncheck "active" from each scpl. eg. lock one scpl to "*Playlist Tree*" and one scpl to the playing playlist, or to one specific playlist (eg "Now playing..")

I use and i can't change playlist in the single columns by one other way like left clik.
Why it isn't work ?


check "active", and scpl will display the "active" playlist as set by other playlist switchers.

Is it possible to set and/or change the playlist which SCP is displaying from within SCP?

(It is possible from the context menu but sometimes this does not seem to take effect!)


no, only through the context menu... under what conditions isn't it working for you?


To further explain what  g_stankovic asked for, and what I'd like, here's a screenshot.  I put in a second SCPL (left side, above bottom pic) for the ultimate queue veiwer (via autoplaylist), so I can always see what's coming up:

(http://img365.imageshack.us/img365/9025/queue1it0.th.png) (http://img365.imageshack.us/my.php?image=queue1it0.png)

But there's no way to lock that SCPL to a single playlist.  When a new song starts, it jumps back to displaying the same playlist the main SCPL is displaying.

It would be great if we could lock a SCPL to one playlist no matter what.

Thanks again for all your work.


lock the queue viewer to one playlist (ie make sure "active" and "playing" are unchecked). you should probably lock the other playlist to the "playing" playlist or some other playlist because if you have it on "active" it will switch to the queue playlist when the queue scpl has the focus.
Title: foo_uie_single_column_playlist
Post by: Kiteroa on 2007-02-20 08:19:39
Thanks.

My Playlist selection staying as selected better now: I, wrongly, had ACTIVE ticked thinking that that would make that playlist (always) the active one but, I think, you are saying that if ACTIVE is ticked then the SCP will always show whichever playlist is the active one (is this correct?)

What determines which playlist is active? (Is it whatever browser has the selection in it?)

I've found it extremely confusing and tricky to get 2 playlists working properly: the first as a browser list (fed by album list, playlist tree, quick search etc.) and another which is being played (fed with the albums/tracks from the browser list but I think I have it working now!

Thanks for all the effort you put into the plug-ins you develop and maintain; I doubt if I would have stuck with Foobar if it wasn't for Track Display, SCP and now PanelUI!
Title: foo_uie_single_column_playlist
Post by: carmenm on 2007-02-20 14:22:38
First i want to thank you again for your HUGE work terrestrial. Because of your plugin i fought to have foobar on my mac

yet i have one feature request. If we change a song tags with the properties dialog, SCPL isnt refresh. Is there a way for it to refresh?

EDIT: Strangly the items are updated but if my update change the group layout, SCPL isnt refreshed
Title: foo_uie_single_column_playlist
Post by: iStormy on 2007-02-20 17:43:39
[removed]
Title: foo_uie_single_column_playlist
Post by: HiFiRE on 2007-02-22 06:40:14
Does anyone have a way to deal with text that doesn't fit in an alignabs area?, ie a way to add ... to a field that doesn't fit?
Title: foo_uie_single_column_playlist
Post by: elenhil on 2007-02-26 15:22:38
I've tried SCPL (well, actually, PanelsUI) and found that album art inside playlist is easily ruined if one of the tracks is missing. Like, if you don't have the first few tracks album art will have its top part cut (corresponding to the rows for tracks that 'should' be there).

I gather that there have been a limitation of that sort in ColumsUI (that is, it cannot look ahead and see how much tracks you have, only blindly assigning 1 row for 1 track, so missing tracks = missing rows for anything it tries to display alogside the tracklist).

So, is that problem still not solved?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-02-26 16:09:52
use %_itemindex% and %_itemcount% instead of %tracknumber% and %totaltracks%
Title: foo_uie_single_column_playlist
Post by: pingwee on 2007-03-03 15:34:30
Hi,

I would like to know if there is a function to get the next items artist as listed in the playlist.
It would be awesome as it would make me able group songs that have an album together, and those that have not separately
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-03-03 15:40:56
http://wiki.bowron.us/index.php/Foobar2000:Hooks (http://wiki.bowron.us/index.php/Foobar2000:Hooks)
Title: foo_uie_single_column_playlist
Post by: pingwee on 2007-03-03 22:15:05
http://wiki.bowron.us/index.php/Foobar2000:Hooks (http://wiki.bowron.us/index.php/Foobar2000:Hooks)


It only gives me the opportunity to get the next item in 'playback' list, not the next one in the list...
Meaning if i queue a song, it would be displayed as next item though it is not the next item in the list
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2007-03-04 01:51:28
The answer to your question is no, but the solution is to add an if to your group by box:
Code: [Select]
$if2(%album%,!noheader!)

and then sort your playlist accordingly.
Title: foo_uie_single_column_playlist
Post by: pingwee on 2007-03-04 16:29:30
Hmm and is there a way to 'ungroup' groups with only one item ?
Ideally, this would be in the group by :

$ifgreater(%_itemcount%,1,%artist%,!noheader!)

Meaning that if you load a random playlist, artists will be grouped together only if there is 2 or more songs of that artist
Title: foo_uie_single_column_playlist
Post by: Purple Monkey on 2007-03-07 15:28:52
No that is not possible atm, afaik it might be on terrestrial's todo list so watch foo_ui_panels.
Title: foo_uie_single_column_playlist
Post by: wraithdu on 2007-03-08 06:49:32
I agree ^^^^

If you think about it, it's not possible using %_itemcount%, since %_itemcount% has no meaning/value until after the playlist has been grouped.  So you cannot logically use %_itemcount% to control grouping.
Title: foo_uie_single_column_playlist
Post by: tnynyn on 2007-03-09 02:35:03
Hi all!

Just got started using foobar and I really like it. Quick question, is there a way to view each playlist differently? for example:

I have a playlist "A" grouped by albums just for albums. Now I want to view playlist "B" with random music just by artist and title. How would I be able to do this?
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-03-09 02:40:07
this link was found by searching in this thread for "grouped by" (http://www.hydrogenaudio.org/forums/index.php?showtopic=47810&st=950&p=448322&#entry448322)

Many more like it can be found.

any way you go, you're going to need to use cwb_hooks (http://wiki.bowron.us/index.php/Foobar2000:Hooks)

an easy example:

Code: [Select]
$if($strcmp(%cwb_activelist%,A),%album%,!noheader!)
Title: foo_uie_single_column_playlist
Post by: tnynyn on 2007-03-09 04:29:58
thanks for the advice. im still new to the coding process, but im getting the hang of the basic right now.
Title: foo_uie_single_column_playlist
Post by: Fest on 2007-03-15 13:50:46
Hi all !
I got question - if it's possible to hide item display ? like "on click on group header hide/unhide items" ?
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2007-03-15 17:06:40
Hi all !
I got question - if it's possible to hide item display ? like "on click on group header hide/unhide items" ?


no collapsable geoups are not possible afaik.
Title: foo_uie_single_column_playlist
Post by: SmilerSmiles on 2007-03-21 19:12:13
Hey people. I hope someone could be kind enough to help me. I'm wanting to have the replaygain and disk number info (if any) to appear next to the date (if any) and if there is no date then the edge of the panel. Also the same result for when the window is maximized. I think it has something to do with the $alignabs width. Ive tried different combinations of the code thats why they don't match.

Code: [Select]
$align(right,top)$font(accidental presidency,32,,191-191-191)[%date%]

$setpvar(name,$calcwidth([%date%]))

$alignabs($eval({%_width%-$getpvar(name))},6,405,20,right,top)
$font(blue highway,12,,11-11-11)[%__replaygain_album_gain%]

$alignabs($getpvar(name),13,375,20,right,bottom)
$font(blue highway,12,,151-151-151)[ Disk '('%discnumber%')']


Also where did the font picker go I really miss it in Panels UI 081.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-03-22 23:57:10
SmilerSmiles: I do not have the fonts you use available for experimentation but might I suggest a different approach to solving your problem. Also I do not know what is pushing you to use right justification but I'll make an example that reserves a 10 pixel column to the left of the text:
Code: [Select]
$alignabs(10,0,$sub(%_width%,10),%_height%,right,top)
$font(accidental presidency,32,,191-191-191)[%date%]
$font(blue highway,12,,11-11-11)[ %__replaygain_album_gain%]

$alignabs(10,0,$sub(%_width%,10),%_height%,right,bottom)
$font(blue highway,12,,151-151-151)[ Disk '('%discnumber%')']
Title: foo_uie_single_column_playlist
Post by: SmilerSmiles on 2007-03-23 16:08:11
SmilerSmiles: I do not have the fonts you use available for experimentation but might I suggest a different approach to solving your problem. Also I do not know what is pushing you to use right justification but I'll make an example that reserves a 10 pixel column to the left of the text:
Code: [Select]
$alignabs(10,0,$sub(%_width%,10),%_height%,right,top)
$font(accidental presidency,32,,191-191-191)[%date%]
$font(blue highway,12,,11-11-11)[ %__replaygain_album_gain%]

$alignabs(10,0,$sub(%_width%,10),%_height%,right,bottom)
$font(blue highway,12,,151-151-151)[ Disk '('%discnumber%')']


                     
Thank you so much Yotsuya. It helped a lot, had to change it a little though. Ill put a screen shot in the appearance thread so you can see what I was talking about.
Title: foo_uie_single_column_playlist
Post by: ozstrike on 2007-03-24 14:02:48
OK guys, I need some help, and part of it is design, and part of it is code.
Right now my foobar looks like this (http://img115.imageshack.us/img115/8537/fubarxt5.jpg).

I like the way it looks, apart from the single column playlist. I feel that the headers need some kind of box around to make them stand out from the background. Problem is, I don't know how to do it without breaking my config.
The other problem is that I'm a bit crap at designing, and especially colours (I'm partially colourblind). I can tell what looks "good", but I don't know what colour to pick that will go with the rest of it. Any ideas?

my code(well, it's not really) for  group display is below:


Code: [Select]
// FONT & COLOUR OPTIONS
$puts(fontAlbum,$font(Calibri,11,,0-0-0))
$puts(fontPerformer,$font(Calibri,10,italic,0-0-0))
$puts(fontArtist,$font(Corbel,14,bold,19-66-94))
$puts(fontDateGenre,$font(Calibri,8,,0-0-0))
$puts(colorLine,100-105-110)



// ************** END OF USER CUSTOMISATION *****************


$alignabs(10,10,$sub(%_width%,20),36,left,bottom)

$get(fontArtist)
[$upper($if($strstr(%genre%,Classical),%composer%,%album artist%))]

$get(fontPerformer)
[  %performer%]

$alignabs(8,10,$sub(%_width%,20),52,left,bottom)
$get(fontAlbum)
[ %album%]

$alignabs(10,10,$sub(%_width%,20),52,right,bottom)
$get(fontDateGenre)
[%date%][  %genre%]

$drawrect(10,64,$sub(%_width%,20),1,brushcolor-$get(colorLine) pencolor-null)


Woah, that's a lot of code :S
Thanks in advance
Title: foo_uie_single_column_playlist
Post by: elenhil on 2007-03-24 17:07:40
Sorry for duplicating the question. Can SCPL make subgroups (that is. can it group particular tracks inside album-groups)?
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-03-25 03:35:27
elenhil: AFAIK, SCPL currently only supports one tier of grouping. However, you can get creative to give the appearance of different grouping styles. For example I group not only by album but by disk number by using more than one variable in my "Group By" string like this:
%album%%discnumber%

If you can give a specific example of what you are trying to accomplish maybe we can be of more help.
Title: foo_uie_single_column_playlist
Post by: elenhil on 2007-03-25 15:18:36
Actually, I'm pondering over classical pieces' titles, trying to figure out something to improve the way they're displayed (you know, disks with lots of subroups inside, like several pieces, symphonies, concerts each with its own parts).

It is, of course, necessary to put all the info in titles so that in single-line interfaces (like "now playing" or "track info") you can tell which sympony or concert or opus that particular part belongs to, at one glance (like 'Piano Concerto No.1 - III. Allegro con fuoco').

But in a simple tracklist that first half gets rather unnecessarily repeated two, three or ten times depending on how many parts are there (like 'Piano Concerto No.1 - I Allegro non troppo e molto maestoso', 'Piano Concerto No.1 - II. Andantino semplice', etc.), while it could be more naturally made a header, and the parts' titles a subgroup below it. That is actually the way they are listed at the back of classical CDs. The problem is that there is already a disk-wide header (album name), and these should be sub-headers (with sub-groups beneath them).
Title: foo_uie_single_column_playlist
Post by: Superunknown on 2007-03-26 12:28:50
Anyone knows how to make f2bk run faster with this mod, because it's really slow to navigate into the playlist when the album covers are on.
Title: foo_uie_single_column_playlist
Post by: ozstrike on 2007-03-27 18:43:21
I know I keep asking questions, sorry.
Is there a way to have the Disc Number only display when there are multiple discs in an album (or if not, only when the discnumber tag is present).
Currently I just have it as "Disc [%discnumber%], but I'm sure there's a better way to do it.
Title: foo_uie_single_column_playlist
Post by: shakey_snake on 2007-03-27 18:49:37
%totaldiscs%

$ifgreater($totaldiscs%,1,%discnumber%,)
Title: foo_uie_single_column_playlist
Post by: eejadx on 2007-03-27 18:54:11
Code: [Select]
$if(%totaldiscs%,$if($greater(%totaldiscs%,1),[Disc %disc%]),[Disc %disc%])

This will show disc info first if %totaldiscs% is available and higher than 1, otherwise if %disc% is available.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2007-03-28 02:47:45
Is there a way to have the Disc Number only display when there are multiple discs in an album (or if not, only when the discnumber tag is present).
Currently I just have it as "Disc [%discnumber%], but I'm sure there's a better way to do it.

[Disc %discnumber%[ of %totaldiscs%]]
Title: foo_uie_single_column_playlist
Post by: unknownllama on 2007-04-20 13:01:17
Does anyone have an older copy of this component that works well with regular ol columns ui? I using the Jan 9th one and it doesnt want to play nice with my scpl config. Maybe something like 0.5.4 beta 1 or 2?
Title: foo_uie_single_column_playlist
Post by: mizxecio on 2007-04-20 16:04:45
No response so far to the thread I've made about this, hopefully it's ok to post this in here.

I've been having some trouble getting my playlist looking how I want it.

This is my current Item Display code:
Code: [Select]
$font(Frutiger Linotype,8,,170-170-170)
$if(%tracknumber%,$alignabs(3,0,20,14,,)%tracknumber%.)
$alignabs(25,0,$sub(%_width%,100),14,,)%title%
$if($meta_test(album artist),' by '%artist%)
$alignabs($sub(%_width%,157),-1,150,17,right,middle)%length%
What I'm trying to do is have a black font for selected items, 92-140-152 for the playing items, and also to display %_time_elapsed% / %length% when an item is playing. Previously the config I was using had coloured rectangles drawn when selected/playing (using $if(%_playing%. $if(%_selected$, etc.), but now the rects & images etc. have been taken out, I'm having trouble getting it working. So far I've had it displaying nothing unless an item is selected, and displaying the selected/playing colours over the standard colour.

I've also got two small problems with my TrackInfoMod code. When nothing is playing it's still displaying the codec/last played info, and not "foobar2000" like it should do. I can't see what's causing it, unless there's a syntax error in there somewhere.
Code: [Select]
$drawrect(0,0,0,0,brushcolor-50-50-50 pencolor-null)
$imageabs($sub(%_width%,1280),,images\albumoverlay.png,)
$if(%_isplaying%,
$alignabs(5,$sub(%_height%,750),$sub(%_width%,160),25,,)
$alignabs(7,$sub(%_height%,46),$sub(%_width%,150),50,,)
$font(Frutiger Linotype,14,glow-0-0-0 glowalpha-10,92-140-152)[%artist%]
$alignabs(7,$sub(%_height%,26),$sub(%_width%,150),50,,)
$font(Frutiger Linotype,14,glow-0-0-0 glowalpha-10,170-170-170)[%title%]
)

$font(Frutiger Linotype,9,glow-0-0-0 glowalpha-10,170-170-170)
//codec
$alignabs($add(%_width%,-175),$sub(%_height%,49),170,20,right,top)$if(%last_played%,$puts(diff,$cwb_datediff(%last_played%,%cwb_systemdate%)) last played$ifgreater(1,$get(diff), today, $ifgreater(2,$get(diff), yesterday,$get(diff) days ago)),never played)
//samplerate
$alignabs($add(%_width%,-175),$sub(%_height%,35),170,20,right,top)$div(%samplerate%,1000)'.'$substr($mod(%samplerate%,1000),1,1)KHz %channels%
//codec-profile
$alignabs($add(%_width%,-175),$sub(%_height%,20),170,20,right,top)[%codec%] [%bitrate%kbps][  '(' $div($muldiv(100,%_filesize%,1048576),100)'.'$mod($muldiv(100,%_filesize%,1048576),100)MB' )']
'
$alignabs(5,$sub(%_height%,32),$sub(%_width%,150),40,,)
$font(Frutiger Linotype,20,glow-0-0-0 glowalpha-10,92-140-152)foobar2000
Title: foo_uie_single_column_playlist
Post by: djmalo on 2007-05-01 23:00:13
Hello, i have a problem :

Sometimes when i start foobar, Fomatting Strings are replaced by

Code: [Select]
@@VERSION3@@


I don't understand why? 

I have to encode my Formatting Strings again each time it happens.
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2007-06-05 10:44:44
this post looks quite forgotten but can someone tell me (or point me to actual forum thread) where to download latest version of SCPL? download links in first post and wiki are completely dead.
Title: foo_uie_single_column_playlist
Post by: sylla on 2007-06-05 11:12:33
it's included as "track display" in panels_ui nowadays...
Title: foo_uie_single_column_playlist
Post by: cartman(2vd) on 2007-06-05 13:14:16
it's included as "track display" in panels_ui nowadays...


thx ill look into that.
Title: foo_uie_single_column_playlist
Post by: BartAfterDark on 2007-06-05 13:32:04
anyone got a mirror for the file(s) ?

His site is down
Title: foo_uie_single_column_playlist
Post by: Spirit_of_the_ocean on 2007-06-05 13:56:06
Look in the upload section on this site 
Title: foo_uie_single_column_playlist
Post by: topdownjimmy on 2007-07-07 19:35:11
Look in the upload section on this site 

Is this still around?  I can't find it.
Title: foo_uie_single_column_playlist
Post by: cheatz on 2007-07-09 13:54:04
Yeah it's no longer alive in upload section.

Requesting mirror please
Title: foo_uie_single_column_playlist
Post by: vlada on 2007-07-09 15:59:58
This component is now a part of Panels UI.
Title: foo_uie_single_column_playlist
Post by: kaitsobato on 2008-01-19 11:17:20
I found this via Google and uploaded it here: http://www.sendspace.com/file/1il62v (http://www.sendspace.com/file/1il62v)
Dont know if this is the latest dll
Hope it helps ?_?
Title: foo_uie_single_column_playlist
Post by: vlada on 2008-01-19 14:03:57
This component is now a part of Panels UI.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2008-01-21 06:07:23
PanelsUI is not a valid solution for some of us as it is highly unstable and downright unusuable under many non-english locales.  The link above by kaitsobato is for v0.5.4 beta [Jan 9 2007 - 15:42:59]. Can anyone confirm if this was the last stand-alone version of SCPL to be released? If not, can anyone provide links to a newer version?
Title: foo_uie_single_column_playlist
Post by: fbuser on 2008-01-21 08:11:26
PanelsUI is not a valid solution for some of us as it is highly unstable and downright unusuable under many non-english locales.
You don't need to use PanelsUI as your user interface, to use the SCPL from it. Just use ColumnsUI as your user interface and put SCPL from PanelsUI where you need it.
Title: foo_uie_single_column_playlist
Post by: Yotsuya on 2008-01-22 00:19:10
Thank you for your input but the newer versions of SCPL included with PanelsUI still crash hard under some locales due to the updated editor that uses syntax highlighting in PanelsUI. Even if PanelsUI is not used as the primary interface it is not a valid source for SCPL for some of us. Please, if anyone can confirm and link the last standalone version of this component it would be appreciated.
Title: foo_uie_single_column_playlist
Post by: dRsrb on 2008-01-22 14:20:01
@Yotsuya

This is the last PanelsUI version, that does not crash (randomly, like the versions above 0.14.9):

Download provided by shakey_snake
foo_ui_panels_0.14.9.zip (http://www.hydrogenaudio.org/forums/index.php?act=Attach&type=post&id=3842)

I never had a crash so far.

Bye
Title: foo_uie_single_column_playlist
Post by: m-z on 2008-01-22 15:47:27
The link above by kaitsobato is for v0.5.4 beta [Jan 9 2007 - 15:42:59]. Can anyone confirm if this was the last stand-alone version of SCPL to be released? If not, can anyone provide links to a newer version?

Yes, that's the last one. (I have all versions released before PanelsUI, and that's the newest one.)
Title: foo_uie_single_column_playlist
Post by: jeriko on 2008-02-03 18:59:56
Hello,

I used foo_uie_single_column_playlist.dll with foobar 0.9.4.4

Now I updated to PanelsUI and foobar 0.9.5


Is there any way to import my SCP data to the new PanelsUI one?
If i just copy & paste its messed up... :|
Title: foo_uie_single_column_playlist
Post by: punkluck1 on 2008-03-24 07:33:41
Hello, i have a problem :

Sometimes when i start foobar, Fomatting Strings are replaced by

Code: [Select]
@@VERSION3@@


I don't understand why? 

I have to encode my Formatting Strings again each time it happens.



I'm having the same problem.  It only happens about once every five times that I start up Foobar.

I cannot find any rhyme or reason to it.

Any help would be appreciated.
Title: foo_uie_single_column_playlist
Post by: Zetto on 2008-07-15 13:47:06
Download link with different versions:

http://bbs.pcpchina.com/index.php?showtopic=113645 (http://bbs.pcpchina.com/index.php?showtopic=113645)
Title: foo_uie_single_column_playlist
Post by: ktone on 2009-02-07 20:15:09
Hi! How can I delete single song from playlist (single column playlist view) ? "Delete" button doesn't work :/
Title: foo_uie_single_column_playlist
Post by: acedriver on 2009-02-07 22:47:08
I use the "Delete" button, it works
Title: foo_uie_single_column_playlist
Post by: zeremy on 2015-08-06 20:12:55
FYI

This component is recognized as malware.

http://www.herdprotect.com/foo_uie_single_...f7ea3f92ca.aspx (http://www.herdprotect.com/foo_uie_single_column_playlist.dll-567a9bd87dbd7bf3041517993613b4f7ea3f92ca.aspx)

https://www.virustotal.com/en/file/11f5f370...sis/1438887291/ (https://www.virustotal.com/en/file/11f5f3702f09064815e9a649f049b343ea7dd3648448fd954c8cbb453ccd900a/analysis/1438887291/)