diff 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
line wrap: on
line diff
--- a/trunk/src/Modules/SNR/ModuleNoise.h	Thu Aug 12 09:15:49 2010 +0000
+++ b/trunk/src/Modules/SNR/ModuleNoise.h	Thu Aug 12 11:28:11 2010 +0000
@@ -53,10 +53,18 @@
   int buffer_length_;
   int channel_count_;
 
+  // True to generate pink noise, otherwise white noise
+  bool pink_;
+
+  // Filter state variables
+  float s0_;
+  float s1_;
+  float s2_;
+
   float multiplier_;
 
-  // Random number generator which yeilds Gaussian-distributed values by
-  // The generator is a Mersenne twister
+  // Mersenne twister random number generator fed into a transform which 
+  // yeilds Gaussian-distributed values
   boost::variate_generator<boost::mt19937,
                            boost::normal_distribution<float> >
                            gaussian_variate_;