comparison trunk/src/Modules/SNR/ModuleNoise.h @ 365:2f4530363f7a

- Added as-yet-unfinished support for a proper configuraiton file format - Added a couple of pythin scripts to generate HMM configuration files - Variable name changes and other cosmetic things - Added the option for the noise generation to do pink noise (untested)
author tomwalters
date Thu, 12 Aug 2010 11:28:11 +0000
parents 30dde71d0230
children
comparison
equal deleted inserted replaced
364:5a12172dcb73 365:2f4530363f7a
51 51
52 float sample_rate_; 52 float sample_rate_;
53 int buffer_length_; 53 int buffer_length_;
54 int channel_count_; 54 int channel_count_;
55 55
56 // True to generate pink noise, otherwise white noise
57 bool pink_;
58
59 // Filter state variables
60 float s0_;
61 float s1_;
62 float s2_;
63
56 float multiplier_; 64 float multiplier_;
57 65
58 // Random number generator which yeilds Gaussian-distributed values by 66 // Mersenne twister random number generator fed into a transform which
59 // The generator is a Mersenne twister 67 // yeilds Gaussian-distributed values
60 boost::variate_generator<boost::mt19937, 68 boost::variate_generator<boost::mt19937,
61 boost::normal_distribution<float> > 69 boost::normal_distribution<float> >
62 gaussian_variate_; 70 gaussian_variate_;
63 }; 71 };
64 } // namespace aimc 72 } // namespace aimc