Skip to content

Filter API


filter class

template <typename T> filter

Abstract base class for filters with one argument. Mainly for DSP

reset function

virtual void reset()

Resets internal state (such as delay line)

apply function

template <size_t Size> void apply(T (&buffer)[Size])

Applies filter to a static array

template <size_t Size>
void apply(T (&dest)[Size], T (&src)[Size])

Applies filter to a static array and writes the result to another array

template <univector_tag Tag>
void apply(univector<T, Tag> &buffer)

Applies filter to a univector

template <univector_tag Tag1, univector_tag Tag2>
void apply(univector<T, Tag1> &dest,
           const univector<T, Tag2> &src)

Applies filter to a univector and writes the result to another univector


to_filter function

template <typename E, typename T = expression_value_type<E>>
expression_filter<T> to_filter(E &&e)

Converts expression with placeholder to filter. Placeholder and filter must have the same type


template <typename T, typename E>
expression_filter<T> to_filter(expression_handle<T, 1> &&e)

Converts expression with placeholder to filter. Placeholder and filter must have the same type


Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/