I am trying to learn how to write a lua script that wraps the creation of objects, controllers, access, etc and connect their outputs appropriately. Here’s a very simple patch where I want create a phasor controller inside of lua, whose output is transformed in the update function via an expression before being output directly to a point-ouput. You are normally allowed to pass controllers directly to a point-output. However the final run script (of modalys~) overrules luas output definition and puts instead a random controller as point-output (something I did not specify).
No error is signalized, so what did I miss? Please compare the lua script with the run script of modalys~ and you’ll see the two don’t comply. Any hints to correct lua syntax is very wellcome.
Kindly Hans Peter