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.
ProcessSample
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
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