Home Information Classes Download Usage Mail List Requirements Links Tutorial
#include <SingWave.h>
Inheritance diagram for SingWave:
This class contains all that is needed to make a pitched musical sound, like a simple voice or violin. In general, it will not be used alone because of munchkinification effects from pitch shifting. It will be used as an excitation source for other instruments.
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
Definition at line 23 of file SingWave.h.
Public Member Functions | |
SingWave (std::string fileName, bool raw=false) | |
Class constructor taking filename argument. | |
~SingWave () | |
Class destructor. | |
void | reset () |
Reset file to beginning. | |
void | normalize () |
Normalize the file to a maximum of +-1.0. | |
void | normalize (StkFloat peak) |
Normalize the file to a maximum of +- peak. | |
void | setFrequency (StkFloat frequency) |
Set instrument parameters for a particular frequency. | |
void | setVibratoRate (StkFloat rate) |
Set the vibrato frequency in Hz. | |
void | setVibratoGain (StkFloat gain) |
Set the vibrato gain. | |
void | setRandomGain (StkFloat gain) |
Set the random-ness amount. | |
void | setSweepRate (StkFloat rate) |
Set the sweep rate. | |
void | setGainRate (StkFloat rate) |
Set the gain rate. | |
void | setGainTarget (StkFloat target) |
Set the gain target value. | |
void | noteOn () |
Start a note. | |
void | noteOff () |
Stop a note. | |
StkFloat | tick () |
Compute one output sample. | |
StkFloat * | tick (StkFloat *vector, unsigned int vectorSize) |
Compute vectorSize outputs and return them in vector. | |
StkFrames & | tick (StkFrames &frames, unsigned int channel=1) |
Fill a channel of the StkFrames object with computed outputs. |
|
Class constructor taking filename argument. An StkError will be thrown if the file is not found, its format is unknown, a read error occurs, or the rawwave path is incorrectly set. |
|
Fill a channel of the StkFrames object with computed outputs.
The Reimplemented from Generator. |
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |