Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


Asymp.h

00001 /***************************************************/
00024 /***************************************************/
00025 
00026 #ifndef STK_ASYMP_H
00027 #define STK_ASYMP_H
00028 
00029 #include "Envelope.h"
00030 
00031 const StkFloat TARGET_THRESHOLD = 0.000001;
00032 
00033 class Asymp : public Envelope
00034 {
00035  public:
00036 
00038   Asymp(void);
00039 
00041   ~Asymp(void);
00042 
00044   void keyOn(void);
00045 
00047   void keyOff(void);
00048 
00050 
00056   void setTau(StkFloat tau);
00057 
00059   void setTime(StkFloat time);
00060 
00062   void setTarget(StkFloat target);
00063 
00064  protected:
00065 
00066   StkFloat computeSample( void );
00067   void sampleRateChanged( StkFloat newRate, StkFloat oldRate );
00068 
00069   StkFloat factor_;
00070   StkFloat constant_;
00071 };
00072 
00073 #endif

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