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

◆ process_batch()

std::vector< double > MayaFlux::Nodes::BinaryOpNode::process_batch ( unsigned int  num_samples)
overridevirtual

Processes multiple samples through both nodes and combines the results.

Parameters
num_samplesNumber of samples to process
Returns
Vector of combined processed samples

Each sample is processed through both the left and right nodes, and their outputs are combined using the specified function.

Implements MayaFlux::Nodes::Node.

Definition at line 148 of file NodeCombine.cpp.

149{
150 std::vector<double> output(num_samples);
151 for (unsigned int i = 0; i < num_samples; ++i) {
152 output[i] = process_sample(0.0);
153 }
154 return output;
155}
double process_sample(double input=0.) override
Processes a single sample through both nodes and combines the results.

References process_sample().

+ Here is the call graph for this function: