Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 807 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 807 Bytes

Brown Noise

Brown noise is the lower-frequency component of white noise (the random static you can hear between radio and TV channels). Research shows that brown noise can aid in concentration (http://skeptics.stackexchange.com/a/8066). I had a brown noise mp3 that I would leave looping, but every 10 minutes when it looped it paused for a split second, which could be jarring during moments of focus. So I decided to make this program, which spits out unlimited brown noise forever.

How it works:

  • Uses the free and excellent NAudio library for the actual playback (https://github.com/naudio/NAudio)
  • Prepare a buffer of samples to play by filling the buffer with random noise (NoiseProvider32.Read)
  • Pass it through a low-pass filter at 3kHz (in the Read method, filter.Transform)
  • Play that