Help - Search - Members - Calendar
Full Version: foo_playlist_tree
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, 29, 30, 31, 32, 33, 34, 35, 36, 37
TomBarlow
Nevermind, I read the readme and managed to solve my own problem!
qiru
Could anyone re-upload the foo_playlist_tree source code or email a copy to me? Thanks.
pIv
cwbowron

In last betas (0.95b7 and 0.95b8) Peter delete function $rand() from supported functions list and random queries not worked now.

It is possible support random queries without using internal function of fobar2000 and can you create you own $rand() as internal in foo_playlist_tree.dll?
cwbowron
QUOTE(pIv @ Dec 19 2007, 04:15) *

cwbowron

In last betas (0.95b7 and 0.95b8) Peter delete function $rand() from supported functions list and random queries not worked now.

It is possible support random queries without using internal function of fobar2000 and can you create you own $rand() as internal in foo_playlist_tree.dll?


if it still is unsupported when the official 0.9.5 is released (non-beta) I'll do something.

In the mean time, you could use a scheme query and use the scheme (rand) function which returns a floating point value between 0-1
pIv
In beta 9 funcyion $rand() not supported too.

By me it is very good solution add function $cwb_rand(), if Peter not want to support $rand() function.

Without this function foo_playlist_tree is lost it usefulness as 50% minimum.
ssteven
Anyone have a mirror? Seems like the main site download is down
cwbowron
QUOTE(pIv @ Dec 24 2007, 14:16) *

In beta 9 funcyion $rand() not supported too.

By me it is very good solution add function $cwb_rand(), if Peter not want to support $rand() function.

Without this function foo_playlist_tree is lost it usefulness as 50% minimum.


I added $cwb_rand() to foo_cwb_hooks today.
msobetzko
QUOTE(cwbowron @ Jan 2 2008, 13:11) *

QUOTE(pIv @ Dec 24 2007, 14:16) *

In beta 9 funcyion $rand() not supported too.

By me it is very good solution add function $cwb_rand(), if Peter not want to support $rand() function.

Without this function foo_playlist_tree is lost it usefulness as 50% minimum.


I added $cwb_rand() to foo_cwb_hooks today.


I have been using foo_playlist_tree in 9.4 and love it. Is it possible to use in the 9.5 default UI?
pIv
QUOTE(cwbowron @ Jan 2 2008, 13:11) *

QUOTE(pIv @ Dec 24 2007, 14:16) *

In beta 9 funcyion $rand() not supported too.

By me it is very good solution add function $cwb_rand(), if Peter not want to support $rand() function.

Without this function foo_playlist_tree is lost it usefulness as 50% minimum.


I added $cwb_rand() to foo_cwb_hooks today.


Big thanks to you from me!
ssteven
QUOTE(ssteven @ Jan 2 2008, 13:03) *

Anyone have a mirror? Seems like the main site download is down


My post seemed to have been ignored! Does the link from http://wiki.bowron.us/index.php/Playlist_Tree work for anyone else?
cwbowron
QUOTE(ssteven @ Jan 3 2008, 20:18) *

My post seemed to have been ignored! Does the link from http://wiki.bowron.us/index.php/Playlist_Tree work for anyone else?


Sorry the link in the first post was old.

Get it from here:

http://www.bazquux.com/wiki/Foobar2000:Playlist_Tree
vigge
Being able to hide a node completely (not just it's childnodes) would be very nice, unless I am missing something the @hidden "functions" only hide the current nodes children.

Edit: One more thing - I'm getting flickering of various degrees most of the times a query is run. It gets really annoying when using a dark background for the tree panel (white stripes/blocks appearing and disappearing ><). I don't have any idea of how the panel gets redrawn (haven't got much experience in Windows UI programming), but could the flicking possibly be resolved by repainting the panel with the background color before "the big redraw"?
Edit #2: Apparentely one of the queries had autorefresh turned on, with them off I'm only getting giant white flicker while updating the queries which generate long lists.
Edit #3: Hmm or not, flickering is back again =(
Edit #4: Resizing also results in alot of flickering
cybasoul
Ive been going through the thread's posts and the tutorial page, and I must say that scripting the query scheme is quiet over whelming. I even read some introductions to Scheme and Lambda programing, yet it still doesnt make perfect sense, its damn over whelming. huh.gif

Anyway, I have not given up yet, but I really need a scheme that will do the following:

Display only a list of playlists who's names end with "-C".
So that when I have the following playlists shown in "Playlist Switcher":

1. *FILTER*
2. *Browser*
3. *90's Hip Hop*
4. *90's R&B*
5. *100 Most Played*
6. Deep House -C
7. Neo Soul -C
8. Jaz -C

Then only the following playlist should be shown in "Playlist Tree Panel":

Deep House -C
Neo Soul -C
Jaz -C

Can this be done? Can someone please have a go at this and let me know if it can be done, and of cause tell me how to go about, with out sending me to the example page again.

Thanks in advance.

Oh, can the results on the scheme get displayed without the suffix "-C":
So that the scheme looks for playlists who's names end with "-C" but only labels them without the "-C"
cwbowron
QUOTE(cybasoul @ Feb 13 2008, 05:50) *

Display only a list of playlists who's names end with "-C".

...

Oh, can the results on the scheme get displayed without the suffix "-C":
So that the scheme looks for playlists who's names end with "-C" but only labels them without the "-C"


this should be pretty close to what you want:

CODE
(for-each-playlist
(lambda (playlist)
(let ((len (string-length playlist)))
(when (> len 2)
(let ((suffix (substring playlist (- len 2) len)))
(when (equal? suffix "-C")
(let ((shortened (substring playlist 0 (- len 2))))
(for-each-playlist-entry
playlist
(lambda (entry)
(add-node
entry
(list shortened
(format-title entry "%artist% - %title%"))))))))))))

cybasoul
QUOTE(cwbowron @ Feb 13 2008, 08:20) *

this should be pretty close to what you want:

CODE
(for-each-playlist
(lambda (playlist)
(let ((len (string-length playlist)))
(when (> len 2)
(let ((suffix (substring playlist (- len 2) len)))
(when (equal? suffix "-C")
(let ((shortened (substring playlist 0 (- len 2))))
(for-each-playlist-entry
playlist
(lambda (entry)
(add-node
entry
(list shortened
(format-title entry "%artist% - %title%"))))))))))))



Thanks for your quick reply, but did you get to test the scheme, because it does not do any thing when I try it.
cwbowron
QUOTE(cybasoul @ Feb 14 2008, 03:44) *
Thanks for your quick reply, but did you get to test the scheme, because it does not do any thing when I try it.


Yes, I tested it. I'm not sure why it wouldnt work for you.
cwbowron
release 3.0.5 fixes a bug that appears with 9.5.1 betas

* added context menu item: Send to library playlist (Selected)
* fixed a bug in context menu items that caused a crash with 9.5.1 beta
Reflection
QUOTE(fabiospark @ Sep 16 2006, 13:22) *

If I hide both the lines and the root node the + disappears and I can't use the tree.

---------

It seems %__replaygain_track_gain% (even without the %%) is not considered in the criteria box.
It works in the format, instead.
Am I wrong or should I use some other formatting in the criteria box?


Thanks.

I've searched everywhere and still can't figure this out. I would like to use the criteria field to find all tracks that have no replay gain applied. Does anyone know how I can accomplish this?

Thanks.
amiti
Hello , I remember There was an option for viewing the tracks as they are organized in the harddrive as folder tree. Can you remind me please how it is done?

Thanks.
cwbowron
QUOTE(amiti @ Feb 25 2008, 17:33) *
Hello , I remember There was an option for viewing the tracks as they are organized in the harddrive as folder tree. Can you remind me please how it is done?


This is probably what you are looking for:

http://www.bazquux.com/wiki/Example_Queries#Using_Drop_Query
amiti
Thanks , cwbowron.
Is it only possible to see the actual folder organization in hard drive when using @drop ? I was trying this with @database earlier with no success.
cwbowron
QUOTE(amiti @ Feb 26 2008, 09:54) *
Is it only possible to see the actual folder organization in hard drive when using @drop ? I was trying this with @database earlier with no success.


Take a look at the next query on that page too... basically you can use $replace(%path%,\,|) as your format.
amiti
Thank you smile.gif
antar3s
QUOTE(Reflection @ Feb 24 2008, 23:56) *

QUOTE(fabiospark @ Sep 16 2006, 13:22) *

If I hide both the lines and the root node the + disappears and I can't use the tree.

---------

It seems %__replaygain_track_gain% (even without the %%) is not considered in the criteria box.
It works in the format, instead.
Am I wrong or should I use some other formatting in the criteria box?


Thanks.

I've searched everywhere and still can't figure this out. I would like to use the criteria field to find all tracks that have no replay gain applied. Does anyone know how I can accomplish this?

Thanks.


this works for me:
NOT %__replaygain_track_gain% HAS .
antar3s
QUOTE(vigge @ Feb 8 2008, 19:32) *

Being able to hide a node completely (not just it's childnodes) would be very nice, unless I am missing something the @hidden "functions" only hide the current nodes children.


with @hidden2 you can hide entire nodes. just make sure there is a space after hidden2, otherwise it doesn't work for me. and the odd thing is after restarting foobar the nodes are back again, refreshing the query hides them again.
eg this code hides all nodes that have only one item:
'@format<$ifgreater(%_itemcount%,1,,@hidden2 )>'
vigge
QUOTE(antar3s @ Feb 28 2008, 14:53) *

with @hidden2 you can hide entire nodes. just make sure there is a space after hidden2, otherwise it doesn't work for me. and the odd thing is after restarting foobar the nodes are back again, refreshing the query hides them again.
eg this code hides all nodes that have only one item:
'@format<$ifgreater(%_itemcount%,1,,@hidden2 )>'


Unfortunately it doesn't work very well with what I was trying to accomplish:
CODE
%album%
@quote<@format<$ifgreater(%_itemcount%,1,,@hidden2 )>>
|
%title%

Hides every node, I guess due to all nodes starting out with 0 items when they're being created.

CODE
%album%
@quote<@format<$ifgreater(%_itemcount%,1,,@hidden )>>
|
%title%

Renders nodes with only 1 item unexpandable and leaves the rest. They're still visible though, I want the ones with less than a specified number of subitems to be hidden =/
antar3s
QUOTE(vigge @ Feb 28 2008, 21:12) *

Unfortunately it doesn't work very well with what I was trying to accomplish:
CODE
%album%
@quote<@format<$ifgreater(%_itemcount%,1,,@hidden2 )>>
|
%title%

Hides every node, I guess due to all nodes starting out with 0 items when they're being created.

CODE
%album%
@quote<@format<$ifgreater(%_itemcount%,1,,@hidden )>>
|
%title%

Renders nodes with only 1 item unexpandable and leaves the rest. They're still visible though, I want the ones with less than a specified number of subitems to be hidden =/


interestingly enough: i tested it again and found that it's only working if 'sort by display name when populating' is enabled!!! i'm not sure if this is a bug or a feature wink.gif

i guess this would be what you want:
CODE

'@format<$ifgreater(%_itemcount%,1,,@hidden2 )>' %album%|%title%
Xezzy
EDIT: When I send to current playlist I cant focus on current playling track, if it was in previous playlist. Cant play previous track either. Is there a walkaround for this?
Xezzy
Oh, I found the way to get focus. Back button doesnt work (as previous PLAYING) anyway, I think its not doable o.0

EDIT: sorry for previous double post, it wasnt intentional.
Ive read on your page that adding file to playlist through tree playlist is requested, but only for @drop'ed folders. Hope it will be good for source: @playlist<x> either :]

EDIT2: IMHO @node doesnt work properly, it should use only %_name% of query to determine node. Be cause my queries looks like this:

%_name% '('%_itemcount%')'

its impossible to create @node o.0

EDIT3(lol): Why I cant limit by size if I want more than 2gb? 26 gb for ex.?
Xezzy
So any1 knows how to bypass this silly 2gb limitation? I want to create playlist restriced by size. Maybe there are other plugins that can do that?
antar3s
QUOTE(Xezzy @ Mar 5 2008, 18:38) *

EDIT2: IMHO @node doesnt work properly, it should use only %_name% of query to determine node. Be cause my queries looks like this:

%_name% '('%_itemcount%')'

its impossible to create @node o.0

EDIT3(lol): Why I cant limit by size if I want more than 2gb? 26 gb for ex.?


For the size limitation i suggest to use a @scheme query, like the one in this post from cwbowron.
Xezzy
Uhm, thank you, I will try to make it work smile.gif
<No luck yet tongue.gif>
the in sound from way out
Hi all,

I'm looking for a way to index leaves inside the Playlist Tree.

E.g., for a "most played" query, I'd like to get:

1. Artist - song
2. Artist - song
3. ...
4. and so on...

Is it possible?

Thanks
Xezzy
Edit query and type %artist% - %title% in format box.
Xezzy
It looks like playlist tree can run schemes at startup. Is it possible to write scheme which would change background color? (depending on cwb_systemdatetime in my case...)
shakey_snake
Um... No.
Playlist tree is only runs schemes that deal with (surprise!) playlists.
the in sound from way out
QUOTE(Xezzy @ Mar 14 2008, 03:34) *

Edit query and type %artist% - %title% in format box.
I'll try to make myself clearer.

I already get:

artist - title
artist - title
artist - title

I'm trying to get:

1. artist - title
2. artist - title
3. artist - title


Thx for your help. smile.gif
püppchen
Hi.
Is there any collection of schemes which are usefull and used very often? I'm looking for a scheme to fill my Ipod. But I don't want to fill it with random tracks. Moreover I want to fill it with random albums. Maybe in this way: Pick a random track, look if it's allready in the tracklist, in case not, add the whole album. Is this possible? I'm not into deep with the scheme language yet. Is there anyone who made something similar?

Cheers
Keikonium
Is it just me or can playlists ONLY be made consisting of up to 2047 MB? I can't seem to make a playlist filled with random songs that is 2 GB or more sad.gif.

Any help?
Totyo
When I am trying to add my music folder with @drop<> and while it processes the files, foobar2000.exe is trying to connect several times to the internet and if I block it in my firewall it crashes saying:

Unhandled exception : Could not connect to host

and also: it would be cool to lock playlist to a query (creating an autoplaylist)
scars
Hi all,

im using playlist tree with my foobar2000 - great plugin, now ive tried to use a query for my albums, that updates itself if ill add new albums to the folder...

for example this is the folder:

CODE
Albums
+Artist
|   +Album1
|   |       Song1
|   |       Song2
|   |      
|   +Album2
|           Song1
|           Song2
|          
+Artist2
    +Album1
    |       Song1
    |       Song2
    |      
    +Album2
            Song1
            Song2


So if i use this folder with the @drop command the songs are listet but without their subfolders

CODE
Albums
Song1
Song2
Song1
Song2
Song1
Song2
Song1
Song2


Is it possible that he also shows the subfolders ?

thanks smile.gif
gob
i upgraded from an athlon xp 2500+ (barton) to an athlon 64 x2 4200+. i have a total of 13,033 tracks and 5 queries. it literally took 45 seconds to refresh all the trees, now it takes 5 seconds.

im used to doing other things while i waited for this and now i dont have time. would it be possible to add a delay so the refresh process takes longer? lalala.gif
Kiteroa
In scheme queries, is there away to get hold of the tracks in the Playback Queue?
jbk_atl
Great Plugin ........ couple of questions / suggestions

* would be cool to change icons individually if possible as opposed to being limited to folder / leaf

* also, could you make it so you can use .png files as well

Thanks
metal_termite
I do not have Automatically Refresh enabled on any queries/folders. Each time there is a track change, the component blinks; I assume its redrawing itself. Is that normal behavior or is it just me? If it is normal it would be nice if the redraw was optimized so it didn't blink.

PS +1 to the previous post regarding PNG's.
Arithmomaniac
The $rand() function for Population Order stopped working for me. Is this a known problem?
Relevant extensions:

foobar2000 core 0.9.5.1
Playlist Tree Panel 3.0.4 [Aug 2 2007 - 10:16:21]
Randomized Playlist Entry 1.2.3
Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
Columns UI 0.2
Default User Interface 0.9.5
cwbowron
QUOTE(Arithmomaniac @ Apr 13 2008, 18:29) *

The $rand() function for Population Order stopped working for me. Is this a known problem?


It was removed from foobar2000.

If you use foo_cwb_hooks, you can get the latest and use the $cwb_rand() function instead.
Arithmomaniac
QUOTE
was removed from foobar2000.

If you use foo_cwb_hooks, you can get the latest and use the $cwb_rand() function instead.


Thanks.
Arithmomaniac
Keikonium
cwbowron,

Is there a reason that playlist tree can only create random playlists up to 2047 MB in size, and no higher?

~ Kei
Kiteroa
QUOTE(Kiteroa @ Apr 5 2008, 18:11) *

In scheme queries, is there away to get hold of the tracks in the Playback Queue?


Found it:

(for-each-queue-entry fn)


But I am also trying to refer to a node using

(for-each-node-entry node-name fn)

but cannot get the syntax right to refer to a (sub-)node in a different playlist tree. Anyone know how?

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.