Subpatch custom arguments/attributes
Attila Novák
10月 10 2017 | 10:46 午後
I'm trying to create a subpatch which has an input bang and then which (after other things) display a random number. The "simple" random thing is not enough so thats why the subpatch just for clarification, but thats not really the topic.
How can I use arguments/attributes/etc to set a number from outside of the subpatch?
The problem is, that I can set this number as an inlet, but I get too many inlets in my main patch... Ideally it would be an attribute parameter in the inspector or something like that, but so far I was not lucky.
Tried using $1 or #1 kind of things but I don't get how they're supposed to work.
Thanks for helping
double_UG
10月 11 2017 | 6:14 午前
look at the object "patcherargs"
Attila Novák
10月 11 2017 | 4:36 午後
Thanks, this helped a lot!
James Curran
5月 11 2021 | 8:48 午後
+1 Super helpful
Roman Thilenius
5月 11 2021 | 11:16 午後
patcherargs is basically
[loadbang]
[t #1]
you can also just write things like
[+ #1]
but watch out, there are a few objects which do not support that.
Livingston
9月 11 2024 | 7:40 午後
Thank you very much!