Dynamically changing inlet/outlet number
Hi all
Is it possible to change the number of inlet or outlet from inside callback functions, eg receiving the message "inlet 5" will cause inlets to be added/deleted to get those 5 inlets.
We know from the buddy example how to change that number from passing arguments typed in the object box, but found no way for a more dynamic behaviour.
Thanks
Dominique
I'm a little unclear as to what you're looking for, however, it is
not possible to change the inlet or outlet count after an object has
been created. It is necessary for the user to delete the object and
re-create.
-Joshua
You could always prefix you input/output messages with an int
specifying what "virutal inlet.outlet" messages belong to.
wes
Thnaks for answering. My purpose was actually to change the inlet/outlet count after the object has been created. I was looking for the same behaviour you have when using the script message "replace" with arguments for changing inlet/outlet count. But probably, the script deletes the old object and creates a new one for replacement.
In fact, we found some workaround, but were interested in your answer for a better understanding of the setup/and object_new functions.
Dominique