MCPcopy Create free account
hub / github.com/VCVRack/Befaco / process

Method process

src/StereoStrip.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 T yr[2] = {};
68
69 void process(T* inL, T* inR) {
70 T l = AeFilter<T>::b0 * *inL + AeFilter<T>::b1 * xl[0] + AeFilter<T>::b2 * xl[1] - AeFilter<T>::a1 * yl[0] - AeFilter<T>::a2 * yl[1];
71 T r = AeFilter<T>::b0 * *inR + AeFilter<T>::b1 * xr[0] + AeFilter<T>::b2 * xr[1] - AeFilter<T>::a1 * yr[0] - AeFilter<T>::a2 * yr[1];
72
73 //shift buffers
74 xl[1] = xl[0];
75 xl[0] = *inL;
76 xr[1] = xr[0];
77 xr[0] = *inR;
78
79 yl[1] = yl[0];
80 yl[0] = l;
81 yr[1] = yr[0];
82 yr[0] = r;
83
84 *inL = l;
85 *inR = r;
86 }
87};
88
89template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected