May 10, 2009 at 12:02pm
Inside a subpatch I have a umenu.
Main Patch/Subpatch with umenu.
Using textedit, I can change the names stored in the umenu slots.
All clear so far?
But if I load the main patch, open the subpatcher, and change the name of one of the umenu items, then save and reload the main patch, the name changes haven’t been stored.
So it seems that changed items in a umenu are only saved if the actual patch containing the umenu is itself saved.
Surely this can’t be right? There’s something I’m missing, but I can’t see any obvious reference to this in the Docs.
I want to be able to change the name stored in umenu in the subpatch, and have it saved with the main patch. What am I missing?
May 12, 2009 at 3:37pm
You could use an embedded bpatcher:
– Pasted Max Patch, click to expand. –
Copy all of the following text.Then, in Max, select New From Clipboard.
(to explore the bpatcher, right-click -> Open -> New view of…)
May 12, 2009 at 9:07pm
I’m getting ready to use my patcher in an installation next week, so Im not going to play with this at the moment (!).
I’m not clear how embedding the umenu solves the problem of it (seeming to) not save new items entered into it when it’s in a subpatcher inside an existing instrument. I wondered if there was a umenu flag that needed setting – kind of like the coll one you have to set for it to remember data when you save a patch.
Does the problem I’m having make sense? (I’ve worked around it for now by storing menu items in a coll as well (which _does save the names when the main patch is saved) and then reloading the umenu from the coll when the main patch is launched.)
May 13, 2009 at 2:05pm
I’m afraid I don’t understand your question.
May 13, 2009 at 4:06pm
Let’s see if I can be clearer.
Main patch contains a number of subpatchers (as abstractions)(_not bpatchers, for UI reasons). In fact, the subpatcher containing the umenu is 3 layers deep …
seqSR and patterncreate are abstractions –
[patterncreate] contains a umenu with 20 pre-existing slots (named “empty”). You can change the name of any of the slots using a textedit.
These changes are also sent to another umenu in the level above (seqSR).
If I load [patterncreate] on its own and change one of the umenu slot names, then save the patch, the name change is retained, as I would expect.
My underlying assumptions are that umenu retains changes made in it when a patch is saved (which is what happens), and that the same thing should apply if the umenu is inside an abstraction (which is what _isn’t happening).
Does that make more sense?
You must be logged in to reply to this topic.