When recording analog sound, it is useful to classify the captured audio as either desired or undesired (let’s call the latter “noise”). This classification depends on the type of sound we hope to capture – typically we might think of an instrumentalist, vocalist, or speech signal, but the numbers of categories are nearly endless, they could be ecological (e.g., urban soundscape or wildlife sounds), physiological (e.g., lung or cardiovascular sounds), among many others. However, what could be considered our desired signal in one context, could be considered noise in another. For example, environmental sounds at a sporting event are often intentionally mixed in with the broadcast to give a sense of immersion, but these same environmental sounds may be considered noise when capturing film dialog. In addition to the ambient soundscape captured by a microphone, we could also add other types of noise, including electrical (e.g., ground hum or hiss) and mechanical (e.g., vibrations of the microphone). Each of these can further be classified by their duration; transient sounds are short duration while steady-state sounds ongoing or periodic.
1.1.1 Measuring audio levels
With acoustic sound, we measure its level in units of pressure, the Pascal (Pa), which is simply force over an area (N/m2). When sound travels through air, we are not measuring the actual pressure of the air, but rather the pressure fluctuation around static pressure, which is around 101,325 Pa at sea level. Sound Pressure Level (SPL) fluctuations about static pressure that would typically be captured range anywhere from less than 1 mPa to as great as 10 Pa. The level of an acoustic audio signal can be reported as its absolute peak amplitude (known as peak SPL), or the range from its lowest trough to its highest peak (peak-to-peak SPL), or as its average value, typically reported as its root-mean-square (RMS) value. Unless otherwise specified, an SPL value can be assumed to be the RMS level, given by:
This equation tells us to take every value in our audio signal, xn, and square it. Then sum all of those values together and divide by the total number of values, N, giving the average of the squared values. Finally, we take the square root of the mean of the squared values to obtain the RMS.
Without diving into psychoacoustics, or the study of the perception of sound, it can be noted that our ears perceive sound logarithmically. This applies to both SPL as well as frequency. For example, a doubling of frequency corresponds to an octave jump. To the human ear, an octave interval sounds the same, irrespective of the starting frequency. For example, the interval from 100 Hz to 200 Hz (a 100 Hz range) sounds perceptually similar to the interval from 200 Hz to 400 Hz (a 200 Hz range). For this reason, the ear is said to hear frequencies on a logarithmic base-2 scale, or log2. For SPLs, the ear also hears logarithmically, but we use base-10 instead, or log10. The unit that audio is typically reported in is a decibel (dBSPL), defined as
Here, the signal, xRMS, is converted to a logarithmic scale, with a reference of 20 μPa, the quietest SPL perceivable by the human ear. It is not uncommon to see dBSPL reported simply as “dB”, but this is incorrect since a dB is strictly a ratio between any two values, while a dBSPL is a ratio between a SPL and 20 μPa. Another common dB unit in audio is dBFull-Scale, or simple dBFS. “Full Scale” refers to the dB ratio between an audio level and the maximum representable level by the system, therefore the unit dBFS could be thought of as the dB below Full Scale. In a digital audio system, the largest representable value is fixed – we can assign this level any arbitrary value, but 1.0 is typical. If we measure, in the same digital audio system, a signal with an RMS level of 0.1, then its dBFS can be calculated as