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: Playlist-Tools-SMP (Read 64436 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Playlist-Tools-SMP

Reply #200

Have received a reply which addresses in part the problems compiling GAIA:
https://community.metabrainz.org/t/acousticbrainz-submissions-data-dumps-and-next-steps/589843/9?u=isabelxxx

There is an Update static builds for Qt 5.15.6 but only for debian_3rdparty.
The win32 build script still lack support for gaia, qt or tensorflow.
Maybe the gaia 2.4.7 release (or new updates) changes that.....
Thought this:
https://github.com/MTG/gaia/pull/92
Would be reused on Essentia too.

Anyway will continue whining about it, maybe someday they fix it XD I don't get how they can simply ignore binaries not being available on Windows for years...

Re: Playlist-Tools-SMP

Reply #201
Thought this:
https://github.com/MTG/gaia/pull/92
Would be reused on Essentia too.

Anyway will continue whining about it, maybe someday they fix it XD I don't get how they can simply ignore binaries not being available on Windows for years...

But still lack of cross-compiling for windows. Only offer qtcreator.

Code: [Select]
    if not sys.platform.startswith('linux') and sys.platform != 'darwin':
        print('Please use the QtCreator project for building Gaia in Windows...')
        sys.exit(1)

Maybe in the future they include it and could be included in the essentia build script, but for now we are in the same spot. It is easier to build for linux in modern distribution but still no option to build binaries for windows with gaia.
Maybe could be possible to use these binaries to link against essentia for a custom static build, but this is way above me.

Re: Playlist-Tools-SMP

Reply #202
A small gif to show how the buttons work now:
[attach type=image]20273[/attach]

Everything is now configurable on the bar, either with menus or properties.
What is "the bar"? Is it this thing?


And if so, is that another SMP panel? How do I get one of those up there? I can only figure out how to add SMP panels to the main UI, like with tabs etc.

Basically, I still can't work out how to have a Playlist Manager button instead of this:

Re: Playlist-Tools-SMP

Reply #203
Read the readme pdf installation instructions (just added it a week ago). Toolbar panels are only available in CUI.

But anyway nothing stops you to set the panel height to a bar size, and put such panel at top below native toolbars.


Re: Playlist-Tools-SMP

Reply #205
Panel size is configurable, and layout position is up to you. Don't really see a problem. I you don't like having a big empty panel with small buttons, just make the panel smaller (?)

Re: Playlist-Tools-SMP

Reply #206
Panel size is configurable, and layout position is up to you. Don't really see a problem. I you don't like having a big empty panel with small buttons, just make the panel smaller (?)
Oh yeah. Got it! Now I've got to work out how and where to put it. Thanks.

EDIT: Success!


Re: Playlist-Tools-SMP

Reply #208
1. How do we change the queries that are used, for example, in Quicksearch>Same date (where I'd like one to show "Same ORIGINAL RELEASE DATE") or in Playlist Tools>Top rated from 2023?

2.
Quote
- Dynamic variables are allowed too, enclosed on '#': #ARTIST#,
#$year(%date%)#, ...

- Standard queries may be added -only- to the end of a dynamic query expression.

Merging standard and dynamic variables like 'GENRE IS #GENRE# AND NOT
(%rating% EQUAL 2 OR %rating% EQUAL 1)' would translate into
'(GENRE IS Psychedelic Rock) AND (GENRE IS Hard Rock) AND NOT (%rating%
EQUAL 2 OR %rating% EQUAL 1)'. Note the standard query expression is
added at the end
.

Sorry, I'm not understanding what the terms "standard query", "Dynamic variable" or "dynamic query
expression".

In
Quote
(GENRE IS Psychedelic Rock) AND (GENRE IS Hard Rock) AND NOT (%rating% EQUAL 2 OR %rating% EQUAL 1)
... I can't see what is "dynamic" in NOT (%rating% EQUAL 2 OR %rating% EQUAL 1) that isn't in (GENRE IS Psychedelic Rock) AND (GENRE IS Hard Rock)?

So if I make my own, I don't know which bit to put at the end.

I'm asking these silly little questions because I think that at some point, once I've got some basic things in my head, a whole lot more will suddenly become clear.

At the moment, I just can't do anything apart from very basic usage of some of Playlist Tools and Quicksearch.

3. Is it possible change the text of the buttons?

4. When all the buttons don't fit in the SMP panel, the row of buttons changes from this


to this


Is that a SMP limitation?

Re: Playlist-Tools-SMP

Reply #209
Quote
1. How do we change the queries that are used, for example, in Quicksearch>Same date (where I'd like one to show "Same ORIGINAL RELEASE DATE") or in Playlist Tools>Top rated from 2023?
- You don't. Use Playlist Tools/Dynamic queries for that, where you can add and save your own expressions.
- Use 'from year entry...' No need at all to complicate it with custom entries. You don't like that, add a 'search top tracks from date' button and configure the date.

2.
Quote
- Dynamic variables are allowed too, enclosed on '#': #ARTIST#,
#$year(%date%)#, ...

orry, I'm not understanding what the terms "standard query", "Dynamic variable" or "dynamic query
expression".
I think the docs are clear enough in this case, with multiple examples, and you are overthinking. Test with your files and check the console log to see the results and experiment yourself.

GENRE IS #GENRE# -> (GENRE IS Psychedelic Rock) AND (GENRE IS Hard Rock)
GENRE IS #GENRE# AND NOT (%rating% EQUAL 2 OR %rating% EQUAL 1) ->  ((GENRE IS Psychedelic Rock) AND (GENRE IS Hard Rock))  AND NOT (%rating% EQUAL 2 OR %rating% EQUAL 1)

What is a dynamic variable is clearly stated in the readme. Standard query, as the name implies, clearly are native/usual/standard queries XD
And dynamic queries, obviously, are queries with dynamic variables.

Quote
3. Is it possible change the text of the buttons?
It's possible on the customizable buttons which already show such option. What you see is what you get.

I plan to add an icon-only mode, but I don't see the point on renaming generic buttons (it would be like renaming the main File menu to other thing).

Quote
4. When all the buttons don't fit in the SMP panel, the row of buttons changes from this
Color switches to white? I can not reproduce that in any way. Please provide me a gif showing it, your OS, SMP version and foobar version. (And I assume it's in DUI)

I don't really have time to explain basic things, I have spent a lot of time creating the readmes and making thing as intuitive as possible. So please, test things by yourself, read the docs, test things again and only if you have specific questions to achieve X, I can help. If you find something not properly explained, let me know. But don't expect me to guide you on every step when you can learn by doing.

While I understand some people doesn't have much experience with these things, a high number of your questions are answered at the docs most of the times.

Re: Playlist-Tools-SMP

Reply #210
Quote
How do we change the queries that are used, for example, in Quicksearch>Same date (where I'd like one to show "Same ORIGINAL RELEASE DATE")
Have added a readme for Quicksearch (previously it shared the dynamic queries readme). And now it point users to use Dynamic Queries at Playlist Tools for customized entries.

Code: [Select]
Tool similar to foo_quicksearch, which allows searching for tracks with
same tag values, beginning with them or by partial matching. Results may
be sent to a playlist, Autoplaylist or search window using keyboard
modifiers (shown on the tool).

Original foo_quicksearch:
https://www.foobar2000.org/components/view/foo_quicksearch

Buttons usage:
- Entries are hardcoded.
- By default sends results to a [configurable] playlist.
- Shift sends results to search window.
- Ctrl creates an Autoplaylist with the result.
- To add customized entries, use Playlist Tools\Dynamic queries.

Original foo_quicksearch only allowed exact matches by queries, but
this tool allows two additional modes:
- Begins with...:
Will match any track starting with the original value.
For ex. 'Begins with Genre' would allow 'Jazz' and 'Jazz
Vocal' in results, when selecting a jazz track since all
start with 'Jazz' string on the genre tag. This method is
pretty situationaland probably most used for Title tags.

- Partial match...:
Expands the previous method, allowing any result which
matches any portion of the string. For ex. 'Begins with
Title', for a track named 'Yesterday' would output tracks
named 'Yes', 'Y', 'Yesterday', 'Yesterdays', ...

This tool uses Dynamic Queries under the hood. Readme may be found
at 'Others\Dynamic queries' or at Playlist Tools button.

There is a reason I didn't add customizable entries there, because the Begins with and Partial match menus are dynamically created with the other entries, and letting users to add their own queries would break them in many cases (due to users not knowing how to properly set such queries). There is no such problem at Playlist Tools\Dynamic Queries. I will think a way allowing customization while limiting stupid queries to be processed on the Begins with/partial match modes.

There is a way to remap all tags (at 'FOOBAR PROFILE FOLDER]\js_data\presets\global'), globally in all tools, but will not bother explaining it until I release a new official version. Look for it if you wanna, but don't expect more help on that side.

Re: Playlist-Tools-SMP

Reply #211
I don't really have time to explain basic things, I have spent a lot of time creating the readmes and making thing as intuitive as possible. So please, test things by yourself, read the docs, test things again and only if you have specific questions to achieve X, I can help. If you find something not properly explained, let me know. But don't expect me to guide you on every step when you can learn by doing.

While I understand some people doesn't have much experience with these things, a high number of your questions are answered at the docs most of the times.
Understood, regor. Fair enough. It just that I don't understand most of what I read in the docs. I'll keep trying though.

Re: Playlist-Tools-SMP

Reply #212
Quote
4. When all the buttons don't fit in the SMP panel, the row of buttons changes from this
Color switches to white? I can not reproduce that in any way. Please provide me a gif showing it, your OS, SMP version and foobar version. (And I assume it's in DUI)
Windows 11 Home - Version 22H2
SMP 1.6.1
Foobar2000 v2.0 beta 24

Gif attached

Re: Playlist-Tools-SMP

Reply #213
Quote
4. When all the buttons don't fit in the SMP panel, the row of buttons changes from this
Color switches to white? I can not reproduce that in any way. Please provide me a gif showing it, your OS, SMP version and foobar version. (And I assume it's in DUI)
Windows 11 Home - Version 22H2
SMP 1.6.1
Foobar2000 v2.0 beta 24

Gif attached
That looks an SMP or DUI bug. Or maybe some kind of v2 problem or Windows 11. XD But let's investigate. Show me these settings:
X

Shift + Win + R. Click -> Configure panel\Appearance. Show me the window.

On CUI, weird things happen with pseudo-transparency enabled on standard panels if background is not painted. Just checked. Maybe it's the same on DUI (?) The panel caption is shown below the actual panel background, even if the layout has been set to hide captions. So well that's a CUI bug or SMP is doing weird things on transparency mode. Will report it.
X

Re: Playlist-Tools-SMP

Reply #214
Quote
Original foo_quicksearch only allowed exact matches by queries, but
this tool allows two additional modes:
   - Begins with...:
      Will match any track starting with the original value.
      For ex. 'Begins with Genre' would allow 'Jazz' and 'Jazz
      Vocal' in results, when selecting a jazz track since all
      start with 'Jazz' string on the genre tag. This method is
      pretty situationaland probably most used for Title tags.
   
   - Partial match...:
      Expands the previous method, allowing any result which
      matches any portion of the string. For ex. 'Begins with
      Title', for a track named 'Yesterday' would output tracks
      named 'Yes', 'Y', 'Yesterday', 'Yesterdays', ...

Not sure why you write "Begins with" in the Partial match section? The only options in Partial match are things like "By title".

Re: Playlist-Tools-SMP

Reply #215
Not sure why you write "Begins with" in the Partial match section? The only options in Partial match are things like "By title".
Because it's a typo XD
Quote
   - Partial match...:
      Expands the previous method, allowing any result which matches
      any portion of the string. For ex. 'Partial match by Title', for a
      track named 'Yesterday' would output tracks named 'Yes', 'Y',
      'Yesterday', 'Yesterdays', ...


Re: Playlist-Tools-SMP

Reply #217
Quote
Original foo_quicksearch only allowed exact matches by queries, but
this tool allows two additional modes:
   - Begins with...:
      Will match any track starting with the original value.
      For ex. 'Begins with Genre' would allow 'Jazz' and 'Jazz
      Vocal' in results, when selecting a jazz track since all
      start with 'Jazz' string on the genre tag. This method is
      pretty situationaland probably most used for Title tags.
   
   - Partial match...:
      Expands the previous method, allowing any result which
      matches any portion of the string. For ex. 'Begins with
      Title', for a track named 'Yesterday' would output tracks
      named 'Yes', 'Y', 'Yesterday', 'Yesterdays', ...

Not sure why you write "Begins with" in the Partial match section? The only options in Partial match are things like "By title".
Because it's a typo XD
Ha. XD

Re: Playlist-Tools-SMP

Reply #218
The 3, not only colors. All 3 submenus on the circle.

How do you have black background on the panel without transparency? Did you manually changed the color on the menus? (set custom bar color)

Re: Playlist-Tools-SMP

Reply #219
Ok. Found it. When you set the bar color manually, it uses the sys colours if buttons are bigger than the window width.

It was a fix for something on CUI I don't remember anymore (on toolbar panels), but it clearly breaks standard panels. Should be fixed in a few hours, if you download the scripts.

Btw, how it looks with pseudotransparency (after restoring default colors at 'Colors\Reset...')?

Anyway, the bug at top on CUI still applies.

Re: Playlist-Tools-SMP

Reply #220
Sorry. Shouldn't have posted this before reading your other reply ...

The 3, not only colors. All 3 submenus on the circle.
OK. Hang on a sec.

How do you have black background on the panel without transparency? Did you manually changed the color on the menus? (set custom bar color)
Yeah. I did try and change the colours, but I honestly can't remember which one(s) I changed. I remember successfully changing the button text colour to light grey, while the buttons were still white, and then I was trying to figure out how to change the colour of the buttons. Then I clicked "No background buttons" and got the result you see there and I was happy so sort of forgot what I'd done.


Re: Playlist-Tools-SMP

Reply #222
Btw, how it looks with pseudotransparency (after restoring default colors at 'Colors\Reset...')?



I should add that yes, I'm using default UI.
I don't really understand how DUI with pseudotransparency doesn't show black backgrounds... if you are using a dark theme, I thought it should show a dark background too. Or maybe you have to change something more on the UI colors.

Anyway at least DUI doesn't have the caption bug present on CUI. And the panel color will work properly on a few hours, so no problem.

Re: Playlist-Tools-SMP

Reply #223
Btw, how it looks with pseudotransparency (after restoring default colors at 'Colors\Reset...')?



I should add that yes, I'm using default UI.
I don't really understand how DUI with pseudotransparency doesn't show black backgrounds... if you are using a dark theme, I thought it should show a dark background too. Or maybe you have to change something more on the UI colors.

Anyway at least DUI doesn't have the caption bug present on CUI. And the panel color will work properly on a few hours, so no problem.
I wouldn't know. Will download the scripts in a few hours; thanks.

Nice and easy to get my colours back how I wanted them:



(In fact it's better than before because I bothered to use a colour picker and set the font to 192,192,192.

 

Re: Playlist-Tools-SMP

Reply #224
Quote
1. How do we change the queries that are used, for example, in Quicksearch>Same date (where I'd like one to show "Same ORIGINAL RELEASE DATE") or in Playlist Tools>Top rated from 2023?
- You don't. Use Playlist Tools/Dynamic queries for that, where you can add and save your own expressions.
- Use 'from year entry...' No need at all to complicate it with custom entries. You don't like that, add a 'search top tracks from date' button and configure the date.

I'm really sorry to have to ask this but how do I configure the date?

I'm not sure if I need to edit the buttons_search_top_tracks_from_date.js file in Notepad++? Look daunting.

That file says at the top "You can configure the number of tracks at properties panel" so perhaps that's where I need to be looking but I can't for the life of me figure out what/where is the properties panel?

And I don't understand what
Quote
'Use from year entry...'
means.