27MAYAFLUX_API std::shared_ptr<Vruta::TaskScheduler>
get_scheduler();
55MAYAFLUX_API
void schedule_metro(
double interval_seconds, std::function<
void()> callback, std::string name =
"");
77MAYAFLUX_API
void schedule_sequence(std::vector<std::pair<
double, std::function<
void()>>> sequence, std::string name =
"");
114MAYAFLUX_API
void schedule_pattern(std::function<std::any(uint64_t)> pattern_func, std::function<
void(std::any)> callback,
double interval_seconds, std::string name =
"");
142MAYAFLUX_API
bool cancel_task(
const std::string& name);
162template <
typename... Args>
A token representing an action in a computational sequence.
Coroutine-based execution engine for composable, multi-strategy buffer processing.
Base interface for all computational processing nodes.
A C++20 coroutine-based audio processing task with sample-accurate timing.
Token-based multimodal task scheduling system for unified coroutine processing.
bool update_task_params(const std::string &name, Args... args)
Updates parameters of a scheduled task.
void schedule_metro(double interval_seconds, std::function< void()> callback, std::string name)
Creates a metronome task and addes it to the default scheduler list for evaluation.
std::shared_ptr< Vruta::EventManager > get_event_manager()
Gets the event manager from the default engine.
bool restart_task(const std::string &name)
Restarts a scheduled task.
Vruta::SoundRoutine create_pattern(std::function< std::any(uint64_t)> pattern_func, std::function< void(std::any)> callback, double interval_seconds)
Schedules a pattern generator that produces values based on a pattern function.
void schedule_sequence(std::vector< std::pair< double, std::function< void()> > > seq, std::string name)
Creates a sequence task that calls functions at specified times and addes it to the default scheduler...
Vruta::SoundRoutine create_line(float start_value, float end_value, float duration_seconds, uint32_t step_duration, bool loop)
Creates a line generator that interpolates between values over time.
Kriya::ActionToken Play(std::shared_ptr< Nodes::Node > node)
Creates an action to play a node.
void schedule_task(const std::string &name, Vruta::SoundRoutine &&task, bool initialize)
Schedules a new sound routine task.
void 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 de...
float * get_line_value(const std::string &name)
Gets a pointer to a task's current value.
Kriya::ActionToken Action(std::function< void()> func)
Creates a custom action.
Vruta::SoundRoutine create_metro(double interval_seconds, std::function< void()> callback)
Creates a simple task that calls a function at a specified interval.
std::shared_ptr< Kriya::BufferPipeline > create_buffer_pipeline()
Creates a new buffer pipeline instance.
bool cancel_task(const std::string &name)
Cancels a scheduled task.
Vruta::SoundRoutine create_sequence(std::vector< std::pair< double, std::function< void()> > > seq)
Creates a sequence task that calls functions at specified times.
Kriya::ActionToken Wait(double seconds)
Creates a wait action.
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Main namespace for the Maya Flux audio engine.