|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::schedule_pattern | ( | Generator | generator, |
| Callback | callback, | ||
| Third | third, | ||
| std::string | name = "", |
||
| Vruta::ProcessingToken | token = Vruta::ProcessingToken::SAMPLE_ACCURATE |
||
| ) |
Schedules a typed pattern driven by a condition or by a durations function.
| Index | Step index type, default uint64_t |
| generator | Callable from the step index to any value |
| callback | Callable that takes the generated value |
| third | A condition returning bool for the step index, or a function from a pass number to a range of seconds |
| name | Name of the pattern task (optional but recommended) |
| token | Processing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE) |
Forwards to Kriya::pattern, which describes both forms. A condition runs a step each time it holds; a durations function is asked once per pass and ends the pattern on an empty array.
Definition at line 197 of file Chronie.hpp.
References callback, name, and schedule_task().
Here is the call graph for this function: