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

◆ process_sample()

virtual double MayaFlux::Nodes::Node::process_sample ( double  input = 0.)
pure virtual

Processes a single data sample.

Parameters
inputThe input sample value
Returns
The processed output sample value

This is the core processing method that all nodes must implement. It takes a single input value, applies the node's transformation algorithm, and returns the resulting output value.

For generator nodes that don't require input (like oscillators or stochastic generators), the input parameter may be ignored. Note: This method does NOT mark the node as processed. That responsibility belongs to the caller, typically a chained parent node or the root node.

Implemented in MayaFlux::Nodes::Filters::FIR, MayaFlux::Nodes::Filters::IIR, 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::ChainNode, MayaFlux::Nodes::BinaryOpNode, MayaFlux::Nodes::Filters::Filter, and MayaFlux::Nodes::GpuSync::GpuSync.