MCPcopy Create free account
hub / github.com/VCVRack/Rack / getFrequencyResponse

Method getFrequencyResponse

include/dsp/filter.hpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 T getFrequencyResponse(T f) {
280 // T hReal, hImag;
281 // getTransferFunction(2 * M_PI * f, &hReal, &hImag);
282 // return simd::hypot(hReal, hImag);
283 return simd::abs(getTransferFunction(2 * M_PI * f));
284 }
285
286 T getFrequencyPhase(T f) {
287 return simd::arg(getTransferFunction(2 * M_PI * f));

Callers

nothing calls this directly

Calls 1

absFunction · 0.85

Tested by

no test coverage detected