Home   Information   Classes   Download   Usage   Mail List   Requirements   Tutorial


Instrmnt Class Reference

STK instrument abstract base class. More...

#include <Instrmnt.h>

Inheritance diagram for Instrmnt::

Stk BandedWG BlowBotl BlowHole Bowed Brass Clarinet Drummer Flute FM Mesh2D Modal Plucked PluckTwo Resonate Sampler Saxofony Shakers Simple Sitar StifKarp List of all members.

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).


Detailed Description

STK instrument abstract base class.

This class provides a common interface for all STK instruments.

by Perry R. Cook and Gary P. Scavone, 1995 - 2002.


The documentation for this class was generated from the following file:
The Synthesis ToolKit in C++ (STK)
©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.