Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial

Function.h
1 #ifndef STK_FUNCTION_H
2 #define STK_FUNCTION_H
3
4 #include "Stk.h"
5
6 namespace stk {
7
8 /***************************************************/
18 /***************************************************/
19
20 class Function : public Stk
21 {
22 public:
24 Function( void ) { lastFrame_.resize( 1, 1, 0.0 ); };
25
27 StkFloat lastOut( void ) const { return lastFrame_[0]; };
28
30 virtual StkFloat tick( StkFloat input ) = 0;
31
32 protected:
33
34 StkFrames lastFrame_;
35
36 };
37
38 } // stk namespace
39
40 #endif
41

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