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


/*! \class SubNoise
    \brief STK sub-sampled noise generator.

    Generates a new random number every "rate" ticks
    using the C rand() function.  The quality of the
    rand() function varies from one OS to another.

    by Perry R. Cook and Gary P. Scavone, 1995 - 2005.


#include "Noise.h"

class SubNoise : public Noise

  //! Default constructor sets sub-sample rate to 16.
  SubNoise( int subRate = 16 );

  //! Class destructor.

  //! Return the current sub-sampling rate.
00029   int subRate( void ) const { return rate_; };

  //! Set the sub-sampling rate.
  void setRate( int subRate );


  StkFloat computeSample( void );

  int counter_;
  int rate_;



Generated by  Doxygen 1.6.0   Back to index