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 eb06bde6d1ff01c9b28fa8b8d6716e52dba63513
parent 68661550691c21004d6c5b94ff78e0461c46ffaf
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Wed, 23 Nov 2016 17:47:24 +0300

biquad: Fix input vector index. (Fixes #8 )

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

diff --git a/include/kfr/dsp/biquad.hpp b/include/kfr/dsp/biquad.hpp @@ -181,7 +181,7 @@ struct expression_biquads : expression_base<E1> for (size_t i = 0; i < filters - 1; i++) { const vec<T, 1> in = this->argument_first(cinput, i, vec_t<T, 1>()); - state.out = process(bq, state, insertleft(in[i], state.out)); + state.out = process(bq, state, insertleft(in[0], state.out)); } } CMT_INLINE void end_block(cinput_t cinput, size_t) const { state = saved_state; } @@ -219,7 +219,7 @@ struct expression_biquads : expression_base<E1> for (; i < std::min(width, block_end - index); i++) { const vec<T, 1> in = this->argument_first(cinput, index + i, vec_t<T, 1>()); - state.out = process(bq, state, insertleft(in[i], state.out)); + state.out = process(bq, state, insertleft(in[0], state.out)); out[i] = state.out[filters - 1]; } saved_state = state;