-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
create a j.node object #388
Comments
Yes, I agree with that. I'm actually mixed regarding this "issue". As an end user, "sources/number output" then "source.1/position output" is what I want so it would be nice to have things dealt with implicitly, rather than having to explicitly set nodes order in order to get the leaves in the desired order. But should we make the code more complicated etc. to hide such a complexity to the end user, I dont know. Hard to balance.
But in this case, this should already work this way, right, since without priorities, parameters are sortes alphabetically, right ? In the past (about two years ago, at the beginning of 0.6), we solved this |
Back to this issue, I feel more and more that a j.node (or j.nodeMarker... but it's a bit long to type...) would be useful to set attributes to certain implicit nodes of a model (for example when sorting the sound file under a /sound node, it is important that this parameter is recalled first...) of course, we can always create a j.model @amenities none, but it feels a bit heavy, doesn't it ? should we discuss this in Bergen ? |
I like this j.node idea which could be useful. I don't want to declare a model each time I declare a node. |
I have renamed this issue in order to better reflect what we want to act upon Reno, as you won't be there in Bergen when we'll discuss that, what would be your specifications for such an object. If you can prioritize them, that would be even better ! |
Since I wont be in Bergen either, here are a couple of things I'm wondering:
|
I'm thinking of the tag attribute I'll think more...
|
Also, I guess it would be useful that j.node works like j.model, patch-wise (so that all objects in the same patcher and its subpatchers subscribe to its node) |
description attribute might also be handy |
summary of j.node's requested attributes:
it should also bind all j.parameters below itself (like j.model does) |
conclusions:
if a parameter with the same name exists, j.node is discarded (j.parameter wins) |
side-effect : priorities of parameters are declared for the last node only |
This object now exists - you can see it in action in the Priorities tab of j.parameter.maxhelp (until I make a j.node.maxhelp, very soon...) |
The order of j.parameter's priority are not preserved when addresses have sub node.
For example, if one has the following in his model:
[j.parameter sources/number @priority 1]
[j.parameter source.1/position @priority 2]
When storing a state, for example, "source.1" will get stored first, then "sources/number" since "source" and "sources" nodes do not have priority, hence are stored alphabetically.
The text was updated successfully, but these errors were encountered: