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

◆ notify_tick()

virtual void MayaFlux::Nodes::Node::notify_tick ( double  value)
protectedpure virtual

Notifies all registered callbacks with the current context.

Parameters
valueThe current sample value

This method is called by the node implementation when a new output value is produced. It creates a context object using create_context(), then calls all registered callbacks with that context.

For unconditional callbacks (registered with on_tick()), the callback is always called. For conditional callbacks (registered with on_tick_if()), the callback is called only if its condition returns true.

Node implementations should call this method at appropriate points in their processing flow to trigger callbacks.

Implemented in MayaFlux::Nodes::Filters::Filter, MayaFlux::Nodes::Generator::Impulse, MayaFlux::Nodes::Generator::Logic, MayaFlux::Nodes::Generator::Phasor, MayaFlux::Nodes::Generator::Polynomial, MayaFlux::Nodes::Generator::Sine, MayaFlux::Nodes::Generator::Stochastics::Random, MayaFlux::Nodes::BinaryOpNode, MayaFlux::Nodes::GpuSync::GpuSync, and MayaFlux::Nodes::ChainNode.