/usr/include/stk/Function.h is in libstk0-dev 4.4.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #ifndef STK_FUNCTION_H
#define STK_FUNCTION_H
#include "Stk.h"
namespace stk {
/***************************************************/
/*! \class Function
\brief STK abstract function parent class.
This class provides common functionality for STK classes that
implement tables or other types of input to output function
mappings.
by Perry R. Cook and Gary P. Scavone, 1995-2012.
*/
/***************************************************/
class Function : public Stk
{
public:
//! Class constructor.
Function( void ) { lastFrame_.resize( 1, 1, 0.0 ); };
//! Return the last computed output sample.
StkFloat lastOut( void ) const { return lastFrame_[0]; };
//! Take one sample input and compute one sample of output.
virtual StkFloat tick( StkFloat input ) = 0;
protected:
StkFrames lastFrame_;
};
} // stk namespace
#endif
|