Code:
void Laneycub10::processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames)
{
float* in = inputs[0];
float* out1 = outputs[0];
float* out2 = outputs[1];
while (--sampleFrames >= 0)
{
float x = *in++;
float y = ((2 * (x*x)) -1);
float y2 = ((4*(x*x*x))-(3*x));
float y3 = (8 * (x*x*x*x)) - (8 *(x*x)) + 1;
float y4 = ((16 * (x*x*x*x*x)) - (20 * (x*x*x)) + (5*x));
*out1++ = y + y2 + y3 + y4 + x;
*out2++ = y + y2 + y3 + y4 + x;
}
No comments:
Post a Comment