Time mainpulation functions. More...
Functions | |
function | run (fun,...) |
launch a function in a separate parallel execution thread. More... | |
function | spawn (fun,...) |
launch a function in a separate parallel execution thread. More... | |
function | waitBeat (beat) |
suspend the current thread callback execution for the given number of beats. More... | |
function | wait (ms) |
suspend the current thread callback execution for the given number of samples. More... | |
function | waitForRelease () |
suspend the current thread callback execution until the note that created this callback is released either by the pedal or by a note off. More... | |
Time mainpulation functions.
function spawn | ( | fun | , |
... | |||
) |
launch a function in a separate parallel execution thread.
the function execution will is defered at the end of the current 'instant'
fun | function to launch |
... | variable number of arguments to pass to the function |
function run | ( | fun | , |
... | |||
) |
launch a function in a separate parallel execution thread.
execute it immediately, then goes back to the caller thread once the thread waits for something
fun | function to launch |
... | variable number of arguments to pass to the function |
function waitBeat | ( | beat | ) |
suspend the current thread callback execution for the given number of beats.
beat | the number of beats to wait, has to be greater than 0 |
function wait | ( | ms | ) |
suspend the current thread callback execution for the given number of samples.
It allows other thread callbacks to be resumed in between. The thread scheduler is sample-accurate.
ms | the number of milliseconds to wait, has to be greater than 0 |