Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Modulate.h

00001 /***************************************************/
00011 /***************************************************/
00012 
00013 #ifndef STK_MODULATE_H
00014 #define STK_MODULATE_H
00015 
00016 #include "Generator.h"
00017 #include "WaveLoop.h"
00018 #include "SubNoise.h"
00019 #include "OnePole.h"
00020 
00021 class Modulate : public Generator
00022 {
00023  public:
00025 
00028   Modulate();
00029 
00031   ~Modulate();
00032 
00034   void reset();
00035 
00037   void setVibratoRate(StkFloat rate);
00038 
00040   void setVibratoGain(StkFloat gain);
00041 
00043   void setRandomGain(StkFloat gain);
00044 
00046   StkFloat tick();
00047 
00049   StkFloat *tick( StkFloat *vector, unsigned int vectorSize );
00050 
00052 
00058   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00059 
00060  protected:
00061   WaveLoop *vibrato_;
00062   SubNoise noise_;
00063   OnePole  filter_;
00064   StkFloat vibratoGain_;
00065   StkFloat randomGain_;
00066 
00067 };
00068 
00069 #endif

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