MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / processCombImpl

Function processCombImpl

src/core/ClientReverb.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216// Templated on the struct type so we don't need friend access.
217template <typename CombT>
218inline float processCombImpl(CombT& c, float in,
219 float feedback, float damp1, float damp2,
220 int activeLen)
221{
222 const float out = c.buffer[c.index];
223 c.lpfState = out * damp2 + c.lpfState * damp1;
224 c.buffer[c.index] = in + c.lpfState * feedback;
225 c.index = (c.index + 1) % activeLen;
226 return out;
227}
228
229// Process one sample through a Schroeder allpass. Feedback fixed at 0.5.
230template <typename ApT>

Callers 1

processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected