I just realized that this is going to be quite useful. I tried in the past to make a Pd object with a dynamic number of inlets, and started to make some crazy system where I would start out with 20 outlets, then delete all but the number that were needed.
I'll try it with [initbang] now.
FYI: I added the patch to Pd-extended, so you can try it out on upcoming auto-builds.
.hc
On Aug 21, 2006, at 12:07 PM, IOhannes m zmoelnig wrote:
hi.
i just submitted a patch against the 0.40-prerelease that adds a new object [initbang], which can be used to trigger a constructor in an abstraction.
this allows to have abstractions with runtime customizable constructors, especially variable inlets/outlets. ([loadbang] is a bit too late for such things, as it only gets called when the parent of an abstraction is already finished (and connections have been abandoned))
i think this is another important step on making abstractions objects of full age.
any thoughts?
what is still missing is the possibility for an abstraction to do something before it is destroyed.
mfg.asdr IOhannes
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------
Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith