frac32buffer input
frac32buffer input
frac32.positive control
frac32buffer output
// 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_i2 * cosine;
a += (int64_t)inlet_i1 * ccompl;
outlet_o = a >> 27;
}