 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   57   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   66   StkFloat 
tick( 
unsigned int channel = 0 );
 
   90   StkFloat baseFrequency_;
 
   92   StkFloat fippleFreqMod_;
 
   93          StkFloat fippleGainMod_;
 
   94          StkFloat blowFreqMod_;
 
   97          int subSample_, subSampCount_;
 
  102   unsigned int nChannels = lastFrame_.
channels();
 
  103 #if defined(_STK_DEBUG_) 
  104   if ( channel > frames.
channels() - nChannels ) {
 
  105     oStream_ << 
"Whistle::tick(): channel and StkFrames arguments are incompatible!";
 
  110   StkFloat *samples = &frames[channel];
 
  111   unsigned int j, hop = frames.
channels() - nChannels;
 
  112   if ( nChannels == 1 ) {
 
  113     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
 
  117     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
 
  119       for ( j=1; j<nChannels; j++ )
 
  120         *samples++ = lastFrame_[j];
 
  
STK one-pole filter class.
Definition: OnePole.h:21
STK sphere class.
Definition: Sphere.h:21
STK sinusoid oscillator class.
Definition: SineWave.h:26
void noteOn(StkFloat frequency, StkFloat amplitude)
Start a note with the given frequency and amplitude.
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:407
An STK class to handle vectorized audio data.
Definition: Stk.h:276
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
STK linear line envelope class.
Definition: Envelope.h:22
void controlChange(int number, StkFloat value)
Perform the control change specified by number and value (0.0 - 128.0).
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 noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
void setFrequency(StkFloat frequency)
Set instrument parameters for a particular frequency.
STK 3D vector class.
Definition: Vector3D.h:20
STK noise generator.
Definition: Noise.h:22
The STK namespace.
Definition: ADSR.h:6
~Whistle(void)
Class destructor.
STK instrument abstract base class.
Definition: Instrmnt.h:20
void stopBlowing(StkFloat rate)
Decrease breath velocity with given rate of decrease.
STK police/referee whistle instrument class.
Definition: Whistle.h:33
void clear(void)
Reset and clear all internal state.
Whistle(void)
Class constructor.
void startBlowing(StkFloat amplitude, StkFloat rate)
Apply breath velocity to instrument with given amplitude and rate of increase.