Group Admins

  • Profile picture of Robert P.

Modalys

Public Group active 2 weeks, 6 days ago

Modalys physical modeling sound synthesis user group

Mlys dynamic controller params

Author 2 Subscribed Users |
Profile photo of coraliediatkine
coraliediatkine

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

August 20, 2016 at 15:29 #18833
Robert P.
Robert P.

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

September 20, 2016 at 15:00 #19089

You must be logged in to reply to this topic.

Log in now