Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Executes a function in the processor thread. With runSync By calling runSync in the controller thread, you can invoke a function of that is executed in the processor thread by an operation in the controller thread. For example, by calling runSync in a parameter change callback, you can invoke an event function like playNotereleaseVoice, controlChange, etc. The callback that called runSync is not stopped and continues its execution. The specified function will be exectued in the next audio block. If id is specified, another call to runSync with the same ID overwrites the previous function , if it has not been executed yet. Only the last function with the same ID will be executed in the next audio block.

...

funcThe name of the function to be called.function
idIf this is specified, another call to runSync with the same ID overwrites the previous function , if it has not been executed yet. Only the last function with the same ID will be executed in the next audio block.variant, optional

...