Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


Modulate.h

00001 /***************************************************/
00011 /***************************************************/
00012 
00013 #ifndef STK_MODULATE_H
00014 #define STK_MODULATE_H
00015 
00016 #include "Generator.h"
00017 #include "SineWave.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 
00045  protected:
00046 
00047   StkFloat computeSample( void );
00048 
00049   SineWave vibrato_;
00050   SubNoise noise_;
00051   OnePole  filter_;
00052   StkFloat vibratoGain_;
00053   StkFloat randomGain_;
00054 
00055 };
00056 
00057 #endif

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