Page 156 of 170

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Sun Aug 13, 2017 8:06 am
by ZvezdanD

Code: Select all

<Group|Name:Artists...>\Artists with <ID:1> to <ID:2> years since last released song|Filter:Songs.Artist IN (SELECT Artist FROM Songs WHERE Year > 19000000 GROUP BY Artist HAVING (strftime('%Y%m%d', 'now') - Max(Year)) / 10000 Between <Number|Caption:Minimum number of years|Value:5|MinValue:1|MaxValue:100|ID:1> And <Number|Caption:Maximum number of years|Value:10|MinValue:1|MaxValue:100|ID:2>)|Icon:Top level\<Artist|Statistic:Max(Year)|Unknown:No>\<Year>

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Sun Aug 13, 2017 8:46 am
by MMFrLife
PERFECTO! :D

Now the user can take customization from there. I like that it shows the most recent date next to the artist.
So very handy.

Thanks

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Sun Aug 13, 2017 10:28 am
by MMFrLife
One thing I noticed is that if I have something like "5y min. to 5y max." or "5y min. to 10y max.",
when I add the album node (with year suffix), it doesn't just include albums within that range, it includes
all albums.

What am I doing wrong?
Do you need my mask?

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Sun Aug 13, 2017 11:17 am
by ZvezdanD
The name of the node is "Artists with ...", but not "Songs released between x and y by artists with ..." or "Albums released between x and y by artists with ...". Which means that you got what you requested: artists that meet the criteria. If you want to further filter the display of tracks, you should append the additional criteria, like: And (strftime('%Y%m%d', 'now') - Year) / 10000 Between <ID:1> And <ID:2>.

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Sun Aug 13, 2017 12:43 pm
by MMFrLife
Ok, that works! :D

Well, the original request used terms like "album" and "release" to encompass both album and song. When I saw the term song in the
code, I thought that's just how you did it, but it would allow the album node to fall in line. It appears to in the original one.
But on the next request, "between x andy y", I guess I mistakenly assumed that only the albums associated with the songs in that "specific year range"
would show up under the album node, not the one's before that range. Next time, I'll specifically mention if I want a certain node to show a certain way.

Thanks again!

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Thu Aug 24, 2017 8:58 am
by MMFrLife
Is there a way to indicate if something ends or begins with "any" number (without having to write out all numbers).
For ex., something like, <Title> Like '0-9%' (for begins with).

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Thu Aug 24, 2017 10:20 am
by ZvezdanD
MMFrLife wrote:Is there a way to indicate if something ends or begins with "any" number (without having to write out all numbers).
For ex., something like, <Title> Like '0-9%' (for begins with).
Begins:
SubStr(<Title>, 1, 1) Between '0' And '9'

Ends:
SubStr(<Title>, -1, 1) Between '0' And '9'

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Thu Aug 24, 2017 7:23 pm
by MMFrLife
"Between 0 and 9" (which includes 1-9 but not 0)

So, to include '0', I use this

SubStr(<Title>, 1, 1) OR <Title> Like '0%'
and the other, with additional, for ends?

It seems to work, just checking if that's the correct logic. :)

Thanks!

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Fri Aug 25, 2017 12:20 am
by ZvezdanD
MMFrLife wrote:"Between 0 and 9" (which includes 1-9 but not 0)
Are you sure about that? We already had conversation about that and I told you why Between operator _includes_ both minimum and maximum values.

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Mon Aug 28, 2017 8:29 am
by MMFrLife
Yes, you are correct. I immediately remembered the previous example of "between" when I saw your solution.
And I thought it would work like the other one does, despite the wording.

However, when I tried, it showed me all Titles leading off with 1-9 but
not 0. When I added the "OR" statement, it returned 0 as well.


You probably already know how to test if you haven't yet (or don't already have Titles leading off with the full range)
but to stay with the theme of clarity/specifics, I would just

create test folder > copy a file into it > rename it > paste again > copy those 2 > paste again >
copy those 4 > and so on until you get 10 files > rename beg. of filename with the full range of leading number >
scan into library > rename title > Apply filter statement(s) to MN.

Here is my "at beg." mask (without "OR")
<Group|Name:MN Technical (editing 1)>\<Group|Name:Finalize-correction-trap>\Title (#s at beg)|Position:Before|Child of:Now Playing|Filter:SubStr(<Title>, 1, 1)|Show if
empty:No

Mine may just be off on some detail or something weird going on in my environment.
Anyway, it's not a big deal for me. I can just use the additional "OR" statement. 8)

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Mon Aug 28, 2017 8:53 am
by ZvezdanD
Yes, I already tried it. I don't need to create test folders/files since I already have bunch of files that begin with numbers, including "0".

The Filter in your mask is incomplete. Here are the working ones:

Code: Select all

<Group|Name:Filter examples>\Titles that begin with a number|Filter:SubStr(<Title>, 1, 1) Between '0' And '9'\<Title|Trim:1>

Code: Select all

<Group|Name:Filter examples>\Titles that end with a number|Filter:SubStr(<Title>, -1, 1) Between '0' And '9'\<Title|Trim:-1>

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Mon Aug 28, 2017 9:10 am
by MMFrLife
Dang it!
I breifly debated whether to include the "Between..." statement and decided not to because I thought it was just a simple description. :lol:
I should have tried it before posting. :wink:

You added "\<Title>" to the end. Out of curiosity, is that necessary? It seems to work without it.

Thanks

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Mon Aug 28, 2017 9:16 am
by ZvezdanD
I have edited masks in the meantime. It is not necessary, but I added <Title|Trim:1> because it displays titles grouped by the starting digit.

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Tue Aug 29, 2017 9:03 am
by MMFrLife
Is it possible to associate the toolbar selections with a different level of expansion, rather than just top level > 1 deep?

Re: Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2

Posted: Tue Aug 29, 2017 9:43 am
by ZvezdanD
The toolbar/hotkey selection works only with global Magic nodes. You could have global node on the first level (starting directly from the root), on the second level (as a first child-node of some group/collection), and so on (groups could be nested).