Dynamically changing inlet/outlet number

May 18, 2006 at 4:11pm

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

#26040
May 18, 2006 at 6:35pm

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

#77357
May 18, 2006 at 7:15pm

You could always prefix you input/output messages with an int
specifying what “virutal inlet.outlet” messages belong to.

wes

#77358
May 19, 2006 at 2:18pm

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

#77359

You must be logged in to reply to this topic.