Using poly~?

    Mar 02 2014 | 1:26 pm
    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?

    • Mar 03 2014 | 12:04 pm
      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:
    • Mar 03 2014 | 1:53 pm
      you´d have to initialise from outside, for example loadbang list 0 1 200 500 prepend target 3 poly~ mycoolpatch 32
    • Mar 03 2014 | 4:12 pm
      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.
    • Mar 03 2014 | 10:23 pm
      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.