ProcessSample

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hello, I have a problem with the ''for'' loop of the "void processSample(array<double>& ioSample) { }" processing function. Isn't there another way to define the ''for'' loop so that :
for(uint channel=0;channel<audioInputsCount;channel++)
{
the audio signal output = x value * the audio signal input;
}
}
instead of having
ioSample[Channel] *= x value.
which is again
ioSample[Channel] = ioSample[Channel] * x value.
because in my plugin I need to compare my Input Signal and my Output Signal, and this loop doesn't allow me to. so I would like to have a method please.

Post

You can store the input value in a temporary variable and do whatever you want with it later:

Code: Select all

const double input = ioSample[Channel];
ioSample[Channel] *= x;
// compare output (ioSample[channel]) with input value here

Post Reply

Return to “Blue Cat Audio”