Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00019 /***************************************************/ 00020 00021 #ifndef STK_WAVELOOP_H 00022 #define STK_WAVELOOP_H 00023 00024 #include "WvIn.h" 00025 00026 class WaveLoop : public WvIn 00027 { 00028 public: 00030 WaveLoop( std::string fileName, bool raw = false ); 00031 00033 virtual ~WaveLoop(); 00034 00036 00042 void setFrequency(StkFloat frequency); 00043 00045 void addTime(StkFloat time); 00046 00048 00053 void addPhase(StkFloat angle); 00054 00056 00061 void addPhaseOffset(StkFloat angle); 00062 00064 const StkFloat *tickFrame(void); 00065 00067 00070 StkFloat *tickFrame(StkFloat *frameVector, unsigned int frames); 00071 00073 00079 StkFrames& tickFrame( StkFrames& frames ); 00080 00081 protected: 00082 00083 // Read file data. 00084 void readData(unsigned long index); 00085 00086 StkFloat phaseOffset_; 00087 00088 }; 00089 00090 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |