Green Noise and the Bark Scale
Green Noise and the Bark Scale
Well most of us can't enjoy (or even understand) synesthesia, it does make sense to think of the spectrum of sound is similar to the spectrum of color. Who would've thought our speech is green?
Join the DZone community and get the full member experience.Join For Free
Hortonworks Sandbox for HDP and HDF is your chance to get started on learning, developing, testing and trying out new features. Each download comes preconfigured with interactive tutorials, sample data and developments from the Apache community.
In a previous post I explained the rationale behind using names of colors to refer to different kinds of noise. The basis is an analogy between the spectra of sounds and the spectra of light. Red noise is biased toward the low end of the audio spectrum just as red light is toward the low end of the visible spectrum. Blue noise is biased toward the high end, just as blue light is toward the high end of the visible spectrum.
Green noise is based on a slightly different analogy with light as described here:
Blue, green and other noise colours seem not to be rigorously defined although the word “colour” is used a lot in describing noise. Some define the 7 rainbow colours to correspond to a width of about three critical bands in the Bark frequency scale such that green lies in the corresponding point of greatest sensitivity … [just as green light has] the greatest sensitivity for the eye. This identifies green noise as the most troublesome for speech systems.
This is different than the usual definition of red noise etc. in that it speaks of colors limited to a particular frequency range rather than being weighted toward that range. Usually red noise contains a broad spectrum of frequencies, but the weighted like 1/f2, so the spectrum decreases fairly quickly as frequency increases.
So what is this Bark frequency scale? First of all, the Bark scale was named in honor of acoustician Heinrich Barkhausen. On this scale, the audible spectrum runs from 0 to 24, each Bark being a sort of psychologically equal division. Lots of things in psychoacoustics work on the Bark scale rather than the scale of Hertz.
There are multiple ways to convert from Hz to Bark and back, each slightly different but approximately equivalent. A convenient form is:
z = 6 arcsinh(f/600)
Where f is frequency in Hertz and z is frequency in Bark. One reason this form is convenient is that it’s easy to invert:
f = 600 sinh(z/6)
A frequency of 24 Bark corresponds to around 16 kHz, so the audible spectrum doesn’t quite end at 24, at least for most young people, but applications are most concerned with the range of 0–24 Bark. If we define colors of noise according to the paragraph quoted above, red would run from 0–3 Barks, orange from 3–6, yellow from 6–9, green from 9–12, etc.
This would put green noise in the range of 1277 to 2176 Hz. In musical notation, E6 to C#7.
See this post for an explanation of the pitch notation and Python code for computing it from frequency.
Published at DZone with permission of John Cook , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.