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

Method process

src/StereoStrip.cpp:148–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 T yr[2] = {};
147
148 void process(T* inL, T* inR) {
149 T l = AeEqualizer<T>::b0 * *inL + AeEqualizer<T>::b1 * xl[0] + AeEqualizer<T>::b2 * xl[1] - AeEqualizer<T>::a1 * yl[0] - AeEqualizer<T>::a2 * yl[1];
150 T r = AeEqualizer<T>::b0 * *inR + AeEqualizer<T>::b1 * xr[0] + AeEqualizer<T>::b2 * xr[1] - AeEqualizer<T>::a1 * yr[0] - AeEqualizer<T>::a2 * yr[1];
151
152 // shift buffers
153 xl[1] = xl[0];
154 xl[0] = *inL;
155 xr[1] = xr[0];
156 xr[0] = *inR;
157
158 yl[1] = yl[0];
159 yl[0] = l;
160 yr[1] = yr[0];
161 yr[0] = r;
162
163 *inL = l;
164 *inR = r;
165 }
166};
167
168struct StereoStrip : Module {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected