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_playlist_tree (Read 712228 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_playlist_tree

Reply #1600
Permission problem has been fixed again.  I do not know of its a problem with my hosting or if someone hacked my ftp server, but it once again is working.
There used to be a link to my website here.

foo_playlist_tree

Reply #1601
@Chris (or Mr. Bowron)... I am using PTP in my PanelsUI, regardless of whether it causes flickers or not (worth it)... but my observation last night while working with it... it seems to me that Yes, the flickering/redraw problems are largely if not entirely corrected.  I really appreciate this!

 

And I have read some of the mzscheme coding, and will be playing with it sometime soon.  My concentration levels are frequently unhappily low, and it does take some concentration. 

One final note/question, would be, is there a page or location on your wiki (I have not found one) or would it not be helpful to have it, where useful and curious queries and formatting strings could be submitted?  Just a thought.

 

Thanks for your efforts.

foo_playlist_tree

Reply #1602
One final note/question, would be, is there a page or location on your wiki (I have not found one) or would it not be helpful to have it, where useful and curious queries and formatting strings could be submitted?  Just a thought.


Yes, at one point I had my wiki open, but I got a lot of advertising spam, so I closed it so only I can edit the pages.  If you have queries you would like to share, you can share them here or on my forum http://www.bowron.us/smf/... If I see stuff posted here that I think will have general appeal, I will post them to the wiki myself.

Thanks.
There used to be a link to my website here.

 

foo_playlist_tree

Reply #1604
Is there any way to do bitwise operations in the CRITERIA field?

I am trying to store a DWORD type var, so I want to do:

( %FIELD% & 2 ) GREATER 0

which would let me filter out bit 1, for example.

That query doesn't work tho. Can you help?

Thx

foo_playlist_tree

Reply #1605
Is there any way to do bitwise operations in the CRITERIA field?

I am trying to store a DWORD type var, so I want to do:

( %FIELD% & 2 ) GREATER 0


No, there's no built in way to use bitwise operations there.

If you wanted to try out the built in scheme interpreter, you would be able to do this, but it will be more complicated.
There used to be a link to my website here.

foo_playlist_tree

Reply #1606
cwboron, thx for your reply. I figured out a way to do it with the $mod function. However, something like:

$mod(%ipod_pl%,2) GREATER 0

does not work in the criteria field. Was it possible to do tagz function, or am I just behind on PT versions and it can be done now?

Thanks again

foo_playlist_tree

Reply #1607
New Release.  This adds the ability to script foobar2000 menu actions as well as interact with the playlists via the embedded scheme language.  You can also assign @scheme query refreshes to buttons to automate some stuff...

Quote
Release 3.0beta 3

    * GUID's for queries
    * main menu command for refreshing @scheme queries: Library/Playlist Tree/Refresh/* (you can refresh a query, for its side effects such as creating a new playlist and playing it with the new playlist interaction commands below)
    * for-each-playlist-entry can now take an integer playlist index OR a playlist name to specify which playlist
    * (in-library? handle)
    * (handle-test handle filter-string) - e.g. (handle-test handle "rating GREATER 3")
    * (mainmenu mainmenu-fun-string)
    * (playlist-contextmenu contextmenu-fn-string [playlist-index])
    * (contextmenu contextmenu-fn-string handle-list)
    * (playing-playlist)
    * (active-playlist)
    * (find-or-create-playlist name) => returns a playlist-index
    * (add-to-playlist handle [playlist-index] [item-index]) => if no playlist-index is specified, active playlist is assumed.
    * (clear-playlist [playlist-index])
    * (activate-playlist playlist-index)
    * (play-from-playlist [playlist-index] [item-index])

Examples of new features:
Code: [Select]
;;; Fill *Scheme* playlist with an hours worth 
(let ((playlist-index (find-or-create-playlist "*Scheme*"))
      (total-time 0))
  (clear-playlist playlist-index)
  (for-each-db-entry
  (lambda (handle)
    (let ((len (get-length handle)))
      (if (< (+ len total-time) (* 60 60))
  (begin
    (add-to-playlist handle playlist-index)
    (set! total-time (+ total-time len))))))
  "rating GREATER 3"
  "$rand()")
  (activate-playlist playlist-index)
  (play-from-playlist playlist-index))

Code: [Select]
;;; Show properties of all playlist entries
(let ((the-list (list)))
  (for-each-playlist
  (lambda (n)
    (for-each-playlist-entry
      n
      (lambda (handle)
(set! the-list
      (cons handle the-list))))))
  (contextmenu "Properties" the-list))
There used to be a link to my website here.

foo_playlist_tree

Reply #1608
hey cwbowron, if enough people are interested would it be possible to have a separate font dialog box for each playlist tree panel?

foo_playlist_tree

Reply #1609
I have a problem with this component.

I'm using the latest Panels UI and SCPL. I have a node for my complete database and 2 nodes for 2 musicfolders.

Normally when i click on a node it displays all the tracks of that node in SCPL. It only does now with one of the nodes (53 tracks total on that node).

The other 2 nodes (with about 6000 tracks each) don't send the tracks to SCPL when i click on them.

Can anyone help me?


EDIT:
When i start foobar my complete database is shown in SCPL.

Also when I click a node while im in another playlist it doesn't go to my *Browser* playlist. It only does that with one node and thats the one with 53 tracks.

EDIT2:
Nvm, I found an option that limits the number of files to 5000 under "mouse and keyboard". Strange place for that option but it solved my problem.

foo_playlist_tree

Reply #1610
Am I being stupid?  I loaded this plugin and I don't get the panel that all of the screenshots seem to show.  Is there some place I have to go to activate it?  I saw somewhere that you need to activate it in Columns UI but I don't know how do do that.

foo_playlist_tree

Reply #1611
Am I being stupid?  I loaded this plugin and I don't get the panel that all of the screenshots seem to show.  Is there some place I have to go to activate it?  I saw somewhere that you need to activate it in Columns UI but I don't know how do do that.


If your main UI is ColumnsUI, any panel must be added to the panel layout, under Preferences/ColumnsUI/Layout.  If you are just getting started, it does (I found, anyway) take a while of playing with that, to get what you want.

If you are instead using PanelsUI, you must, in your main PanelsUI config (also under preferences), load and show any panel, with the $panel() function.

These things apply to any panel, not specifically PTP.

Best...

foo_playlist_tree

Reply #1612
This looks like it i sgoing to be a very powerful component - once the scheme language is understood.


Meanwhile, I'm trying to build an index of artists which includes them twice - once as

      John Smith

and once as

        Smith, John


No problem getting either way (using ordinary PTP queries) but I can't seem to combine them in a single query. Any ideas?

foo_playlist_tree

Reply #1613
Are there any good tutorials for the new scheme language you're using? I'm curious about how powerful it is. Can it, for example, rename and move files between playlists automatically?

foo_playlist_tree

Reply #1614
Are there any good tutorials for the new scheme language you're using? I'm curious about how powerful it is. Can it, for example, rename and move files between playlists automatically?


Theres a lot of stuff on the mzscheme web site but it gets very complex , very quickly! It seems very abstract and extremely powerful but I haven't found it very easy to pick up.

I'm trying to generate and activate a single playlist named with the name of the now playing track and containing all versions of the current playing track.... I've based code on the examples provided to generate most of the pieces required (- now playing details, db query, etc.)  but combining them is proving to be a  nightmare!

Anyone have any examples?

foo_playlist_tree

Reply #1615
I'm using a tag, INVOLVED PEOPLE LIST, to display info about all involved people (duh). The syntax I use is

name1 (role1); name2 (role2); name3 (role3);

etc. Now, I want to make a query in foo_playlist_tree that displays all the different persons. If I just use %involved people list%, I get a single record with all of the involved people for any given track, and not one record for each person. Does anybody know how I can do this? (I only want the names, not the names and the roles.)

It gets more advanced after that - I want sub"folders" with their roles, and after that, various albums or something like that. I can do the latter myself, but how do I extract what is within each parenthesis?

foo_playlist_tree

Reply #1616
I'm using a tag, INVOLVED PEOPLE LIST, to display info about all involved people (duh). The syntax I use is

name1 (role1); name2 (role2); name3 (role3);

etc. Now, I want to make a query in foo_playlist_tree that displays all the different persons. If I just use %involved people list%, I get a single record with all of the involved people for any given track, and not one record for each person. Does anybody know how I can do this? (I only want the names, not the names and the roles.)

It gets more advanced after that - I want sub"folders" with their roles, and after that, various albums or something like that. I can do the latter myself, but how do I extract what is within each parenthesis?


Are you trying to do this using only the foobar2000 titleformatting stuff, or are you doing it in scheme?
There used to be a link to my website here.

foo_playlist_tree

Reply #1617
Are you trying to do this using only the foobar2000 titleformatting stuff, or are you doing it in scheme?

What's scheme? Let's go for foobar2000 titleformatting.  Unless it's impossible, of course. I'm not familiar with scheme.

foo_playlist_tree

Reply #1618

Are you trying to do this using only the foobar2000 titleformatting stuff, or are you doing it in scheme?

What's scheme? Let's go for foobar2000 titleformatting.  Unless it's impossible, of course. I'm not familiar with scheme.


There's a built in Scheme interpreter in Playlist Tree these days for really advanced quieries.

I don't know that your problem can be solved using regular titleformatting, but I know that it can using scheme, as I did something similar for a user on the playlist tree forum.
There used to be a link to my website here.

foo_playlist_tree

Reply #1619
I'm having problems getting this to work with PanelsUI v0.9. I've installed the component and the library dlls in the correct places and the component options are there in the preferences.

From here I go to edit my layout and include a panel using $panel and making the panel Playlist Tree. When I click OK or Apply things go crazy, CPU usage jumps to 99% and fb2k's footprint starts rising rapidly. The pop-up asking for me to join the user map appears but I cannot click yes or no on it. I try waiting a while but the memory usage hits 300mb and fb2k says it's not responding so I have to stop the process from running.

Is there a fix to this, what's the likely cause? Are there known component incompatibilities?

foo_playlist_tree

Reply #1620
@fofr

i have the same problem. the pop up about the map appears, and then another one pops up and it keeps going until i ctrl alt del foobar.

foo_playlist_tree

Reply #1621
I'm having problems getting this to work with PanelsUI v0.9. I've installed the component and the library dlls in the correct places and the component options are there in the preferences.

From here I go to edit my layout and include a panel using $panel and making the panel Playlist Tree. When I click OK or Apply things go crazy, CPU usage jumps to 99% and fb2k's footprint starts rising rapidly. The pop-up asking for me to join the user map appears but I cannot click yes or no on it. I try waiting a while but the memory usage hits 300mb and fb2k says it's not responding so I have to stop the process from running.

Is there a fix to this, what's the likely cause? Are there known component incompatibilities?


There were a few issues with ghosted windows and such in PTP and Browser, but I had thought that they were fixed.

I personally don't use Panels UI so I don't really know what's going on... I test Playlist Tree with columns ui and my own foo_dock plugin.
There used to be a link to my website here.

foo_playlist_tree

Reply #1622
When I go to view > dockable panels > new. Then in that panel select Playlist tree I get a massive cpu spike but then the panel loads. From there, if I load up a Playlist Tree Panel in PanelsUI I get a small CPU spike but then everything is ok.

PUI may simply not like the alert the panel throws up.

foo_playlist_tree

Reply #1623
Hello, I have tried to find it myself but didn't. It's probably pretty easy to do, I hope so =)

I want the playlist tree to act as the normal playlist view, so that when i click on anything in it it shows up in my SCPL.

I also have sorted my playlists with either -s- or -a- so that it views either album view or single view. I would want it to be so in the playlist tree too.

As it is now I have to middle click and then go through context menu to add it to a real playlist and it doesn't change view if I have -a- or -s-.

Any solution?

foo_playlist_tree

Reply #1624
Is there a way to send different queries to different playlists? I see that Scheme has:

Code: [Select]
(add-to-playlist handle [playlist-index] [item-index]) => if no playlist-index is specified, active playlist is assumed.


But I am not sure how I would implement that with a mouse or keyboard action.