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

◆ schedule_pattern() [2/4]

template<std::incrementable Index = uint64_t, typename Generator , typename Callback , typename Third >
requires Kriya::PatternGenerator<Generator, Index> && Kriya::PatternCallback<Callback, typename Kriya::PatternTraits<Generator, Index>::value_type> && (Kriya::PatternCondition<Third, Index> || Kriya::PatternDurationSource<Third>)
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.

Template Parameters
IndexStep index type, default uint64_t
Parameters
generatorCallable from the step index to any value
callbackCallable that takes the generated value
thirdA condition returning bool for the step index, or a function from a pass number to a range of seconds
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 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.

198{
199 schedule_task(name, Kriya::pattern<Index>(std::move(generator), std::move(callback), std::move(third), token));
200}
PickCallback callback
Definition Picker.cpp:22
std::string name
Definition VKDevice.cpp:123
void schedule_task(const std::string &name, Vruta::SoundRoutine &&task, bool initialize)
Schedules a new sound routine task.
Definition Chronie.cpp:104

References callback, name, and schedule_task().

+ Here is the call graph for this function: