--- doc/docbase/instrument_scripts/nksp/reference/functions/nksp_wait_function.html 2016/04/10 18:22:23 2871 +++ doc/docbase/instrument_scripts/nksp/reference/functions/nksp_wait_function.html 2016/04/10 18:42:55 2872 @@ -68,22 +68,22 @@ end on - + Using the wait() function can lead to concurrency issues with regular variables, which are global variables by default. You might need to use polyphonic variables in such cases. - - The wait() function is not fully implemented in LinuxSampler - yet. Currently a wait() function call suspends execution, - but since the respective scheduler code is yet missing in LinuxSampler, - the script will automatically be resumed with the next audio fragment - cycle. So effectively a wait() call will pause your script - for a few miliseconds with LinuxSampler right now, no matter which - function argument you provided. Hopefully this will be implemented soon - though. + + You need at least LinuxSampler 2.0.0.svn2 or higher for the + wait() function to fully work as expected. Versions + of LinuxSampler older than that will not resume the script at the + requested amount of time, instead those older version will resume + the script always at the beginning of the next audio fragment + cycle. So effectively a wait() call with a LinuxSampler + version older than 2.0.0.svn2 will pause your script for a few + miliseconds, no matter which function argument you provided.