Forums > Dev

order of function execution, etc.

April 23, 2007 | 7:58 pm

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


April 25, 2007 | 5:00 am

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


Viewing 2 posts - 1 through 2 (of 2 total)