|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::schedule_pattern | ( | Generator | generator, |
| Callback | callback, | ||
| std::vector< double > | durations, | ||
| std::string | name = "", |
||
| Vruta::ProcessingToken | token = Vruta::ProcessingToken::SAMPLE_ACCURATE |
||
| ) |
Schedules a typed pattern whose steps are spaced by a list of durations.
| Index | Step index type, default uint64_t |
| generator | Callable from the step index to any value |
| callback | Callable that takes the generated value |
| durations | Seconds to wait after each step, stepped through in order and repeated |
| name | Name of the pattern task (optional but recommended) |
| token | Processing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE) |
The value type is whatever the generator returns, so no std::any is involved. schedule_pattern(gen, cb, { 0.25, 0.5 }) selects this overload.
Definition at line 176 of file Chronie.hpp.
References callback, name, and schedule_task().
Here is the call graph for this function: