frac32buffer input
frac32buffer input
frac32buffer b1
frac32buffer b2
frac32.positive control
frac32buffer output
frac32buffer b
// Cosine
int32_t r;
SINE2TINTERP((inlet_c << 3) + (1 << 30), r)
int32_t cosine = (-(r >> 4)) + (1 << 27); // - = inverted cosine
int32_t ccompl = ((128 << 20) - cosine);
// int32_t ccompl = ((128<<20)-cosine);
{
int64_t a = (int64_t)inlet_a2 * cosine;
a += (int64_t)inlet_a1 * ccompl;
outlet_a = a >> 27;
}
{
int64_t b = (int64_t)inlet_b2 * cosine;
b += (int64_t)inlet_b1 * ccompl;
outlet_b = b >> 27;
}