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

◆ on_phase_wrap()

void MayaFlux::Nodes::Generator::Phasor::on_phase_wrap ( const NodeHook callback)

Registers a callback for every phase wrap.

Parameters
callbackFunction to call when the phase wraps

This method allows external components to monitor or react to every time the phasor completes a cycle and wraps back to 0. The callback receives a GeneratorContext containing the generated value and generator parameters like frequency, amplitude, and phase.

Definition at line 169 of file Phasor.cpp.

170{
172}
std::vector< NodeHook > m_phase_wrap_callbacks
Collection of phase wrap-specific callback functions.
Definition Phasor.hpp:323
bool safe_add_callback(std::vector< NodeHook > &callbacks, const NodeHook &callback)
Safely adds a callback to a collection if it doesn't already exist.
Definition NodeUtils.cpp:33

References m_phase_wrap_callbacks, and MayaFlux::Nodes::safe_add_callback().

+ Here is the call graph for this function: