Home   Information   Classes   Download   Usage   Mail List   Requirements   Tutorial


WaveLoop.h

00001 /***************************************************/
00019 /***************************************************/
00020 
00021 #if !defined(__WAVELOOP_H)
00022 #define __WAVELOOP_H
00023 
00024 #include "WvIn.h"
00025 #include <stdio.h>
00026 
00027 class WaveLoop : public WvIn
00028 {
00029 public:
00031   WaveLoop( const char *fileName, bool raw = FALSE );
00032 
00034   virtual ~WaveLoop();
00035 
00037 
00043   void setFrequency(MY_FLOAT aFrequency);
00044 
00046   void addTime(MY_FLOAT aTime);
00047 
00049 
00054   void addPhase(MY_FLOAT anAngle);
00055 
00057 
00062   void addPhaseOffset(MY_FLOAT anAngle);
00063 
00065   const MY_FLOAT *tickFrame(void);
00066 
00067 protected:
00068 
00069   // Read file data.
00070   void readData(unsigned long index);
00071 
00072   MY_FLOAT phaseOffset;
00073 
00074 };
00075 
00076 #endif // defined(__WAVELOOP_H)

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