13namespace Nodes::Generator {
119 MAYAFLUX_API Vruta::SoundRoutine
line(
float start_value,
float end_value,
float duration_seconds, uint32_t step_duration = 5,
bool restartable =
false);
170 MAYAFLUX_API Vruta::SoundRoutine
Gate(
171 std::function<
void()> callback,
172 std::shared_ptr<Nodes::Generator::Logic> logic_node,
bool open =
true);
181 MAYAFLUX_API Vruta::SoundRoutine
Trigger(
183 std::function<
void()> callback,
184 std::shared_ptr<Nodes::Generator::Logic> logic_node);
192 MAYAFLUX_API Vruta::SoundRoutine
Toggle(
193 std::function<
void()> callback,
194 std::shared_ptr<Nodes::Generator::Logic> logic_node);
@ Vruta
Coroutines, schedulers, clocks, task management.
@ Kriya
Automatable tasks and fluent scheduling api for Nodes and Buffers.
Vruta::SoundRoutine Gate(std::function< void()> callback, std::shared_ptr< Nodes::Generator::Logic > logic_node, bool open)
Coroutine that executes callback continuously while logic node outputs true.
Vruta::SoundRoutine Toggle(std::function< void()> callback, std::shared_ptr< Nodes::Generator::Logic > logic_node)
Coroutine that executes callback on any logic node state change.
Vruta::SoundRoutine line(float start_value, float end_value, float duration_seconds, uint32_t step_duration, bool restartable)
Creates a continuous interpolation generator between two values over time.
std::shared_ptr< Vruta::Routine > sequence(std::vector< std::pair< double, std::function< void()> > > sequence, Vruta::ProcessingToken token)
Creates a temporal sequence that executes callbacks at specified time offsets.
Vruta::SoundRoutine Trigger(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.
std::shared_ptr< Vruta::Routine > metro(double interval_seconds, std::function< void()> callback, Vruta::ProcessingToken token)
Creates a periodic event generator that executes a callback at regular intervals.
std::shared_ptr< Vruta::Routine > pattern(std::function< std::any(uint64_t)> pattern_func, std::function< void(std::any)> callback, double interval_seconds, Vruta::ProcessingToken token)
Creates a generative algorithm that produces values based on a pattern function.
@ SAMPLE_ACCURATE
Coroutine is sample-accurate.
Main namespace for the Maya Flux audio engine.