Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
STK bowed string table class. More...
#include <BowTable.h>
Public Member Functions | |
BowTable (void) | |
Default constructor. | |
void | setOffset (StkFloat offset) |
Set the table offset value. | |
void | setSlope (StkFloat slope) |
Set the table slope value. | |
StkFloat | tick (StkFloat input) |
Take one sample input and map to one sample of output. | |
StkFrames & | tick (StkFrames &frames, unsigned int channel=0) |
Take a channel of the StkFrames object as inputs to the table and replace with corresponding outputs. | |
StkFrames & | tick (StkFrames &iFrames, StkFrames &oFrames, unsigned int iChannel=0, unsigned int oChannel=0) |
Take a channel of the iFrames object as inputs to the table and write outputs to the oFrames object. |
STK bowed string table class.
This class implements a simple bowed string non-linear function, as described by Smith (1986).
by Perry R. Cook and Gary P. Scavone, 1995 - 2010.
void stk::BowTable::setOffset | ( | StkFloat | offset | ) | [inline] |
Set the table offset value.
The table offset is a bias which controls the symmetry of the friction. If you want the friction to vary with direction, use a non-zero value for the offset. The default value is zero.
void stk::BowTable::setSlope | ( | StkFloat | slope | ) | [inline] |
Set the table slope value.
The table slope controls the width of the friction pulse, which is related to bow force.
Take a channel of the StkFrames object as inputs to the table and replace with corresponding outputs.
The StkFrames argument reference is returned. The channel
argument must be less than the number of channels in the StkFrames argument (the first channel is specified by 0). However, range checking is only performed if _STK_DEBUG_ is defined during compilation, in which case an out-of-range value will trigger an StkError exception.
StkFrames & stk::BowTable::tick | ( | StkFrames & | iFrames, | |
StkFrames & | oFrames, | |||
unsigned int | iChannel = 0 , |
|||
unsigned int | oChannel = 0 | |||
) | [inline] |
Take a channel of the iFrames
object as inputs to the table and write outputs to the oFrames
object.
The iFrames
object reference is returned. Each channel argument must be less than the number of channels in the corresponding StkFrames argument (the first channel is specified by 0). However, range checking is only performed if _STK_DEBUG_ is defined during compilation, in which case an out-of-range value will trigger an StkError exception.
The Synthesis ToolKit in C++ (STK) |
©1995-2010 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |