KFR

Filter API

filter

template<typename T>
class filter

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

virtual void reset()

Resets internal state (such as delay line)

Source:

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

Applies filter to a static array

Source:

template <size_t Size>
void apply(T (&buffer)[Size])
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

Source:

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

Applies filter to a univector

Source:

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

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

Source:

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

to_filter

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

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

Source:

template <typename E, typename T = value_type_of<E>>
KFR_SINTRIN expression_filter<T> to_filter(E&& e)
template<typename T, typename E>
expression_filter<T> to_filter(expression_pointer<T> &&e)

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

Source:

template <typename T, typename E>
KFR_SINTRIN expression_filter<T> to_filter(expression_pointer<T>&& e)