Frequency Variation
Attenuation
In an ideal world, every sound can be modeled as a simple sine wave with the following formula.
In this formula,
- determines the amplitude,
- determine the frequency,
- determine the phase,
- is time,
- is the position of a the vibration sensor in the microphone.
Unfortunately, very few sounds are represented by a simple sine wave. Vibrating strings have harmonics that produce sounds at multiple frequencies. This doesn't even take into account that there could be multiple sound sources producing sound at the same time. With the discrete Fourier transform (DFT), we can separate out the frequency components of an audio signal. A more accurate formula for this situation would be the following formula.
Unfortunately, this scenario is still highly unrealistic. Sound is caused by vibration, and vibrating objects lose energy through friction as they are vibrating. This phenomenon is called attenuation. High frequency waves attenuate faster than low frequency waves because more vibrations result in more friction between air molecules. If we let represent attenuation for the th frequency component, the a sound signal can be modeled by the following formula.
Attenuation typically increases with the square of the frequency, . This means that not only does the overall amplitude of a wave change over time, but the weighted distribution of frequency components changes as well.
Ultimately, it doesn't take a lot of math to figure out that sounds don't last forever. In a 5-minute audio clip, frequencies will change over time and we need to have tools to analyze audio in these situations.
Linear Chirps
A chirp is an audio signal in which the frequency changes over time. The frequency is replaced with a function of time .
Technically speaking, every wave with constant frequency would have , but since those waves have a constant frequency they aren't considered chirps.
If , then the chirp is called a linear chirp. The time domain, frequency domain and audio for a linear chirp are shown in Module 1.
- Frequency Domain
- Time Domain
- Audio
- Code
Loading...
Exponential Chirps
Notice how the linear chirp sweeps through the low frequencies so quickly that you can barely notice them at the end. This is because humans perceive frequencies on a logarithmic scale, not a linear scale. If we want to generate a chirp we perceive as linearly decreasing, then we need to generate an exponential chirp. The time domain, frequency domain and audio for an exponential chirp are shown in Module 2.
- Frequency Domain
- Time Domain
- Audio
- Code
Loading...
Hyperbolic Chirps
The Doppler effect is given by the following equation.
In this equation,
- is the observer frequency of sound,
- is the speed of sound waves,
- is the observer velocity,
- is the source velocity, and
- is the actual frequency of sound waves.
If the source of the sound is accelerating, i.e. if the velocity of the source is increasing, then the observed frequency is decreasing hyperbolically.