frac32buffer input
frac32 cutoff frequency
frac32buffer output
frac32.u.map freq
int32_t val;
int32_t FILTER;
int32_t FILTERINV;
int32_t CLEANPLUSINVERTEDFILTER;
int32_t CLEANPLUSINVERTEDFILTERINV;
int32_t STEP2;
// 6db lo pass //
val = 0;
// 6db lo pass //
int32_t f;
MTOF(param_freq + inlet_freq, f);
// 6db lo pass //
val = ___SMMLA((inlet_in - val) << 1, f, val);
FILTER = val;
FILTERINV = -FILTER;
CLEANPLUSINVERTEDFILTER = inlet_in + FILTERINV;
CLEANPLUSINVERTEDFILTERINV = -CLEANPLUSINVERTEDFILTER;
STEP2 = FILTER + CLEANPLUSINVERTEDFILTERINV;
outlet_out = STEP2;