Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Table.h

00001 /***************************************************/
00015 /***************************************************/
00016 
00017 #ifndef STK_TABLE_H
00018 #define STK_TABLE_H
00019 
00020 #include "Function.h"
00021 
00022 class Table : public Function
00023 {
00024 public:
00026 
00030   Table( std::string fileName );
00031 
00033   ~Table();
00034 
00036   long getLength() const;
00037 
00039 
00043   StkFloat tick(StkFloat index);
00044 
00046   StkFloat *tick( StkFloat *vector, unsigned int vectorSize );
00047 
00049 
00055   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00056 
00057 protected:  
00058   long length_;
00059   std::valarray<StkFloat> data_;
00060 
00061 };
00062 
00063 #endif // defined(__TABLE_H)

The Synthesis ToolKit in C++ (STK)
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.