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

Brass::Brass ( 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 27 of file Brass.cpp.

References clear(), Stk::sampleRate(), ADSR::setAllTimes(), PoleZero::setBlockZero(), DelayA::setDelay(), setFrequency(), SineWave::setFrequency(), BiQuad::setGain(), and Delay::setMaximumDelay().

{
  length_ = (unsigned long) (Stk::sampleRate() / lowestFrequency + 1);
  delayLine_.setMaximumDelay( length_ );
  delayLine_.setDelay( 0.5 * length_ );

  lipFilter_.setGain( 0.03 );
  dcBlock_.setBlockZero();

  adsr_.setAllTimes( 0.005, 0.001, 1.0, 0.010);

  vibrato_.setFrequency( 6.137 );
  vibratoGain_ = 0.0;

  this->clear();
      maxPressure_ = 0.0;
  lipTarget_ = 0.0;

  // This is necessary to initialize variables.
  this->setFrequency( 220.0 );
}


Generated by  Doxygen 1.6.0   Back to index