order of function execution, etc.

Apr 23, 2007 at 7:58pm

order of function execution, etc.

hello,

i’m programming my first external at the moment, and was wondering
when the various functions in the external are called. for instance
the order of execution when a object is instatiated, and also when/if
the _dsp method gets called again when dsp is turned on/off or
sampling rate changes, vector size changes, new signals patch cords
are connected, etc.

is there somewhere in the documentation that mentions this? i didn’t
come across it.

thanks a lot.

mark

#31549
Apr 25, 2007 at 5:00am

Hi Mark,

> i’m programming my first external at the moment, and was wondering
> when the various functions in the external are called. for instance
> the order of execution when a object is instatiated,

_new() is called when a new object is created. main() is called
before _new() when the object is first loaded.

> and also when/if
> the _dsp method gets called again when dsp is turned on/off or
> sampling rate changes, vector size changes, new signals patch cords
> are connected, etc.

yes – any of those things force the signal chain to recompile, which
means the _dsp method will be called.

> is there somewhere in the documentation that mentions this?

yep, this is all in there… somewhere!

Ben

#102706

You must be logged in to reply to this topic.