kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit c73d6b87e7e120cb3dd35f2d864fe0387cac13ab
parent 3b1f2bdb633397d871afb1945a5afd9dec45b9b6
Author: Benjamin Navarro <[email protected]>
Date:   Wed, 26 Feb 2020 11:03:24 +0100

Add biquad_filter ctor for ease of use

The kfr::to_sos returns a vector of biquad parameters so it makes
sense to be able to pass it directly to construct a biquad_filter
instead of having to pass pointer+size

Diffstat:
Minclude/kfr/dsp/biquad.hpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/kfr/dsp/biquad.hpp b/include/kfr/dsp/biquad.hpp @@ -340,6 +340,12 @@ public: biquad_filter(const biquad_params<T> (&bq)[N]) : biquad_filter(bq, N) { } + + biquad_filter(const std::vector<biquad_params<T>>& bq) + : biquad_filter(bq.data(), bq.size()) + { + } + }; } // namespace CMT_ARCH_NAME