Working with sound


Free Download Mp4Gain
picture

Working with sound

Analog and Digital

Analog and digital audio

 Analog and Digital

Analog sound recording is based on the conversion of acoustic waves into electrical waves using a microphone. A microphone consists of a small membrane that can vibrate and a mechanism to convert the vibrations of the membrane into an electrical signal. (The exact electrical mechanism differs depending on the type of microphone.) Generally, a higher pressure corresponds to a higher voltage and vice versa.

The recorder transmits the waveform one more time, this time from an electrical signal through a wire to a magnetic signal on tape. When the recording is played back, the opposite process occurs: the magnetic signal is converted into an electronic signal, which makes the speaker vibrate (usually electromagnetic).

The main device for digital recording is an analog-to-digital converter (ADC, analog-to-digital converter, ADC). The ADC captures a chunk of electrical voltage on the audio path and presents it as a number, which is then transmitted to the computer. By capturing the voltage several thousand times per second, you can get a signal quite close to the original. The unit of capture is called a sample (each number in a sound file represents corresponds to a sample in a waveform).

There are two factors that determine the quality of a digital recording:

Sampling rate
The frequency at which samples are captured or played, measured in Hertz (Hz) or samples per second. A typical audio CD is recorded at a sample rate of 44100 Hz, more commonly known as 44 kHz for short. This is the same default sample rate used for most digitals.

Sample format (size)
The number of digits in the digital representation of each sample. Imagine that the sample rate is plotted horizontally and the sample size is plotted vertically. Audio CD is 16 bits wide, which corresponds to approximately 5 decimal places.

Higher sample rates for digital recording provide accurate recording at higher frequencies. The sample rate must be at least twice the highest desired sample rate. The average human ear is believed to be unable to distinguish frequencies above 20,000 Hz, so 44,100 Hz was chosen as the standard for audio CDs. Now the transition to the frequencies of 96 and 192 kHz is taking place gradually, in particular within the DVD-Audio format. However, many people just don’t hear the difference between 44.1 kHz and 192 kHz audio.

Larger sample sizes provide a greater dynamic range, that is, the ability to present louder and quieter sounds. If you are familiar with the decibel (dB) scale, you can give an example from ordinary audio CDs – its dynamic range is theoretically 90 dB, but it actually sounds lower than -24 dB. Audacity supports two more sample sizes: 24-bit, which is most often used in digital studio recording, and 32-bit floating point, whose dynamic range covers all imaginable needs, despite the fact that the data with these parameters occupies just twice the disk space compared to 16-bit audio.

When playing digital sound, a digital-to-analog converter (DAC) is used. In this case, to recreate the original signal and then digitized with the ADC, a sample is taken, from which a certain voltage is established at the analog outputs. The first CD players did just that, so the sound quality was not very good. Modern players also smooth out the audio signal by sampling within a range of the sampling frequency. The quality of the filters on the DAC also affects the sound signal that is recreated. The filter is one of the signal adaptation stages in the DAC.

The inevitable loss in the transition from analog to digital audio can be offset by a number of advantages of digital recording. Digital data can be copied as much as you like and there is no loss of quality. This data can be burned to a music CD or posted on the Internet as compressed files. Also, digital recordings are much easier to edit than analog tapes.

A personal computer has all the necessary devices to convert audio data from analog to digital and vice versa. First of all, it’s a sound card, an additionally installed separate device like Creative SBLive !, and maybe a sound chip built into the motherboard. In both cases, the audio device contains an analog-to-digital converter (ADC) to record sound and a digital-to-analog converter (DAC) to play it back. The operating system you are using interacts with the sound card,


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Analog and digital sound sources

Analog and digital sound sources

analog and digital audio

Digital music comes from two main sources: analog and digital.

Analog and Digital

Analogous sources
An analog music source must use an analog-to-digital converter, such as a sound card, to convert the physical changes of the analog medium into a digital file that can be read by a computer. An analog medium is an object that stores music in itself through physical changes.

For example:

A cassette recorder changes the degree of magnetization of a cassette tape to record sound. Connecting a cassette deck to a recording device allows you to make a digital copy of an analog cassette.
The recorder cuts grooves in the vinyl record to create a physical representation of the sound. Ripping vinyl with a preamp and sound card allows you to make a digital copy of an analog record.
Analog recordings can be converted to digital music files in various formats, such as FLAC and MP3. Vinyl recordings can always be posted to the site, but posting tape recordings and other analog sources requires approval from the moderator.

Digital music sources
Music from digital sources is already encoded in a computer-compatible format, so no additional conversion is required. A digital medium is an object that stores music digitally (as a sequence of binary numbers).

For example:

CD
DVD
Super Audio CD (SACD)
Content from online stores (iTunes, Amazon, etc.)
Music from digital sources can be uploaded to RED after analyzing the spectrograms of the files to verify lossy transcoding.

Comparison of analog to digital music sources
Controversy still exists as to whether music sounds differently from analog and digital sources. Some people prefer the feel of vinyl and find that music on vinyl sounds “warmer” and “brighter.” On the other hand, some believe that digital sources provide true, pure and authentic sound. Both are represented in RED, so you can compare and make your own choice!

Analog and digital

First of all, a fundamental distinction is necessary: ​​what is meant by an analog signal and what is meant by a digital signal. Sampling is in fact an analog-to-digital conversion, and to understand how this is accomplished, it is necessary to understand what the subjects of this transformation are.

The classic definition of “analog” and “digital” is as follows.
The analog signal is one in which the variation is continuous in time.
The digital signal is one in which the variation in time occurs in a discrete way.
Pay attention to this definition because it expresses a very simple concept but at the same time misunderstood.

Let’s use some examples to get the concept down.
As a first example, let’s think of a watch with hands (suppose it is of the type in which the second hand moves continuously and not broken).

This clock not only marks the hours, minutes and seconds, but also any other type of fraction that we want to imagine: half seconds, tenths, hundredths, etc. As difficult as it is for the eye to distinguish the different moments, we know that the clock continuously passes through every instant of time that we can imagine.

Let’s think instead of a digital clock, those that indicate the time with numbers on a screen. This clock will mark the hours, minutes and seconds, activating the latter one by one; We do not see half seconds, tenths and so on: from 10:10:01 to 10:10:02 (for example) the clock will always read 10:10:01.

The watch with hands can be defined as an analog device, while the other watch, which provides only discrete, but not continuous measurements, is called digital.

A second example: let’s think about two different ways to monitor the level of a signal: the first, the classic needle VU-meter, typical of old mixers; the second, the column of bright LEDs, typical for example of equalizers.

The VU-meter, for reasons exactly analogous to those of the hand watch, is an analog device; The LED column, which only provides discrete data, is a digital device.

So what does it mean to sample a signal?

It means finding a discrete representation for something that originally has continuous variation.
The purpose is obvious: where, for example, to modify the analog recording of a voice, we must first convert the sound energy into electrical energy (through a microphone), then transform the electrical energy into the magnetic property of a tape ( through a tape recorder) and finally intervene with mechanical modifications to the tape itself (editing operations with manual cutting and pasting of the tape), with a digital recording, in which the electrical energy supplied by the microphone is converted directly In digital samples, that is, in discrete number data, it will be possible to modify the register through an electronic calculator capable of analyzing and modifying the data.

Sampling and time (frequency and Nyquist theorem)

The first practical problem that sampling is faced with is establishing how many times in a given period of time the signal must be measured for the sampling to be accurate, and the resulting digital signal can be converted back into an analog signal without losing or changing certain characteristics of the original signal.

Take as an example the classic elementary sinusoid, like the one in the figure.

Let’s say we have a device that takes, over a certain period of time, a certain number of samples of the signal: for example, 14 samples per period of the sinusoid.
We will obtain a series of samples like the one in the figure:

We see that the original sinusoid is still intuitive, so it is possible to reconstruct it and reverse the procedure.
But imagine halving the sample rate, that is, doubling the time between one measurement and another.
We will obtain a different series of samples, less dense than the previous one:

The sine wave can still be guessed, but it is clear that we have lost some of the original information.
Halving again, the situation becomes almost critical:

Here it is already very difficult to trace the original signal.
By reducing more by half, all traces of the sine wave are lost:

Therefore, we understood that there is a critical point, below which the sampling frequency cannot fall, under penalty of total loss of information.