3 #include "waveguide/cl/filter_structs.h" 5 #include "utilities/decibels.h" 22 template <
typename Callback,
size_t... Ix>
24 const Callback& callback,
25 const std::array<filter_descriptor, biquad_sections>& n,
26 std::index_sequence<Ix...>) {
30 template <
typename Callback>
32 const Callback& callback,
33 const std::array<filter_descriptor, biquad_sections>& n) {
34 return get_biquads_array(
35 callback, n, std::make_index_sequence<biquad_sections>{});
41 const std::array<filter_descriptor, biquad_sections>& n);
43 template <
size_t A,
size_t B>
47 for (
auto i = 0; i != A + 1; ++i) {
48 for (
auto j = 0; j != B + 1; ++j) {
49 ret.b[i + j] += a.b[i] * b.b[j];
50 ret.a[i + j] += a.a[i] * b.a[j];
Several sets of biquad parameters.
Definition: filter_structs.h:78
Definition: capsule_base.h:9