set time_state_key (default), value (anything)
Store information in the Time State for the current time for either the current or any other thread. If called multiple times without an intervening call to sleep
, sync
, set
or cue
, the last value set will prevail. The value will remain in the Time State until overwritten by another call to set
, or until Sonic Pi quits.
May be used within a time_warp
to set past/future events. Does not affect time.
Introduced in v3.0
# Example 1 | |
|
|
# Example 2 | |
|
|
# Example 3 | |
|
|