Skip to content

daisysp::FIRMemory< 0, 0 >

Public Functions

Name
void SetStateBuffer(float state[], size_t length)
void Reset()

Protected Functions

Name
FIRMemory()
size_t MaxBlock() const
bool SetCoefs(const float coefs[], size_t size, bool reverse)

Protected Attributes

Name
float * state_
const float * coefs_
size_t size_
size_t state_size_

Public Functions Documentation

function SetStateBuffer

inline void SetStateBuffer(
    float state[],
    size_t length
)

Parameters:

  • state - pointer to the allocated memory block
  • length - length of the provided memory block (in elements) The length should be determined as follows length >= max_filter_size + max_processing_block - 1

Set user-provided state buffer


function Reset

inline void Reset()

Protected Functions Documentation

function FIRMemory

inline FIRMemory()

function MaxBlock

inline size_t MaxBlock() const

function SetCoefs

inline bool SetCoefs(
    const float coefs[],
    size_t size,
    bool reverse
)

Parameters:

  • coefs - pointer to coefficients (tail-first order)
  • size - number of coefficients pointed by coefs (filter length)
  • reverse - flag to perform reversing of the filter

Return: true if all conditions are met and the filter is configured

Configure the filter coefficients

Protected Attributes Documentation

variable state_

float * state_;

variable coefs_

const float * coefs_;

variable size_

size_t size_;

variable state_size_

size_t state_size_;

Updated on 2024-01-03 at 19:38:46 +0000