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
blubbo
QUOTE(lemonka @ Oct 9 2006, 01:34) *
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
and here
lemonka
QUOTE(blubbo @ Oct 9 2006, 07:49) *

QUOTE(lemonka @ Oct 9 2006, 01:34) *
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
and here

txh i hope when i will have some time this will be useful biggrin.gif
Purple Monkey
QUOTE(...Just Elliott @ Oct 9 2006, 07:48) *



Doesn't work sad.gif


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... blink.gif
lemonka
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)
chaosblade
Already posted a few times, terrstrial hasn't responded yet.
mojomonkee
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

$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

$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%]
jaco
QUOTE(tool++ @ Sep 3 2006, 15:06) *
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 sad.gif

Windows Server 2003
Sempron 1.8GHz
1GB RAM
joule
QUOTE(mojomonkee @ Oct 10 2006, 09:20) *

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.)
rheuh
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, 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.
chaosblade
I'll just add thats possible by nature in vista, As it comes with its own advanced NTFS tools.
carmenm
QUOTE(rheuh @ Oct 10 2006, 08:08) *

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, 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
Yotsuya
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.
rheuh
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

$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

$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 ?
mojomonkee
QUOTE(joule @ Oct 10 2006, 01:06) *

QUOTE(mojomonkee @ Oct 10 2006, 09:20) *

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?
alphaex32
Is anyone else experiencing this bug? When I use quicksearch, the results look like this:
IPB Image
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!
Crayon
^ yup it seems a few people get that, just like me.
Shinsou
QUOTE(alphaex32 @ Oct 11 2006, 00:51) *

Is anyone else experiencing this bug? When I use quicksearch, the results look like this:
IPB Image
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
henn1ng
QUOTE(Yotsuya @ Oct 11 2006, 04:48) *

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 thread and making a feature request.



thats what im doing right now smile.gif

please add a feature to make the next track automatically show up in the middle of the panel.

brgds/ henn1ng
JzE
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
iOsiris
Never actually used quicksearch, but isn't the normal Ctrl+F faster? ;/
marc2003
QUOTE(JzE @ Oct 11 2006, 13:44) *

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%
botanicalstudyq
QUOTE(mojomonkee @ Oct 10 2006, 13:51) *


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

QUOTE(JzE @ Oct 11 2006, 06:44) *

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
$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.
lemonka
It would be nice if it there was possobility to export playlist look to html format with covers copied to same directory rolleyes.gif
terrestrial
updated with a couple of small bug fixes... haven't had time for too much else.
chaosblade
Thanks for your dedication, Though wink.gif

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.
Crayon
i think the MEIN problem for me got fixed, thanx alot. tongue.gif
blaxima
THANX terrestrial!!!!

I can see the fixes already!!
Shinsou
QUOTE(terrestrial @ Oct 12 2006, 18:34) *

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
terrestrial
what situation with autoplaylists?
alphaex32
Any chance buttons might be implemented soon? Oh, and thanks for fixing the quicksearch bug!
Coppertop
QUOTE(ChaosBladE @ Oct 12 2006, 18:52) *

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.
chaosblade
The extra item drawn crash bug seems to be gone, though.
4nt1
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
iOsiris
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
Shinsou
QUOTE(terrestrial @ Oct 12 2006, 19:28) *

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

IPB Image

I don't think it's the code, but here's what I'm using...

CODE

$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%)
)
Mr.Q
If i use Maxthon2.0, Os will game over happy.gif
Vrieskist
Hello and sorry for this post biggrin.gif

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts smile.gif

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.
Shinsou
QUOTE(Vrieskist @ Oct 14 2006, 14:50) *

Hello and sorry for this post biggrin.gif

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts smile.gif

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 wink.gif
Nickoladze
I keep getting this problem with the playlist:

IPB Image

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
...Just Elliott
update to latest version
Vrieskist
QUOTE(Shinsou @ Oct 14 2006, 16:18) *

QUOTE(Vrieskist @ Oct 14 2006, 14:50) *

Hello and sorry for this post biggrin.gif

I'm a big beginner on customizing foobar. But I just couldn't resist after seeing these nice single column layouts smile.gif

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

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.
Nickoladze
QUOTE(...Just Elliott @ Oct 14 2006, 11:25) *

update to latest version


I updated 2 days ago, has it changed since then?
chaosblade
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.
blaxima
@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
Nickoladze
i have 0.3.2beta [October 11 2006 - 22:00:56] installed
chaosblade
I still get those ghost items drawn sometimes though.
Nickoladze
I get it everytime i change columnui layouts, then randomly on other occasions
blaxima
QUOTE(ChaosBladE @ Oct 14 2006, 15:36) *

I still get those ghost items drawn sometimes though.



QUOTE(Nickoladze @ Oct 14 2006, 15:38) *

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 unsure.gif
acedriver
it's still there.. sad.gif
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.