 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   66   void pluck( StkFloat amplitude );
 
   69   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   78   StkFloat 
tick( 
unsigned int channel = 0 );
 
   99   StkFloat baseLoopGain_;
 
  100   StkFloat lastFrequency_;
 
  101   StkFloat lastLength_;
 
  102   StkFloat stretching_;
 
  103   StkFloat pluckAmplitude_;
 
  104   StkFloat pickupPosition_;
 
  110   StkFloat temp = delayLine_.
lastOut() * loopGain_;
 
  113   for (
int i=0; i<4; i++)
 
  114     temp = biquad_[i].
tick(temp);
 
  117   temp = filter_.
tick(temp);
 
  119   lastFrame_[0] = delayLine_.
tick(temp);
 
  120   lastFrame_[0] = lastFrame_[0] - combDelay_.
tick( lastFrame_[0] );
 
  121   return lastFrame_[0];
 
  126   unsigned int nChannels = lastFrame_.
channels();
 
  127 #if defined(_STK_DEBUG_) 
  128   if ( channel > frames.
channels() - nChannels ) {
 
  129     oStream_ << 
"StifKarp::tick(): channel and StkFrames arguments are incompatible!";
 
  134   StkFloat *samples = &frames[channel];
 
  135   unsigned int j, hop = frames.
channels() - nChannels;
 
  136   if ( nChannels == 1 ) {
 
  137     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
 
  141     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
 
  143       for ( j=1; j<nChannels; j++ )
 
  144         *samples++ = lastFrame_[j];
 
  
void controlChange(int number, StkFloat value)
Perform the control change specified by number and value (0.0 - 128.0).
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:407
STK biquad (two-pole, two-zero) filter class.
Definition: BiQuad.h:21
StkFloat tick(StkFloat input)
Input one sample to the filter and return one output.
Definition: DelayA.h:137
STK linear interpolating delay line class.
Definition: DelayL.h:28
void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
STK plucked stiff string instrument.
Definition: StifKarp.h:37
void setFrequency(StkFloat frequency)
Set instrument parameters for a particular frequency.
An STK class to handle vectorized audio data.
Definition: Stk.h:276
void setBaseLoopGain(StkFloat aGain)
Set the base loop gain.
StkFloat tick(StkFloat input)
Input one sample to the filter and return one output.
Definition: OneZero.h:79
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.
void noteOn(StkFloat frequency, StkFloat amplitude)
Start a note with the given frequency and amplitude.
STK allpass interpolating delay line class.
Definition: DelayA.h:29
void setStretch(StkFloat stretch)
Set the stretch "factor" of the string (0.0 - 1.0).
STK one-zero filter class.
Definition: OneZero.h:21
StkFloat tick(StkFloat input)
Input one sample to the filter and return one output.
Definition: DelayL.h:163
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
Definition: StifKarp.h:108
void pluck(StkFloat amplitude)
Pluck the string with the given amplitude using the current frequency.
STK noise generator.
Definition: Noise.h:22
void clear(void)
Reset and clear all internal state.
The STK namespace.
Definition: ADSR.h:6
STK instrument abstract base class.
Definition: Instrmnt.h:20
~StifKarp(void)
Class destructor.
StifKarp(StkFloat lowestFrequency=10.0)
Class constructor, taking the lowest desired playing frequency.
void setPickupPosition(StkFloat position)
Set the pluck or "excitation" position along the string (0.0 - 1.0).
StkFloat lastOut(void) const
Return the last computed output value.
Definition: DelayA.h:80