mirror of
https://github.com/thestk/stk
synced 2026-01-16 22:31:52 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
32
include/TablLook.h
Normal file
32
include/TablLook.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/********************************************/
|
||||
/* Table Lookup Class, */
|
||||
/* by Gary P. Scavone, 1999 */
|
||||
/* */
|
||||
/* This class loads a table of floating */
|
||||
/* point doubles, which are assumed to be */
|
||||
/* in big-endian format. Linear */
|
||||
/* interpolation is performed for */
|
||||
/* fractional lookup indexes. */
|
||||
/********************************************/
|
||||
|
||||
#include "Object.h"
|
||||
#include "StkError.h"
|
||||
|
||||
#if !defined(__TablLook_h)
|
||||
#define __TablLook_h
|
||||
|
||||
class TablLook : public Object
|
||||
{
|
||||
protected:
|
||||
long length;
|
||||
MY_FLOAT *data;
|
||||
MY_FLOAT lastOutput;
|
||||
public:
|
||||
TablLook(char *fileName);
|
||||
~TablLook();
|
||||
long getLength();
|
||||
MY_FLOAT tick(MY_FLOAT index);
|
||||
MY_FLOAT lastOut();
|
||||
};
|
||||
|
||||
#endif // defined(__TablLook_h)
|
||||
Reference in New Issue
Block a user