Commit 350de255e8
Unsigned
Layout: unified · split
docs/glossary/audio.md +10 −8
| @@ -107,20 +107,24 @@ DSD’s high sampling rate allows for a wide dynamic range, even with a 1-bit de | ||
| 107 | 107 | |
| 108 | 108 | ## Analog to Digital |
| 109 | 109 | |
| 110 | Analog audio signals are continuous sine waves. To process them digitally, we need to convert them into discrete signals. The discretization is performed on the amplitude and time domains. | |
| 110 | Analog signals are signals with an alternating current. The “analog” part refers to how the signal usually correlates to some sort of physical property. For example, a signal generated by a power generator would be analogous to the speed at which the rotation of the generator occurs. In terms of audio, the signal will correlate to the oscillation of the driver used to reproduce the sound. In other words, how the sound would vibrate through the air. | |
| 111 | ||
| 112 | In order to process the analogous signals digitally, we need to perform a process called discretization. This allows for analog signals to be represented in either their amplitude or time domains for digital analysis. | |
| 111 | 113 | |
| 112 | 114 | - Discretization of time -> Sampling |
| 113 | 115 | - Discretization of amplitude -> Quantization |
| 114 | 116 | |
| 115 | 117 | |
| 116 | 118 | ### Sampling |
| 117 | Sampling involves taking periodic cuts of analog signals, also known as PCM. Learn more about this in [**sample rate :mdi-arrow-top-right:**](#sample-rate). | |
| 119 | Sampling is the process of taking a signal and splitting it based on an algorithm. Sampling can be done in the frequency, amplitude, or time domains. Each process involves processing the data differently, but allows for accurate reproduction of an analog signal in the digital realm. | |
| 120 | ||
| 121 | When referring to audio signals, sampling is the process of splitting signals by time (Hz). This allows for every single frequency in the audible spectrum to accurately be recorded. Learn more about this in [**sample rate :mdi-arrow-top-right:**](#sample-rate). | |
| 118 | 122 | |
| 119 | 123 | |
| 120 | 124 |  |
| 121 | 125 | |
| 122 | 126 | ### Quantization |
| 123 | Quantization involves sampling an analog audio signal and converting it into a digital format. This process includes taking periodic samples of the audio wave and recording the amplitude of the analog signal per each sample. Because the recorded amplitude values are approximations of the original, there are inherent errors. These errors manifest as a noise floor within the sound wave. A higher bit depth reduces this error induced noise floor. This is because the quantization error is the difference between the original and quantized signals. Larger bit depths allow for more approximate quantizations, reducing the amplitude of the error signal. | |
| 127 | Quantization is the process of sampling an analog audio signal and converting it into a digital format. This is performed by taking periodic samples of the audio waveform and recording the amplitude of the analog signal at each sample. This process is done through an approximate measurement. As such, an inherent error exists for every single amplitude recording. This error will manifest as a “noise floor”, or noise that exists below a decibel threshold. Higher bit depths can be utilized in order to reduce this error, but the noise will always exist in the signal chain. | |
| 124 | 128 | |
| 125 | 129 | |
| 126 | 130 |  |
| @@ -129,20 +133,18 @@ Quantization involves sampling an analog audio signal and converting it into a d | ||
| 129 | 133 | ## Sample Rate |
| 130 | 134 | The amount of samples taken from the analog audio signal per cycle is known as the sample rate. As it's a per-second measurement, the unit is Hz (Hertz). Hertz are a measurement of frequency, or how many periods of a wave exist per second. |
| 131 | 135 | |
| 132 | A higher sample rate means more data points are taken per second. This doesn't necessarily result in a higher quality signal. A higher sample allows for audio signals of higher frequencies, but for the communal frequency range, there are no advantages. | |
| 136 | A higher sample rate means more data points are taken per second. This doesn't necessarily result in a higher quality signal. A higher sample rate allows for the sampling of larger frequencies, but for the human audible spectrum, there are no advantages. | |
| 133 | 137 | |
| 134 | 138 | For listeners, 44.1kHz is sufficient to represent all humanly audible frequencies. 44.1kHz is the standard sampling rate for CDs, and 48kHz is the standard for DVDs and streaming services (originally brought forth to aid in timing with TV broadcasts). There is no functional difference between the two, beyond resampling issues that may arise between the mediums. |
| 135 | 139 | |
| 136 | Higher sampling rates are often desirable by producers as it allows them modify the audio more flexibly without adding additional noise, but this is not relevant for playback. Higher sampling rates available on DACs are generally used for processing headroom (for e.g. low-pass filters), that may result in an audible difference. | |
| 137 | ||
| 140 | Higher sampling rates are often desirable by producers as it allows them to modify the audio more flexibly without adding additional noise. It's not really relevant for playback. | |
| 138 | 141 | |
| 139 | 142 | ::: details Dithering |
| 140 | 143 | Dithering is a process used when converting from different bit widths. Converting raw audio data to a different bit width will induce quantization errors during the conversion process. These are errors caused by averaging amplitudes. A dither signal can be applied to the audio before conversion, which is effectively noise. While noise may seem undesirable, it actually improves the quantization and significantly reduces the errors during the conversion. The noise is not perceivable to humans, and does not effect the quality of a mix whatsoever. |
| 141 | 144 | ::: |
| 142 | 145 | |
| 143 | 146 | ::: details Nyquist–Shannon Sampling Theorem |
| 144 | All audio signal sampling is based on this theorem. The theorem states that the sample rate has to be at least twice the maximum frequency of the analog signal to avoid aliasing. So, if the analog signal has a max frequency of 5kHz, the sample rate should be be at least 10kHz to reduce aliasing. | |
| 145 | ||
| 147 | Nyquist Sampling Theorem dictates how sampling should be done in order to avoid aliasing. The primary technique is to utilize a sample rate that is twice that of the desired maximum frequency. To ensure that the entire spectrum is being sampled, a very small margin should be added to the sample frequency. For example, while the human hearing spectrum is said to cap out at 20kHz, the desired sampling frequency was chosen to be 20.05kHz. A small margin such as this aids in ensuring the desired frequencies are captured during sampling. The sample rate for audio was thus twice that value, or 44.1kHz. | |
| 146 | 148 | |
| 147 | 149 | Another condition is bandlimiting. During the conversion of signals, high frequency distortion is added to the result. A band-pass filter helps to isolate the target frequencies from this distortion. Aliasing occurs if this distortion is not filtered. The folded wave interferes with the main wave and creates a new, unwanted sound wave. |
| 148 | 150 | |