{"id":20,"date":"2011-07-06T20:04:56","date_gmt":"2011-07-07T01:04:56","guid":{"rendered":"http:\/\/www.graygoo.net\/blog\/?p=20"},"modified":"2011-07-07T18:40:20","modified_gmt":"2011-07-07T23:40:20","slug":"the-color-of-noise","status":"publish","type":"post","link":"http:\/\/www.graygoo.net\/blog\/2011\/07\/the-color-of-noise\/","title":{"rendered":"The color of noise"},"content":{"rendered":"<p>You may have heard of the term &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/White_noise\">white noise<\/a>&#8220;, and seen &#8220;white noise generators&#8221; marketed as sleeping or concentration aids, without knowing exactly what white noise was. Colloquially, &#8220;white noise&#8221; may be thought of as random noise which is evenly spread over the entire frequency spectrum (Pure white noise is an idealization, but it can be approximated over a given frequency range. I won&#8217;t get into randomness here). Clearly, the term &#8220;white noise&#8221; takes its cue from &#8220;white light&#8221;, which is the sum of all colors of light before they are refracted through a prism. <\/p>\n<p>In keeping with this theme, there are other &#8220;colors&#8221; of noise. There is &#8220;pink&#8221; noise, which is random noise which attenuates (or weakens) at the rate of 3 decibels per octave (i.e. it halves in power for every doubling of frequency). &#8220;Red&#8221; noise drops off at 6dB per octave. Red noise is sometimes called &#8220;Brown noise&#8221;, but Brown in this case refers to Robert Brown of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Brownian_motion\">Brownian motion<\/a> fame, and not the color! <\/p>\n<p>Going the other direction, blue noise and purple noise <em>increase<\/em> at 3dB and 6dB per octave, respectively. Each color of noise has a distinctive sound and it&#8217;s interesting to compare them. White noise generators are sometimes used to &#8220;jam&#8221; distracting ambient sounds or simply to provide relaxation. I prefer Brown noise.<\/p>\n<p>Now for something useful. Linux comes with a very handy audio utility called <code>sox<\/code> which includes the ability to generate noise. I got the idea from <a href=\"http:\/\/unreasonable.org\/node\/303\">this blog<\/a> when looking for WNG software. The frontend to sox is the <code>play<\/code> command.<\/p>\n<p>Here&#8217;s an example:<\/p>\n<p><code>play -n synth brownnoise<\/code><\/p>\n<p><code>pinknoise<\/code> and <code>whitenoise<\/code> options are also available.<\/p>\n<p><code>sox<\/code> is useful for many more purposes than generating noise, so it&#8217;s definitely a utility worth looking into.  For those who prefer to get their noise at retail, there&#8217;s <a href=\"http:\/\/simplynoise.com\/\">SimplyNoise<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may have heard of the term &#8220;white noise&#8220;, and seen &#8220;white noise generators&#8221; marketed as sleeping or concentration aids, without knowing exactly what white noise was. Colloquially, &#8220;white noise&#8221; may be thought of as random noise which is evenly &hellip; <a href=\"http:\/\/www.graygoo.net\/blog\/2011\/07\/the-color-of-noise\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,11,8],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-ugoo","tag-audio","tag-dsp","tag-linux"],"_links":{"self":[{"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.graygoo.net\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->