51   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   54   StkFloat 
tick( 
unsigned int channel = 0 );
 
   74   temp = vibrato_.
tick() * modDepth_ * 0.2;    
 
   75   waves_[0]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[0]);
 
   76   waves_[1]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[1]);
 
   77   waves_[2]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[2]);
 
   78   waves_[3]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[3]);
 
   80   temp = gains_[2] * adsr_[2]->tick() * waves_[2]->tick();
 
   81   waves_[1]->addPhaseOffset( temp );
 
   83   waves_[3]->addPhaseOffset( twozero_.
lastOut() );
 
   84   temp = (1.0 - (control2_ * 0.5)) * gains_[3] * adsr_[3]->
tick() * waves_[3]->tick();
 
   87   temp += control2_ * 0.5 * gains_[1] * adsr_[1]->tick() * waves_[1]->tick();
 
   88   temp = temp * control1_;
 
   90   waves_[0]->addPhaseOffset( temp );
 
   91   temp = gains_[0] * adsr_[0]->tick() * waves_[0]->tick();
 
   93   lastFrame_[0] = temp * 0.5;
 
   99   unsigned int nChannels = lastFrame_.
channels();
 
  100 #if defined(_STK_DEBUG_) 
  101   if ( channel > frames.
channels() - nChannels ) {
 
  102     oStream_ << 
"HevyMetl::tick(): channel and StkFrames arguments are incompatible!";
 
  107   StkFloat *samples = &frames[channel];
 
  108   unsigned int j, hop = frames.
channels() - nChannels;
 
  109   if ( nChannels == 1 ) {
 
  110     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
 
  114     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
 
  116       for ( j=1; j<nChannels; j++ )
 
  117         *samples++ = lastFrame_[j];