Very basic lookup table object.
More...
#include <basiclookuptables.h>
|
std::unique_ptr< LookUpTable > | hannTable = nullptr |
| a single lookup table - you can add more tables here
|
|
Very basic lookup table object.
- holds a smart pointer to a single LookupTable structure, Hann Window
- you can add more tables and access functions as you like
- provides multiple functions to access the lookup table with different lookup index types
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ BasicLookupTables()
SynthLab::BasicLookupTables::BasicLookupTables |
( |
| ) |
|
Construction:
- creates new Hann window table
- you can add more here
◆ readTableByTableIndex()
double SynthLab::BasicLookupTables::readTableByTableIndex |
( |
uint32_t |
tableIndex, |
|
|
double |
index |
|
) |
| |
Reads and interpolates a table using a table index (codified enum)
- Parameters
-
tableIndex | zero-indexed enumeration |
index | read location, expected to be fractional so interpolation is used |
- Returns
- the newly constructed object
◆ readTableByTablePointer()
double SynthLab::BasicLookupTables::readTableByTablePointer |
( |
double * |
table, |
|
|
double |
index |
|
) |
| |
Reads and interpolates a table using a pointer to the table.
- Parameters
-
table | table pointer |
index | read location, expected to be fractional so interpolation is used |
- Returns
- the newly constructed object
The documentation for this class was generated from the following files: