Is there any example of how to use a poly~ to create multiple patchers with objects inside that are preset to a specific value (such as the scale object)?
Im a bit new to this and there doesnt seem to be many examples of this?
I’m not quite sure what it is you would like to do. Would you like, in your example, the scale ranges to be different for each poly~ instance? You would need to send this information to each instance seperately from the parent patcher by means of the target message.
This video tutorial also helps getting over the initial confusion of how to actually use the poly~ object: http://cycling74.com/2011/05/05/polyphonic-synthesizer-video-tutorial/
you´d have to initialise from outside, for example
list 0 1 200 500
prepend target 3
poly~ mycoolpatch 32
omg, yeah poly~ is super confusing at first.
you could also (assuming you have a predetermined use) use the value you get from banging [thispoly~] (which is the instance number) and process that somehow to set the values you want internally. Maybe with a preset Coll object.
You can use setable arguments too, not sure if you’ve explored this feature yet but it was a revelation for me. If you put a #1 somewhere in the encapsulated patch you can set that value from poly~ like this
where #1 = 5
[poly~ mycoolpatch 32 @args 5]
You can add other arguments with #2, #3 and so on, so if you wanted to you could set global scale parameters that are then modified relative to the instance number.
hope that helps.
I’ve approached things much like the first method CARPENTERSKEYS suggests. Each poly~ instance know which instance is is from thispoly~, and looks up it’s initialization parameters from something like a global coll.