MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ schedule_pattern() [1/4]

template<std::incrementable Index = uint64_t, typename Generator, typename Callback, typename Condition>
requires Kriya::PatternGenerator<Generator, Index> && Kriya::PatternCallback<Callback, typename Kriya::PatternTraits<Generator, Index>::value_type> && Kriya::PatternCondition<Condition, Index>
void MayaFlux::schedule_pattern ( Generator generator,
Callback callback,
Condition ready,
std::string name = "",
Vruta::ProcessingToken token = Vruta::ProcessingToken::SAMPLE_ACCURATE )

Schedules a typed pattern driven by a condition.

Template Parameters
IndexStep index type, default uint64_t
Parameters
generatorCallable from the step index to any value
callbackCallable that takes the generated value
readyA condition for the step index
nameName of the pattern task (optional but recommended)
tokenProcessing token to determine which scheduler rate to use (default: SAMPLE_ACCURATE)

Forwards to Kriya::pattern, which describes the form. The condition runs a step each time it holds.

Definition at line 213 of file Chronie.hpp.

214{
215 schedule_task(name, Kriya::pattern<Index>(std::move(generator), std::move(callback), std::move(ready), token));
216}
std::shared_ptr< Vruta::Routine > pattern(std::function< std::any(uint64_t)> pattern_func, std::function< void(std::any)> callback, std::function< bool(uint64_t)> ready, Vruta::ProcessingToken token)
The std::any, uint64_t form of the condition driven pattern.
Definition Pattern.cpp:5
void schedule_task(const std::string &name, Vruta::SoundRoutine &&task, bool initialize)
Schedules a new sound routine task.
Definition Chronie.cpp:103

References MayaFlux::Kriya::pattern(), MayaFlux::Vruta::SAMPLE_ACCURATE, and schedule_task().

Here is the call graph for this function: