Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


Generator Class Reference

#include <Generator.h>

Inheritance diagram for Generator:

Stk Blit BlitSaw BlitSquare Envelope Granulate Modulate Noise SineWave SingWave List of all members.

Detailed Description

STK abstract unit generator parent class.

This class provides common functionality for STK unit generator sample-source subclasses.

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


Public Member Functions

 Generator (void)
 Class constructor.
virtual ~Generator (void)
 Class destructor.
virtual StkFloat lastOut (void) const
 Return the last output value.
StkFloat tick (void)
 Compute one sample and output.
StkFramestick (StkFrames &frames, unsigned int channel=0)
 Fill a channel of the StkFrames object with computed outputs.


Member Function Documentation

StkFrames& Generator::tick StkFrames frames,
unsigned int  channel = 0
 

Fill a channel of the StkFrames object with computed outputs.

The channel argument should be zero or greater (the first channel is specified by 0). An StkError will be thrown if the channel argument is equal to or greater than the number of channels in the StkFrames object.


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