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

◆ on_impulse()

void MayaFlux::Nodes::Generator::Impulse::on_impulse ( const NodeHook callback)

Registers a callback for every impulse.

Parameters
callbackFunction to call when an impulse occurs

This method allows external components to monitor or react to every impulse produced by the generator. The callback receives a GeneratorContext containing the generated value and generator parameters like frequency, amplitude, and phase.

Definition at line 170 of file Impulse.cpp.

171{
173}
std::vector< NodeHook > m_impulse_callbacks
Collection of impulse-specific callback functions.
Definition Impulse.hpp:276
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_impulse_callbacks, and MayaFlux::Nodes::safe_add_callback().

+ Here is the call graph for this function: