 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   38   Plucked( StkFloat lowestFrequency = 10.0 );
 
   50   void pluck( StkFloat amplitude );
 
   53   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   56   void noteOff( StkFloat amplitude );
 
   59   StkFloat 
tick( 
unsigned int channel = 0 );
 
   84   return lastFrame_[0] = 3.0 * delayLine_.
tick( loopFilter_.
tick( delayLine_.
lastOut() * loopGain_ ) ); 
 
   89   unsigned int nChannels = lastFrame_.
channels();
 
   90 #if defined(_STK_DEBUG_) 
   91   if ( channel > frames.
channels() - nChannels ) {
 
   92     oStream_ << 
"Plucked::tick(): channel and StkFrames arguments are incompatible!";
 
   97   StkFloat *samples = &frames[channel];
 
   98   unsigned int j, hop = frames.
channels() - nChannels;
 
   99   if ( nChannels == 1 ) {
 
  100     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
 
  104     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
 
  106       for ( j=1; j<nChannels; j++ )
 
  107         *samples++ = lastFrame_[j];
 
  
STK one-pole filter class.
Definition: OnePole.h:20
Plucked(StkFloat lowestFrequency=10.0)
Class constructor, taking the lowest desired playing frequency.
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:407
void setFrequency(StkFloat frequency)
Set instrument parameters for a particular frequency.
StkFloat tick(StkFloat input)
Input one sample to the filter and return one output.
Definition: DelayA.h:137
An STK class to handle vectorized audio data.
Definition: Stk.h:275
void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
StkFloat tick(StkFloat input)
Input one sample to the filter and return one output.
Definition: OneZero.h:79
~Plucked(void)
Class destructor.
STK basic plucked string class.
Definition: Plucked.h:34
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:404
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
STK allpass interpolating delay line class.
Definition: DelayA.h:28
void noteOn(StkFloat frequency, StkFloat amplitude)
Start a note with the given frequency and amplitude.
STK one-zero filter class.
Definition: OneZero.h:20
STK noise generator.
Definition: Noise.h:21
The STK namespace.
Definition: ADSR.h:6
void clear(void)
Reset and clear all internal state.
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
Definition: Plucked.h:81
STK instrument abstract base class.
Definition: Instrmnt.h:19
void pluck(StkFloat amplitude)
Pluck the string with the given amplitude using the current frequency.
StkFloat lastOut(void) const
Return the last computed output value.
Definition: DelayA.h:80