|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::schedule_pattern | ( | std::function< std::any(uint64_t)> | pattern_func, |
| std::function< void(std::any)> | callback, | ||
| std::vector< double > | durations, | ||
| std::string | name = "", |
||
| Vruta::ProcessingToken | token = Vruta::ProcessingToken::SAMPLE_ACCURATE |
||
| ) |
Schedules a pattern generator whose steps are spaced by a list of durations.
| pattern_func | Function that generates pattern values based on step index |
| callback | Function to call with each pattern value |
| durations | Seconds to wait after each step, stepped through in order and repeated |
| name | Name of the pattern task (optional but recommended). If not provided, a default name will be generated. |
| token | Processing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE) |
A single interval is a list of one. Uses the task scheduler from the default engine.
Definition at line 74 of file Chronie.cpp.
References callback, get_scheduler(), name, and MayaFlux::Kriya::pattern().
Referenced by schedule_pattern().
Here is the call graph for this function:
Here is the caller graph for this function: