use_sched_ahead_time time (number)
Specify how many seconds ahead of time the synths should be triggered. This represents the amount of time between pressing ‘Run’ and hearing audio. A larger time gives the system more room to work with and can reduce performance issues in playing fast sections on slower platforms. However, a larger time also increases latency between modifying code and hearing the result whilst live coding.
See set_sched_ahead_time!
for a global version of this function. Note, use_sched_ahead_time
will override any value set with set_sched_ahead_time!
for the current thread.
See use_real_time
for a simple way of setting the schedule ahead time to 0.
Introduced in v3.0
# Example 1 | |
|
|
# Example 2 | |
|
|