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

◆ process_batch()

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

Processes multiple samples through the chain.

Parameters
num_samplesNumber of samples to process
Returns
Vector of processed samples

Each sample is processed through the source node and then through the target node.

Implements MayaFlux::Nodes::Node.

Definition at line 103 of file NodeStructure.cpp.

104{
105 std::vector<double> output(num_samples);
106 for (size_t i = 0; i < num_samples; i++) {
107 output[i] = process_sample(0.F);
108 }
109 return output;
110}
double process_sample(double input=0.) override
Processes a single sample through the chain.

References process_sample().

+ Here is the call graph for this function: