Pd++
0.01
A pure C++ implementation of Pure Data objects
|
A 4-point table lookup routine. More...
#include <TabRead4.h>
Public Member Functions | |
TabRead4 (std::vector< double > anArray) | |
double | perform (double index) |
void | setTable (std::vector< double > table) |
size_t | getTableSize () |
void | setOnset (double) |
double | getOnset () |
Public Member Functions inherited from PdMaster | |
void * | getbytes (size_t nbytes) |
void * | resizebytes (void *old, size_t oldsize, size_t newsize) |
void | freebytes (void *fatso, size_t nbytes) |
std::string | getPath () |
void | setSampleRate (unsigned long) |
unsigned long | getSampleRate () |
void | setBlockSize (int) |
int | getBlockSize () |
double | getTimeInSampleTicks () |
long | getTimeInMilliSeconds (double time) |
int | pdBigOrSmall (double f) |
void | cos_maketable () |
int | PD_BIGORSMALL (float f) |
void | setFFTWindow (int) |
int | getFFTWindow () |
double | mtof (double) |
double | ftom (double) |
double | powtodb (double) |
double | dbtopow (double) |
double | rmstodb (double) |
double | dbtorms (double) |
Public Attributes | |
const std::string | pdName = "tabread4~" |
Public Attributes inherited from PdMaster | |
int | cosTableSize = COSTABSIZE |
float * | cos_table |
Additional Inherited Members | |
Public Types inherited from PdMaster | |
typedef union PdMaster::_sampleint_union | t_sampleint_union |
A 4-point table lookup routine.
This class will read from an array or vector using 4-point polynomial interpolation.
Remember when using this class to read table values 1 to n-2 to get meaningful data. Otherwise you will just get zeros at the end of your table reads.
This class could be used for creating wavetable synthesizers.