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 739439 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #376
um.. I upgraded and all my settings carried over including row heigh and background color ... did I get lucky?

foo_uie_single_column_playlist

Reply #377
maybe.. or your settings could have been the same as the defaults.

foo_uie_single_column_playlist

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


foo_uie_single_column_playlist

Reply #379
My settings did not get erased either, and they are not the default ones. *shrug*

Great update! =)

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

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




same behavior here

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #385

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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #388
on my foobar single colum playlist is very slow... when i add more songs, scrolling them takes some time... is it normal?

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #390
@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

foo_uie_single_column_playlist

Reply #391
I can confirm here.



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.

 

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #393


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.


foo_uie_single_column_playlist

Reply #395
@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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

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

foo_uie_single_column_playlist

Reply #398
it should be !noheader!. if that is the result of the group by value, then the header is not displayed.

foo_uie_single_column_playlist

Reply #399
Thanks for the clarification, this worked well for me as the "Group By" string:

$if(%tracknumber%,%album%%discnumber%,!noheader!)