Calls a Lua function and executes it in the processor thread. With
runSync you can invoke a function of the processor thread by an operation in the controller thread. For example, by calling
runSync in a parameter change callback (controller thread) you can invoke an event function (processor thread) like
controlChange, etc. The callback that called
runSync is not stopped and continues its execution.
runSync will be exectued in the next audio block. If
id is specified, another call to
runSync with the same ID overwrites the previous function call, if it has not been executed yet. Only the last function call will be executed in the next audio block.
Available in: Processor.
|func||The name of the function to be called.||function|
|id||If this is specified, another call to ||variant, optional|