MayaFlux 0.2.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 271 of file NodeStructure.cpp.

272{
273 std::vector<double> output(num_samples);
274 for (unsigned int i = 0; i < num_samples; ++i) {
275 output[i] = process_sample(0.0);
276 }
277 return output;
278}
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: