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
FofR
is it possible to get an updated version that has the rotate image function within it?
uac marine
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?
Yotsuya
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
%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.
uac marine
Thank you, it works smile.gif
blaxima
QUOTE(CepiPerez @ Dec 5 2006, 23:51) *

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
Yotsuya
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
// 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.
stampgevaar
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?
Yotsuya
stampgevaar: keep holding ctrl when you right click
stampgevaar
hehe nice didn't figured that out myself biggrin.gif
Sihkih
is there any chance to get total time of items in the grup?
Nickoladze
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...
eejadx
QUOTE(Nickoladze @ Dec 10 2006, 23:19) *
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.
Nickoladze
QUOTE(eejadx @ Dec 10 2006, 23:53) *

QUOTE(Nickoladze @ Dec 10 2006, 23:19) *
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. >_<
Fresh
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...
Purple Monkey
QUOTE(Nickoladze @ Dec 11 2006, 05:08) *


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:".
sPeziFisH
@ 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
4nt1
please terrestrial update single columns with the rotate flip stuff from trackinfo...
Fresh
QUOTE(sPeziFisH @ Dec 11 2006, 19:39) *

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...
sPeziFisH
QUOTE(Fresh @ Dec 11 2006, 21:22) *
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 wink.gif

edit: typo
Spirit_of_the_ocean
Hey this helped me to solve a problem smile.gif
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 biggrin.gif
walla
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 laugh.gif .

btw: Is the sourcecode somewhere available for download?
Purple Monkey
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.
crackpirate
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?
2Pacalypse
QUOTE(crackpirate @ Dec 13 2006, 11:21) *

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
crackpirate
QUOTE(2Pacalypse @ Dec 13 2006, 05:32) *

QUOTE(crackpirate @ Dec 13 2006, 11:21) *

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 biggrin.gif
unprefaced
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
eejadx
QUOTE(unprefaced @ Dec 15 2006, 11:01) *
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.
VeaaC
Displaying the same image twice with different scaling seems to fail the second time.
Nickoladze
QUOTE(VeaaC @ Dec 16 2006, 14:20) *

Displaying the same image twice with different scaling seems to fail the second time.


yep I said that a few pages ago
stampgevaar
Isn't it possible to do buttons in the single column playlist ?? would be very nice to do ratings, search for info etc
2Pacalypse
QUOTE(stampgevaar @ Dec 18 2006, 11:41) *

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
rouge
QUOTE(eejadx @ Dec 15 2006, 12:03) *

QUOTE(unprefaced @ Dec 15 2006, 11:01) *
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.
MyMaster
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')')),
)
Yotsuya
QUOTE(rouge @ Dec 19 2006, 05:32) *
%_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
4nt1
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
Lyx
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.
eejadx
QUOTE(MyMaster @ Dec 19 2006, 19:03) *
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:

QUOTE(terrestrial @ Dec 13 2006, 21:56) *
QUOTE(eejadx @ Dec 13 2006, 20:14) *
CODE
$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.

QUOTE(eejadx @ Dec 13 2006, 20:14) *
CODE
$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.


smile.gif
chaosblade
QUOTE(Lyx @ Dec 20 2006, 19:57) *

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.
MyMaster
absolute path worked, thank you

QUOTE(eejadx @ Dec 20 2006, 10:13) *

QUOTE(MyMaster @ Dec 19 2006, 19:03) *
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:

QUOTE(terrestrial @ Dec 13 2006, 21:56) *
QUOTE(eejadx @ Dec 13 2006, 20:14) *
CODE
$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.

QUOTE(eejadx @ Dec 13 2006, 20:14) *
CODE
$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.


smile.gif

Mangix
sooo, is there any way to sort the stuff on the plugin without re-adding/manually moving the items?
eejadx
Nope, no built-in sorting system yet. You can specify a custom sorting string in foobar preferences though. It works.
Mangix
where in the preferences?
eejadx
Preference > General > Sort incoming files by

This is what I use:
CODE
$if($if3($meta_test(album artist),%VARIOUS%,),Various Artists,%ARTIST%) - $if(%TRACKNUMBER%,%DATE% - %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - )%TITLE%
nbv4
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?
Mangix
QUOTE(eejadx @ Dec 20 2006, 20:43) *

Preference > General > Sort incoming files by

This is what I use:
CODE
$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 wink.gif. 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 sad.gif
eejadx
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
*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.
kockroach
QUOTE(Mangix @ Dec 20 2006, 23:19) *

QUOTE(eejadx @ Dec 20 2006, 20:43) *

Preference > General > Sort incoming files by

This is what I use:
CODE
$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 wink.gif. 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 sad.gif

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).
Mangix
ty. that is EXACTLY what i was looking for smile.gif
Silverbolt
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.
Mangix
doesn't happen here...

edit: using 0.5.4 btw
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.