MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Tasks.cpp File Reference
+ Include dependency graph for Tasks.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kriya
 

Functions

Vruta::SoundRoutine MayaFlux::Kriya::metro (Vruta::TaskScheduler &scheduler, double interval_seconds, std::function< void()> callback)
 Creates a periodic event generator that executes a callback at regular intervals.
 
Vruta::SoundRoutine MayaFlux::Kriya::sequence (Vruta::TaskScheduler &scheduler, std::vector< std::pair< double, std::function< void()> > > sequence)
 Creates a temporal sequence that executes callbacks at specified time offsets.
 
Vruta::SoundRoutine MayaFlux::Kriya::line (Vruta::TaskScheduler &scheduler, float start_value, float end_value, float duration_seconds, uint32_t step_duration=5, bool restartable=false)
 Creates a continuous interpolation generator between two values over time.
 
Vruta::SoundRoutine MayaFlux::Kriya::pattern (Vruta::TaskScheduler &scheduler, std::function< std::any(uint64_t)> pattern_func, std::function< void(std::any)> callback, double interval_seconds)
 Creates a generative algorithm that produces values based on a pattern function.
 
Vruta::SoundRoutine MayaFlux::Kriya::Gate (Vruta::TaskScheduler &scheduler, std::function< void()> callback, std::shared_ptr< Nodes::Generator::Logic > logic_node, bool open=true)
 Coroutine that executes callback continuously while logic node outputs true.
 
Vruta::SoundRoutine MayaFlux::Kriya::Trigger (Vruta::TaskScheduler &scheduler, bool target_state, std::function< void()> callback, std::shared_ptr< Nodes::Generator::Logic > logic_node)
 Coroutine that executes callback when logic node changes to specific state.
 
Vruta::SoundRoutine MayaFlux::Kriya::Toggle (Vruta::TaskScheduler &scheduler, std::function< void()> callback, std::shared_ptr< Nodes::Generator::Logic > logic_node)
 Coroutine that executes callback on any logic node state change.