⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subnoise.h

📁 Mobile STK for Symbian OS V0.1
💻 H
字号:
/***************************************************//*! \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.*//***************************************************/#ifndef STK_SUBNOISE_H#define STK_SUBNOISE_H#include "Noise.h"class SubNoise : public Noise{ public:  //! Default constructor sets sub-sample rate to 16.  SubNoise( int subRate = 16 );  //! Class destructor.  ~SubNoise();  //! Return the current sub-sampling rate.  int subRate( void ) const { return rate_; };  //! Set the sub-sampling rate.  void setRate( int subRate ); protected:    StkFloat computeSample( void );  int counter_;  int rate_;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -