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

◆ on_phase_wrap()

HookId MayaFlux::Nodes::Generator::Phasor::on_phase_wrap ( const TypedHook< GeneratorContext > &  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 168 of file Phasor.cpp.

169{
171}
PickCallback callback
Definition Picker.cpp:22
HookList m_phase_wrap_callbacks
Collection of phase wrap-specific callback functions.
Definition Phasor.hpp:298
HookId add_unique(NodeHook hook, const std::type_info &key, uint8_t tag=0, std::array< double, 2 > params={})
Appends unless an entry with the same key and params exists, in which case that entry's id is returne...
NodeHook adapt_hook(const TypedHook< ContextT > &hook)
Wraps a context-typed hook into a NodeHook.

References MayaFlux::Nodes::adapt_hook(), MayaFlux::Nodes::HookList::add_unique(), callback, and m_phase_wrap_callbacks.

+ Here is the call graph for this function: