wdelayf

Variants: wdelaycf, wdelayf

Efficient digital delay line using a minimal amount of memory

Public Functions

wdelayf wdelayf_create(unsigned int _delay)
wdelayf wdelayf_copy(wdelayf _q)
wdelayf wdelayf_recreate(wdelayf _q, unsigned int _delay)
int wdelayf_destroy(wdelayf _q)
int wdelayf_print(wdelayf _q)
int wdelayf_reset(wdelayf _q)
int wdelayf_read(wdelayf _q, float * _v)
int wdelayf_push(wdelayf _q, float _v)

Interfaces

wdelayf wdelayf_create(unsigned int _delay)

Create delay buffer object with a particular number of samples of delay

  • _delay : number of samples of delay in the wdelay object

wdelayf wdelayf_copy(wdelayf _q)

Copy object including all internal objects and state

wdelayf wdelayf_recreate(wdelayf _q, unsigned int _delay)

Re-create delay buffer object, adjusting the delay size, preserving the internal state of the object

  • _q : old delay buffer object
  • _delay : delay for new object

int wdelayf_destroy(wdelayf _q)

Destroy delay buffer object, freeing internal memory

int wdelayf_print(wdelayf _q)

Print delay buffer object's state to stdout

int wdelayf_reset(wdelayf _q)

Clear/reset state of object

int wdelayf_read(wdelayf _q, float * _v)

Read delayed sample at the head of the buffer and store it to the output pointer

  • _q : delay buffer object
  • _v : value of delayed element

int wdelayf_push(wdelayf _q, float _v)

Push new sample into delay buffer object

  • _q : delay buffer object
  • _v : new value to be added to buffer