Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_uie_single_column_playlist (Read 737568 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_single_column_playlist

Reply #450
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.
err... i'm not using windows any more ;)

foo_uie_single_column_playlist

Reply #451
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!


foo_uie_single_column_playlist

Reply #453
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.

foo_uie_single_column_playlist

Reply #454
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),)

foo_uie_single_column_playlist

Reply #455

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:


Here is a view of a random playlist:



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!

foo_uie_single_column_playlist

Reply #456
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.

foo_uie_single_column_playlist

Reply #457
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?

foo_uie_single_column_playlist

Reply #458
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?

foo_uie_single_column_playlist

Reply #459
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?

foo_uie_single_column_playlist

Reply #460
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

foo_uie_single_column_playlist

Reply #461
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.

foo_uie_single_column_playlist

Reply #462
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?

foo_uie_single_column_playlist

Reply #463
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.

foo_uie_single_column_playlist

Reply #464
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?

foo_uie_single_column_playlist

Reply #465
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.

foo_uie_single_column_playlist

Reply #466
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.

foo_uie_single_column_playlist

Reply #467
I made a reflect below the covers :



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 :


foo_uie_single_column_playlist

Reply #468
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

foo_uie_single_column_playlist

Reply #469
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 ...

foo_uie_single_column_playlist

Reply #470
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......



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
)

foo_uie_single_column_playlist

Reply #471
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.

foo_uie_single_column_playlist

Reply #472
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

foo_uie_single_column_playlist

Reply #473
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?


^^

foo_uie_single_column_playlist

Reply #474
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