Logo Search packages:      
Sourcecode: csound version File versions  Download package

Clarinet::Clarinet ( StkFloat  lowestFrequency  ) 

Class constructor, taking the lowest desired playing frequency.

An StkError will be thrown if the rawwave path is incorrectly set.

Definition at line 28 of file Clarinet.cpp.

References Stk::sampleRate(), DelayL::setDelay(), SineWave::setFrequency(), Delay::setMaximumDelay(), ReedTable::setOffset(), and ReedTable::setSlope().

{
  length_ = (long) (Stk::sampleRate() / lowestFrequency + 1);
  delayLine_.setMaximumDelay( length_ );
  delayLine_.setDelay( length_ / 2.0 );
  reedTable_.setOffset((StkFloat) 0.7);
  reedTable_.setSlope((StkFloat) -0.3);

  vibrato_.setFrequency((StkFloat) 5.735);
  outputGain_ = (StkFloat) 1.0;
  noiseGain_ = (StkFloat) 0.2;
  vibratoGain_ = (StkFloat) 0.1;
}


Generated by  Doxygen 1.6.0   Back to index