
Home Information Classes Download Usage Mail List Requirements Links Tutorial
#include <Instrmnt.h>
Inheritance diagram for Instrmnt::

Public Methods | |
| Instrmnt () | |
| Default constructor. | |
| virtual | ~Instrmnt () |
| Class destructor. | |
| virtual void | noteOn (MY_FLOAT frequency, MY_FLOAT amplitude)=0 |
| Start a note with the given frequency and amplitude. | |
| virtual void | noteOff (MY_FLOAT amplitude)=0 |
| Stop a note with the given amplitude (speed of decay). | |
| virtual void | setFrequency (MY_FLOAT frequency) |
| Set instrument parameters for a particular frequency. | |
| MY_FLOAT | lastOut () const |
| Return the last output value. | |
| virtual MY_FLOAT | tick ()=0 |
| Compute one output sample. | |
| virtual MY_FLOAT* | tick (MY_FLOAT *vector, unsigned int vectorSize) |
| Computer vectorSize outputs and return them in vector. | |
| virtual void | controlChange (int number, MY_FLOAT value) |
| Perform the control change specified by number and value (0.0 - 128.0). | |
This class provides a common interface for all STK instruments.
by Perry R. Cook and Gary P. Scavone, 1995 - 2002.
| The Synthesis ToolKit in C++ (STK) |
| ©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |