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

◆ create_sequence()

MAYAFLUX_API Vruta::SoundRoutine MayaFlux::create_sequence ( std::vector< std::pair< double, std::function< void()> > >  sequence)

Creates a sequence task that calls functions at specified times.

Parameters
sequenceVector of (time, function) pairs
nameName of the metronome task (optional but recommended). If not provided, a default name will be generated.
Returns
SoundRoutine object representing the scheduled task

Uses the task scheduler from the default engine.

Definition at line 46 of file Chronie.cpp.

47{
48 return Kriya::sequence(*get_scheduler(), std::move(seq));
49}
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:14

References get_scheduler(), and MayaFlux::Kriya::sequence().

Referenced by schedule_sequence().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: