Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Function.h

00001 /***************************************************/
00011 /***************************************************/
00012 
00013 #include "Stk.h"
00014 
00015 #ifndef STK_FUNCTION_H
00016 #define STK_FUNCTION_H
00017 
00018 class Function : public Stk
00019 {
00020  public:
00022   Function();
00023 
00025   virtual ~Function();
00026 
00028   virtual StkFloat lastOut() const { return lastOutput_; };
00029 
00031   virtual StkFloat tick( StkFloat input ) = 0;
00032 
00034   virtual StkFloat *tick( StkFloat *vector, unsigned int vectorSize );
00035 
00037 
00043   virtual StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00044 
00045  protected:
00046 
00047   StkFloat lastOutput_;
00048 
00049 };
00050 
00051 #endif
00052 

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