Help - Search - Members - Calendar
Full Version: foo_uie_single_column_playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Squeller
Thanks for the update. Glad to see that arrow up now jumps correctly over the group descriptions.
Draikin
thanks for the update

QUOTE(Draikin @ Oct 4 2006, 10:43) *

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
If I edit Item Display without changing anything it comes back to normal blink.gif

I noticed It happens only when group rows set to 0
Spirit_of_the_ocean
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

Squeller
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? wink.gif
chaosblade
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.
Squeller
QUOTE(ChaosBladE @ Nov 4 2006, 04:03) *
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.
2Pacalypse
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?
chaosblade
You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

CODE

$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.
tomthomson
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
chaosblade
Yeah, If you read a few posts back, Some people noticed that. terrestrial will probably fix it for the next revision smile.gif
2Pacalypse
QUOTE(ChaosBladE @ Nov 4 2006, 15:25) *

You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

CODE

$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!"
Nickoladze
put it in the "Group By" area
chaosblade
.. and make sure you're running one of the latest versions wink.gif
unprefaced
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
$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
parameter
My group display looks like this:

CODE

$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:

IPB Image

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
$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%.
Yotsuya
heh, sorry I thought it would process the $font, I guess it doesnt because it's not a real titleformat command. try this:

CODE
$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%
Patrick Bateman
QUOTE(ubi @ Nov 2 2006, 11:35) *

Before:
IPB Image

After:
IPB Image

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?
iOsiris
Question to those of you with graphic overlay (more so png) intensive setups, does it lag when you scroll (fast)?
Yotsuya
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.
Seo
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
if(%rating%,$imageabs(604,0,images\$get(rating)s1.png,),$imageabs(604,0,images\0s1.png,))


Can you help me ? smile.gif
2Pacalypse
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,)

musosticky
change the ico file extensions to png......put them in a different folder first though as they wont work in explorer if you dont
ubi
QUOTE(Patrick Bateman @ Nov 5 2006, 06:04) *

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
jimbo11883
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.
odyssey
Is there a way simelar to !noheader! in group display, to control item display, or is it impossible to control playlists this way?
Coppertop
I have a keyboard shortcut (Alt-3) set to display the file property box (still a relic from my Winamp-using days wink.gif). However, since the latest version, I can't use Alt as a modifier for a keyboard shortcut any more. Ctrl does still work.
callisto
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!!
jimbo11883
QUOTE(callisto @ Nov 5 2006, 10:47) *

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! tongue.gif
Joelimite
QUOTE(ChaosBladE @ Nov 4 2006, 15:25) *

You can control whether headers appear or not by making the result of the Group By box be !noheader! - for example, mine is:

CODE

$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.
Purple Monkey
QUOTE(jimbo11883 @ Nov 5 2006, 13: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).

QUOTE(Joelimite @ Nov 5 2006, 17:12) *

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.
Joelimite
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?
Purple Monkey
QUOTE(Joelimite @ Nov 5 2006, 22:23) *

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
$if($strstr(%playlist_name%,'-r-'),!noheader!,<some grouping patten>)

And for your display:
CODE
$if($strstr(%playlist_name%,'-r-'),<display for ratings>,<otherwise>)

Replace the <*>s for your setup.
jimbo11883
QUOTE(Purple Monkey @ Nov 5 2006, 13:22) *

QUOTE(jimbo11883 @ Nov 5 2006, 13: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.
2Pacalypse
QUOTE(Purple Monkey @ Nov 6 2006, 00:05) *

QUOTE(Joelimite @ Nov 5 2006, 22:23) *

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
$if($strstr(%playlist_name%,'-r-'),!noheader!,<some grouping patten>)

And for your display:
CODE
$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%
2Pacalypse
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.
jimbo11883
QUOTE(2Pacalypse @ Nov 6 2006, 13:38) *

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? laugh.gif
2Pacalypse
QUOTE(jimbo11883 @ Nov 6 2006, 18:42) *

QUOTE(2Pacalypse @ Nov 6 2006, 13:38) *

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? laugh.gif


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
jimbo11883
QUOTE(2Pacalypse @ Nov 6 2006, 13:44) *

QUOTE(jimbo11883 @ Nov 6 2006, 18:42) *

QUOTE(2Pacalypse @ Nov 6 2006, 13:38) *

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? laugh.gif


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


rolleyes.gif I'm sorry! smile.gif I need to get some sleep... Nevermind my stupid post. headbang.gif
Purple Monkey
QUOTE(2Pacalypse @ Nov 6 2006, 17:09) *

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.
gob
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.
tool++
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% ?

QUOTE(jimbo11883 @ Nov 5 2006, 16:01) *

QUOTE(callisto @ Nov 5 2006, 10:47) *

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! tongue.gif


Thirded!!!!!!!!!
2Pacalypse
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
L4nt0m
QUOTE(tool++ @ Nov 8 2006, 16:43) *

QUOTE(jimbo11883 @ Nov 5 2006, 16:01) *

QUOTE(callisto @ Nov 5 2006, 10:47) *

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! tongue.gif


Thirded!!!!!!!!!


fourthed!
spex04
QUOTE(2Pacalypse @ Nov 8 2006, 18:12) *

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..
gob
QUOTE(tool++ @ Nov 8 2006, 10:43) *

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. wink.gif 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.
jimbo11883
QUOTE(gob @ Nov 8 2006, 22:22) *

QUOTE(tool++ @ Nov 8 2006, 10:43) *

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. wink.gif 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%?
gob
QUOTE(jimbo11883 @ Nov 8 2006, 22:36) *

QUOTE(gob @ Nov 8 2006, 22:22) *

QUOTE(tool++ @ Nov 8 2006, 10:43) *

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. wink.gif 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.
jimbo11883
Yea, it wouldn't work because %_itemindex% and %_itemcount% wouldn't be available until after grouping.
2Pacalypse
[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
Spirit_of_the_ocean
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. smile.gif Maybe some could post it here or in the wiki
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.