i have a subpatch, that contains a fader and a canvas. the canvas changes it size when tweaking the fader (via the vis_size message to the receive of the canvas).
so far so good, but i need some more of these subpatches in this instrument, but when i copy this subpatch, i have to rename every single receive and vis_size message if i want them to work independently.
is it possible to have a "wireless" connection that only works locally in the subpatch?
i hope you got what i meant, my english is very poor...
-
Subpatch internal connection
-
You can try a patch (abstraction) instead of a subpatch. Copy the content of your supbatch to it's own patch and name it something like fadecanv.pd
In it rename all your variables so that they all start with $0 (something like $0-receivevariable).
Then in your main patch just add the object [fadecanv].
For this to work fadcanv.pd need to be in PD's path or in the same folder as the main patch.Hope that helps.
-
perfect! that's what i searched for, thank you!
-
Nice!
Take a look at sections 2.7.1 and 2.7.2 of the PD documentation to learn more about abstractions.
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s7.1You can also use creation arguments and use GUI objects.
-
@ saturno: thank you for the link. i'm a noob to pd, so this forum is very helpful for me, although my english quite poor...
maybe you wanna take a look at this one for data structures:
http://www.pd-tutorial.com/ -
Yeah, I've been reading that tutorial. It's quite good. Been meaning to use it in the a PD class I teach here in Rio.
Haven't gotten to the part on data structures though.No one who use the word "quite" correctly has poor english, LOL
What I mean to say is that I can understand you just fine.