clockblocks.utilities
Module containing the free functions that make up clockblocks’ most convenient interface. Rather than calling
methods on a particular clock, these operate on whichever clock is running the current thread: most importantly
wait() and fork(), along with getters and setters for that clock’s tempo (set_tempo(),
set_tempo_target(), apply_tempo_envelope(), and their rate/beat-length counterparts).
Functions
|
Drive the current clock's beat length (in seconds per beat) by following a function of beats/time. |
|
Drive the current clock's rate (in beats per second) by following a function of beats/time. |
|
Append a ready-made |
|
Drive the current clock's tempo (in beats per minute) by following a function of beats/time. |
Get the |
|
|
Run |
|
Return how many beats have passed on the currently active clock (see |
Return the current beat length (in seconds per beat) of the currently active clock (see |
|
|
Return the current rate (in beats per second) of the currently active clock (see |
Return the current tempo (in beats per minute) of the currently active clock (see |
|
|
Return how much time has passed on the currently active clock (see |
|
True if |
|
True if |
|
True if |
|
Immediately set the beat length of the current clock (see |
|
Smoothly change the current clock's beat length to |
|
Set several beat-length targets at once, building a multi-segment tempo curve on the current clock. |
|
Immediately set the rate of the current clock (see |
|
Smoothly change the current clock's rate to |
|
Set several rate targets at once, building a multi-segment tempo curve on the current clock. |
|
Immediately set the tempo of the current clock (see |
|
Smoothly change the current clock's tempo to |
|
Set several tempo targets at once, building a multi-segment tempo curve on the current clock. |
Stop following any function or looping envelope previously started on the current clock's tempo (via |
|
Kill the child clocks of the currently active clock, returning once they have finished unwinding (see |
|
|
Block the clock currently active on this thread for |
Block on the currently active clock until its child clocks have finished (see |
|
|
Block on the currently active clock until clock has finished (see |
Block forever on the currently active clock (see |
|
|
Block the clock currently active on this thread until the absolute beat (or time, if |