< Back to IRCAM Forum

Mlys dynamic controller params

Hi

Question about mlys~ scripts, dynamic controllers.
What does the third argument stand for?

Example:
Hammer_c2 = make_controller(‘DYNAMIC’,1,-1,0.5,‘Hammer@large-mass’)

here, a dynamic controller, one dimension, ???, intial value, target.

The principle is different in Modalys: we have the type, number of dimensions, PERIOD, initial values and message name.
Should I understand that -1 is sampling period? I am confused.

Thanks.
Also posted in the maxapps forum.
Coralie

Hi Coralie,

The 3rd argument is the update period for the controller.
0 means “every sample” and -1 “when necessary”, so -1 is better! I guess it’s some legacy parameter, but to my opinion, it should not even be exposed.
To be short: -1 is safe in every case.

Robert