An implementation of the Tapped Delay Line (TDL) structure in O(1)
More...
|
| void | qTDL_Setup (qTDL_t *const q, float *const area, const size_t n, const float initVal) |
| | Setup and initialize a Tapped Delay Line (TDL) instance by setting the default optimal parameters.
|
| |
| void | qTDL_Flush (qTDL_t *const q, const float initVal) |
| | Clears all delays from the TDL and sets them to the specified value.
|
| |
| float | qTDL_GetOldest (const qTDL_t *const q) |
| | Get the oldest sample from the TDL x(k-n)
|
| |
| float | qTDL_GetAtIndex (const qTDL_t *const q, const size_t i) |
| | Get the specified delayed sample from the TDL x(k-i)
|
| |
| float | qTDL_GetRecent (const qTDL_t *const q) |
| | Get the most recent sample from the TDL x(k)
|
| |
| void | qTDL_InsertSample (qTDL_t *const q, const float sample) |
| | Insert a new sample to the TDL removing the oldest sample.
|
| |
An implementation of the Tapped Delay Line (TDL) structure in O(1)
◆ qTDL_Flush()
| void qTDL_Flush |
( |
qTDL_t *const | q, |
|
|
const float | initVal ) |
Clears all delays from the TDL and sets them to the specified value.
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
| [in] | initVal | The value with which all TDL delays will be initialized |
- Returns
- none
◆ qTDL_GetAtIndex()
| float qTDL_GetAtIndex |
( |
const qTDL_t *const | q, |
|
|
const size_t | i ) |
Get the specified delayed sample from the TDL x(k-i)
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
| [in] | i | The requested delay index |
- Returns
- The requested value from the TDL
◆ qTDL_GetOldest()
| float qTDL_GetOldest |
( |
const qTDL_t *const | q | ) |
|
Get the oldest sample from the TDL x(k-n)
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
- Returns
- The requested value from the TDL
◆ qTDL_GetRecent()
| float qTDL_GetRecent |
( |
const qTDL_t *const | q | ) |
|
Get the most recent sample from the TDL x(k)
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
- Returns
- The requested value from the TDL
◆ qTDL_InsertSample()
| void qTDL_InsertSample |
( |
qTDL_t *const | q, |
|
|
const float | sample ) |
Insert a new sample to the TDL removing the oldest sample.
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
| [in] | sample | The new sample to insert. |
- Returns
- none
◆ qTDL_Setup()
| void qTDL_Setup |
( |
qTDL_t *const | q, |
|
|
float *const | area, |
|
|
const size_t | n, |
|
|
const float | initVal ) |
Setup and initialize a Tapped Delay Line (TDL) instance by setting the default optimal parameters.
- Parameters
-
| [in] | q | A pointer to the TDL instance. |
| [in] | area | An array of size n where delays will be stored |
| [in] | n | The number of elements on area. |
| [in] | initVal | The value with which all TDL delays will be initialized |
- Returns
- none