 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   43 const int MAX_BANDED_MODES = 20;
 
   67   void startBowing( StkFloat amplitude, StkFloat rate );
 
   73   void pluck( StkFloat amp );
 
   76   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   79   void noteOff( StkFloat amplitude );
 
   85   StkFloat 
tick( 
unsigned int channel = 0 );
 
  105   BiQuad   bandpass_[MAX_BANDED_MODES];
 
  106   DelayL   delay_[MAX_BANDED_MODES];
 
  107   StkFloat maxVelocity_;
 
  108   StkFloat modes_[MAX_BANDED_MODES];
 
  111   StkFloat gains_[MAX_BANDED_MODES];
 
  112   StkFloat basegains_[MAX_BANDED_MODES];
 
  113   StkFloat excitation_[MAX_BANDED_MODES];
 
  114   StkFloat integrationConstant_;
 
  115   StkFloat velocityInput_;
 
  116   StkFloat bowVelocity_;
 
  118   StkFloat bowPosition_;
 
  126   unsigned int nChannels = lastFrame_.
channels();
 
  127 #if defined(_STK_DEBUG_) 
  128   if ( channel > frames.
channels() - nChannels ) {
 
  129     oStream_ << 
"BandedWG::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).
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
STK ADSR envelope class.
Definition: ADSR.h:24
void startBowing(StkFloat amplitude, StkFloat rate)
Apply bow velocity/pressure to instrument with given amplitude and rate of increase.
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:20
BandedWG(void)
Class constructor.
STK linear interpolating delay line class.
Definition: DelayL.h:27
void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
~BandedWG(void)
Class destructor.
An STK class to handle vectorized audio data.
Definition: Stk.h:275
void setStrikePosition(StkFloat position)
Set strike position (0.0 - 1.0).
void stopBowing(StkFloat rate)
Decrease bow velocity/breath pressure with given rate of decrease.
void clear(void)
Reset and clear all internal state.
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.
void pluck(StkFloat amp)
Pluck the instrument with given amplitude.
Banded waveguide modeling class.
Definition: BandedWG.h:45
The STK namespace.
Definition: ADSR.h:6
STK instrument abstract base class.
Definition: Instrmnt.h:19
void setPreset(int preset)
Select a preset.
void setFrequency(StkFloat frequency)
Set instrument parameters for a particular frequency.
STK bowed string table class.
Definition: BowTable.h:22