Sampling frequency (audio)


Free Download Mp4Gain
picture

Sampling frequency (audio)

sampling frequency

Time sampling is a process in which, during encoding of a continuous audio signal, the sound wave is divided into small separate time sections, and a certain amplitude value is set for each section. The greater the amplitude of the signal, the louder the sound.

sampling frequency

Sound depth (encoding depth): the number of bits per sound encoding.

Volume levels (signal levels): Sound can have different volume levels. The number of different loudness levels is calculated by the formula N = 2 I where I is the depth of the sound.

Sampling rate: the number of measurements of the input signal level per unit of time (for 1 second). The higher the sampling rate, the more accurate the binary encoding procedure will be. Frequency is measured in Hertz (Hz). 1 measurement in 1 second -1 Hz.

1000 measurements in 1 second 1 kHz. Let the sample rate of the letter D. One of three frequencies is selected for encoding: 44.1 KHz, 22.05 KHz, 11.025 KHz.

The range of frequencies a person hears is believed to be 20 Hz to 20 kHz.

The quality of the binary encoding is a value that is determined by the encoding depth and the sample rate.

Audio adapter (sound card) – A device that converts electrical vibrations from an audio frequency to a numeric binary code when inputting sound and vice versa (from a numerical code to electrical vibrations) when playing sound.

Audio adapter characteristics: sampling rate and recording capacity).

The register size is the number of bits in the audio adapter register. The higher the capacity of the digit, the smaller the error of each individual conversion of the value of electric current into a number and vice versa. If the bit width is I, then by measuring the input signal, 2 I = N different values ​​can be obtained.

The size of a digital mono audio file (A) is measured by the formula:

A = D * T * I ​​/ 8, where D is the sampling frequency (Hz), T is the resonance time or the recording of the sound, I register bit (resolution). This formula measures the size in bytes.

The size of a digital stereo audio file (A) is measured by the formula:

A = 2 * D * T * I ​​/ 8, the signal is recorded for two speakers, since the left and right sound channels are encoded separately.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

The rule of thumb for choosing the sampling frequency

The rule of thumb for choosing the sampling frequency … of signals in data acquisition systems.

choose sampling frequency

Information that constantly changes over time is analog information. Computers are digital devices and therefore, to work with information, they must receive information converted from analog to digital format.

Sampling Frequency

The concept of analog-to-digital conversion is simple in principle: an analog-to-digital converter (ADC) samples (samples) the input analog signals at a specific frequency and converts each sample into a digital code, and then transfers these codes to a computer to represent a time-varying analog signal. signal.

A similar process is used in hardware data acquisition and control systems, where analog signals need to be isolated at the physical layer. Signal isolation is often required to eliminate grounding and noise problems, in such situations “sampling” (signal sampling) is used to carry the analog signal across a physical barrier.

Regardless of where sampling is used, you must choose the correct sample rate. The signals reconstructed from these samples must adequately represent the original analog signal. Obviously, too slow sampling (for example, a 10 Hz signal polled every 30 minutes) can result in the loss of valuable information, while too fast sampling (a 10 Hz signal polled at 300 MHz) will create serious circuitry. Problems. Fortunately, there is an answer to the question about the sample rate. Figure 1 shows a typical sampling process.

Regardless of its original characteristics, data in modern collection systems is stored digitally. Therefore, the analog information must first be converted to digital format using an analog-to-digital converter (ADC). In this type of system, the sampling frequency MUST be higher than the highest frequency contained in the input signal. This is not a wish, but a law! In fact, the Nyquist test (part of the law) requires that we sample at a rate at least twice as high as the highest frequency in the signal fed to the ADC. This is to avoid creating aliases, which can cause serious errors.

(Original signal (a), sample signals (b), input signal samples (c))
The Nyquist criterion defines the minimum sampling frequency required to obtain meaningful information about the content of the signal’s frequency properties. Fourier analysis provides the tools necessary to obtain the relationship between the amplitude of each frequency component and a given waveform. Given this information and the correct processing of the signal, it is possible to ensure the restoration of the original amplitude and shape of the original signal in time (time domain).

Typically, software products are designed to display time-domain data in its original, raw form. As a result, sinusoidal waveforms can be distorted by triangular shapes. This is a presentation problem, not a raw data problem. In these cases, the accuracy of the representation can be improved by using a sample rate that does not meet the Nyquist criterion.

Sometimes the basic physical properties of the input converter determine its maximum frequency response. In other applications, the Nyquist criterion is implemented by applying a low-pass filter to the input of the ADC to block out unwanted high frequencies. In either case, all signal frequencies above half the sample rate must be attenuated so that they are below the ADC quantization step.