|
MayaFlux 0.1.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, | ||
| double | interval_seconds, | ||
| std::string | name = "" |
||
| ) |
Schedules a pattern generator that produces values based on a pattern function and addes it to the default scheduler list for evaluation.
| pattern_func | Function that generates pattern values based on step index |
| callback | Function to call with each pattern value |
| interval_seconds | Time between pattern steps |
| name | Name of the metronome task (optional but recommended). If not provided, a default name will be generated. |
Uses the task scheduler from the default engine.
Definition at line 71 of file Chronie.cpp.
References create_pattern(), and get_scheduler().
Here is the call graph for this function: