Formats: what is digital sound Part 3


Free Download Mp4Gain
picture

Formats: what is digital sound Part 3

digital sound

JointStereo, which is one of the features of MP3, means that instead of encoding stereo as two independent channels, it encodes calls. center channel and the difference from the original stereo channels.

DIGITAL SOUND

Many audio components on stereo channels are the same, and encoding them on the common channel allows you to free up additional bandwidth for more detailed encoding of the difference, leading to improved quality.

Be sure to mention the variable bit rate or VBR. This means that the encoder changes the compression ratio on the fly, depending on the nature of the sound. This approach results in a smaller total file size or, if quality requirements increase, the same file size may produce better sound.

MP3 Pro

Introduced in 2001, the MP3 Pro codec was developed by Coding Technologies in association with Thomson Multimedia. It is MP3-based and as a result turned out to be fully MP3 backward compatible and only partially forward compatible. It uses SBR (Spectral Band Replication) technology, so the codec provides good quality at low bit rates. However, the encoding quality at medium to high bit rates is inferior to almost all other codecs. As a result, MP3 Pro is used more for streaming on the Internet and demonstrating snippets of new musical compositions.

WMA

The WMA codec, or Microsoft Windows Media Audio, is a serious alternative to MP3. Files in this format have the extensions .WMA and .ASF, have a clear advantage over MP3 at low data rates (bitrates) and lose it when the data feed rate to the codec is increased.

Based on WMA, the WMA DRM standard has been developed to provide copy protection so appreciated by record companies. Files based on this format can be recorded on playback devices such as MP3 flash players, but cannot be copied from there.

ATTRAC

ATRAC (Adaptive TRansform Acoustic Coding) is based on a stereo audio format with 16-bit quantization and a sample rate of 44.1 kHz. When compressed, each frame is divided into 52 frequency bands, resulting in a transmission rate of 292 kbps (1: 5 compression). Used in MiniDisk system.

Ogg Vorbis

The Ogg Vorbis format is a relatively new universal lossy audio recording format. It belongs to the same type of audio compression formats as MP3 and WMA, and the psychoacoustic model that describes the characteristics of the human ear, according to which compression is performed, is similar in principle to MP3. The radical difference of this format was the mathematical processing and the practical implementation of this model. In this format, the maximum threshold sample rate is not 44 kHz as in MP3, but 48, which theoretically improves the sound quality. It should also be noted that the theoretical number of channels is not limited to two, as usual, but reaches 255. Files encoded in this format are smaller than the same MP3 files. The spread of the format was slowed by insufficient support from hardware manufacturers.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Formats: what is digital sound Part 2

Formats: what is digital sound Part 2

Digital Sound

Historically, digital sound was undoubtedly the initiative of company engineers who adopted Philips-developed Audio-CDs, also called CDDA – Compact Disk Digital Audio.

DIGITAL SOUND

As a result, digital audio media led to a massive transition in recording studios to digital DAT tape recorders and digital editing equipment with S / PDIF and other interfaces. And then digital sound began to penetrate deeper into our lives from CD players, and as it was transmitted via S / PDIF, it became digital switches, equalizers, and noise reduction systems. Today this series ends with Dolby Digital surround sound processors.

Who needs it

CDDA’s sound quality is satisfactory for most end users, ie listeners, but the amount of data required to present sound in this way is critical. As a result, several compressed digital audio formats appear, one of which is the old MS ADPCM, and among which are quite acceptable Sony ATRAC, PASC or Fraunhoffer MP3. Each of the encoding methods has an important characteristic – the bit rate, with which the compressed information enters the decoder when the audio signal is restored.

For example, when you talk on a cell phone, the sound of your voices is digitally converted and compressed, degrading its performance. Various algorithms compress speech hundreds of times, preserving the basic characteristics.

Let’s move on to specific audio file formats and audio compression formats. The most common format today is, of course, MP3. However, historically, to understand the evolution of sound formats, it is necessary to start with a different type of file, with the extension .WAV.

Variety of formats

Wav

It is the primary format for many, many digital audio playback systems and is used as a standard audio file format on personal computers. In addition, it has a strong set of specifications, which has grown considerably lately. Its full name is Microsoft RIFF / WAVE – Resource Interchange File Format / Wave – Resource Interchange File Format / Waveform, and it was created by Microsoft and Intel engineers. In turn, WAV is short for Waveform Audio File Format.

Apple AIFF

This type of file is standard for Apple Macintosh systems and sound processing systems based on it. Apple AIFF stands for Audio Interchange File Format: an audio interchange file format, it is somewhat similar to WAV. Its peculiarity is that it allows additional information to be placed next to the sound wave, in particular WaveTable samples (examples of the instrument sound together with synthesizer parameters), which improves the quality of the final result. Although today Apple computers are capable of playing files in almost any format, including MP3.

RAW

Yes, this is not just the image format in which some digital cameras take pictures. In fact, RAW is the call. “Pure Digitization”, which does not contain a title and only contains a sequence of samples of a sound wave. Typically, the scan is stored in 16-bit format.

MP3

The most popular compression format today is MP3. The MP3 (MPEG Layer 3) format was developed, after several intermediate formats, by the Fraunhofer Institute in Germany. Actually, the .MP3 format is based on fooling the human ear. After some research, it turned out that human hearing tends to adapt to the appearance of new sounds, which is expressed in an increase in the hearing threshold. Therefore, some sounds are capable of masking (that is, making them subjectively inaudible) others. So in this format, some of the sounds that, according to the corresponding theory, are made inaudible, are simply removed from the general sound. The resulting “semi-finished product” is then encoded using the Hoffman method. Be sure to note that in MP3 format, programs that compress the sound of the original are not standardized, that is, each competent programmer can implement their own compression scheme. And only decoders meet the standards, which leads to the fact that the quality of MP3 playback does not always depend on the player that plays this file. Due to the different skills and predilections of implementers of various encoders, some of them are better at handling symphonic music, some with rock and metal, some with rap and rave, etc.

Formats: what is digital sound

Formats: what is digital sound

Digital Sound

Sound plays an increasingly important role in the modern world, having long since separated itself from the close link with the image that emerged during the heyday of television and cinema.

digital sound

Modern multimedia equipment has the widest possibilities not only for playback, but even for changing the sound. It is no longer a dead record, a static reproduction of events from the past, firmly imprinted on its medium. The most important role in transforming our ideas about sound was played by the development of a digital method of recording sound, turning it into a data stream that can be easily and naturally operated with modern devices.

The basics of “numbers”

Each of the multimedia devices on sale today, be it a CD player, a voice recorder or a flash memory player, uses many different types of presentation of data streams, which are then converted into sound. And even more sound formats used for professional purposes have been invented. An inexperienced buyer is forced to gather information about designations on boxes and devices from a variety of sources, often receiving incorrect information or even more confusion.

Almost all devices in the “Portable Audio” section of the ZOOM.CNews.ru catalog support multiple sound formats at the same time, and many devices that do not belong in this category are also tagged with support for playing sound files. To help our reader, we decided to create a short glossary of abbreviations and talk about the most common formats. We plan to leave it open for updates and modifications, adding new formats and describing in more detail the advantages and disadvantages of the already common or forgotten ones.

A little theory

To begin with, remember that digital sound is nothing more than a collection of numbers. The determining factor is the system by which sound as air pressure is converted into data streams and encoded for further processing and reproduction. Consequently, digital sound is usually included in computer files with various extensions, which more often (but not always) can determine their format. And the same concept of format can have, paradoxically, two meanings. First, the format may exist as a general characteristic that includes both the type and the physical characteristics of the medium (disk or cassette), the method of recording, the principles of encoding, and protection against errors. Second, the format can only be understood as the method of audio encoding and compression, as standard means are used for transfer, for example,

Analog sound, unlike digital, is reproduced on analog devices and has a number of significant differences. While not a data stream, analog audio is represented as a continuous electrical signal that represents a change in the sound wave. To translate it into digital format, the sound is “digitized”, that is, it is divided into certain segments, in which the numerical value of the amplitude is fixed at that moment. We will not delve into the principles of digital sound creation, but it is absolutely necessary to note that the more often a sound segment is divided and its characteristics described, the clearer and more complete the sound image itself is created.

This process generates a large amount of data that describes the sound, and it is clear that each digital audio format is nothing more than a compromise between the need to present the sound as loudly as possible and the memory limitations of a computer or device. Of reproduction.

A little more theory. In most cases, the human ear perceives sound with a frequency no higher than 22,000 Hz and, to describe it fully in digital form, a sampling frequency of at least 44.1 kHz is required. Since it is absolutely impossible to determine the value of the signal at any given moment, during digitization quantization occurs, that is, the replacement of the actual values ​​of the signal by approximate values. The more levels of audio quantization, the more accurately the signal level is described. As a result, each standard CD carries an audio signal with a sampling frequency of the same 44.1 kHz and a 16-bit quantization level, and in some devices, sampling is done at 48 kHz.

The benefits of digital audio

And now, briefly on why this algorithm was developed. Digital sound has enormous advantages over analog, although we must not forget its certain disadvantages. The main value of digital sound is the possibility of infinitely long storage and playback

Basic concepts of digital sound theory

Basic concepts of digital sound theory

Digital Sound

Sound is, in general, the vibrations of an elastic medium. The sound is caused by mechanical vibrations of some object (this can be a string, vocal cords, etc.) in contact with the environment. The frequency of vibration (measured in Hertz) determines the pitch. The higher the frequency, the louder the sound. The human ear can perceive sound vibrations from the air with a frequency of 20 Hz to 20 kHz. The ear perceives the amplitude of the vibration as volume. The higher the amplitude, the louder the sound.

Digital Sound

Electromagnetic waves are a direct analog of sound waves. The latter are less susceptible to dispersal by the environment, the information they carry is easier to store and process. Electromagnetic waves are the most important secondary carrier of sound. The transformation of acoustic waves into electromagnetic waves (as well as the reverse operation) is carried out due to the usual induction effect, which consists in the appearance of a current in a conductor when it is placed in an alternating magnetic field.

Simply put, the oscillation of the loudspeaker membrane magnet near the coil induces an alternating current in it. If this current is applied to another speaker, then the magnet on its membrane will move, creating a corresponding sound.

This is how the telephone and the radio work.

Sound converted to electromagnetic waveform can be easily stored. For this, some parameter of the carrier must be compared (the depth of the plate track or the degree of magnetization of the film) with the amplitude of the oscillations (that is, the strength of the induced current in the speaker coil) . Sound converted directly to electromagnetic waves is called analog sound. Its main characteristic is the direct correspondence of the electromagnetic waves transmitted or recorded with the acoustic ones.

Digital sound is relatively new. Its main difference from analog is discretion. When digitizing, a special device, an analog-to-digital converter (ADC), measures at regular intervals (approximately 0.001-0.0001 seconds) the magnitude of the amplitude of an electromagnetic wave corresponding to an analog sound form and writes its value to a file with a specified precision. This value is generally called sample, or in jargon, sample (of the sample in English, sample). The same digitization is often called sampling or sampling.

By converting sound from digital to analog (this is done by a device called a digital-to-analog converter (DAC)).

The interpolation (approximation) of the intermediate values ​​of the amplitude is carried out according to the known ones. Since the sampling frequency is usually high, this operation allows you to fairly accurately reconstruct the original analog signal.

The digital form of sound is characterized by five parameters.

1. The sampling rate;
2. Bit size of the samples.
3. The number of channels or tracks.
4. Compression / decompression algorithm (codec).
5. Storage format.

Since each of these parameters is quite specific, we will consider them separately.

Sampling rate
The sample rate determines how many samples per second will be taken when digitizing. If we compare digital sound with digital images, then the sample rate will correspond to the resolution (a more “realistic” analogy is the frame rate in cinema). The higher the sampling frequency, the better it is possible to reconstruct the analog signal based on the digital form of the sound (more precisely, the higher the sampling frequency, the broader the spectrum of frequencies that can be recorded during digitization).
The famous Nyquist-Kotelnikov theorem states that for the correct reconstruction of an analog signal from its digital recording, it is necessary that the sampling frequency be at least twice the maximum sound frequency.

Since the upper listening limit is 20 kHz, ideally the sample rate should be at least 40 kHz. This is why the standard sampling frequency used for recording CDs is 44.1 kHz (so-called CD quality). However, the sample rate can be higher, but this sound quality is only used by recording studios and especially demanding music lovers.

A sample rate of 44.1 kHz is not always ideal. When transmitting data over a low bandwidth network, sound quality must be sacrificed in favor of size, in practice sampling frequencies two, four and eight times lower than 44.1 kHz are often used.

Sound information on the computer

Sound information on the computer

Digital Audio

Sound is a continuous signal, a sound wave with variable amplitude and frequency.

digital wave sound

The greater the amplitude of the signal, the stronger it will be for a person.

The higher the frequency of the signal, the higher the pitch.

The frequency of a sound wave is expressed as a number of vibrations per second and is measured in Hertz (Hz, Hz).

The human ear can perceive sounds in the range of Hz to 20 kHz, which is called sound .2020
The number of bits per audio signal is called the audio coding depth.
Modern sound cards provide 16-, 32-, or 64-bit audio encoding depth. 163264

When encoding audio information, a continuous signal is replaced by a discrete one, that is, it is converted into a sequence of electrical impulses (binary zeros and ones).
The process of converting audio signals from a continuous representation form to a discrete digital form is called digitization.
An important characteristic when encoding audio is the sample rate, the number of signal level measurements in second: 1
– (one) measurement per second corresponds to a frequency of Hz; 11
– measurements per second correspond to a frequency of kHz. 10001
Audio sample rate is the number of audio volume measurements in one second.
The number of measurements can be in the range of kHz to kHz (from the radio transmission frequency to the frequency corresponding to the sound quality of musical media) .848

The higher the sampling frequency and depth of the sound, the better the sound of the digitized sound. The lowest quality of digitized sound, corresponding to the quality of telephone communication, is obtained at a sampling rate of times per second, a sampling rate of bits, and by recording an audio track (“mono” mode). The highest quality digitized audio, corresponding to the quality of an audio CD, is achieved with a sampling rate of times per second, a sampling rate of bits, and the recording of two audio tracks (stereo mode) .8000 848 000 16
It should be remembered that the higher the quality of the digital sound, the greater the volume of information in the audio file.
The volume of information in a mono audio file () can be estimated as follows: VV = N⋅ f⋅ k, where is the total duration of the sound (seconds), is the sampling frequency (Hz), is the encoding depth (bit) .norteFk

For example, with a sound duration of one minute and a medium sound quality (bits, kHz): 11624
V = 60 ⋅ 24000 ⋅ 16 bits = 23040000 bits = 2,880,000 bytes = 2812.5 kB = 2.75 MB.

When encoding stereo sound, the sampling process is performed separately and independently for the left and right channels, consequently doubling the size of the audio file compared to mono sound.

For example, let’s estimate the information volume of a digital stereo sound file with a duration of one second with an average sound quality (bits, measurements per second). For this encoding, the depth must be multiplied by the number of measurements per second and multiplied by (stereo): 11624 00012
V = 16 bits ⋅ 24000⋅2 = 768000 bits = 96000 bytes = 93.75 KB.

There are several methods for encoding audio information with binary code, among which two main areas can be distinguished: the FM method and the Wave-Table method.

The FM (Frequency Modulation) method is based on the fact that, theoretically, any complex sound can be decomposed into a sequence of the simplest harmonic signals of different frequencies, each of which is a regular sinusoid and therefore It can be described by a code. The decomposition of audio signals into harmonic series and representation in the form of discrete digital signals is done by special devices – analog-to-digital converters (ADC).

Conversion of an audio signal into a discrete signal: to – audio signal at the ADC input; b – discrete signal at the ADC output.

Digital-to-analog converters (DACs) perform reverse conversion to reproduce sound encoded with a numeric code. The sound conversion process is shown in Fig. Below. This encoding method does not provide good sound quality, but it does provide compact code.

Conversion of a discrete signal into an audio signal: to – discrete signal at the DAC input; b – audio signal at the DAC output.

The table wave method (the Wave, the Table) is based on the fact that the previously prepared tables store sound samples from the world, musical instruments, etc.

How digital sound is reproduced

How digital sound is reproduced

digital sound

Have you ever wondered how sound is reproduced on digital devices?

Digital Audio

How is a sound signal formed from a combination of ones and zeros? I’m sure I was thinking, since I started reading! But often, even professionals have only a general idea of ​​the modern sound route. In this article, you will learn how the different formats appeared, what a digital-to-analog converter is, what types of DACs exist, and what determines the quality of sound reproduction.

PCM
As you know, in digital audio, almost any format, with rare exceptions, is recorded using a pulse code stream or a PCM stream – pulse code modulation. FLAC, MP3, WAV, Audio CD, DVD-Audio and other formats are just ways to pack, “preserve” the PCM stream.

How it all began
The theoretical foundations of digital sound transmission were developed at the dawn of the 20th century, when scientists tried to transmit an audio signal over a long distance, but not by telephone, but in a rather strange way for that time.

By dividing the sound wave into small parts, it could be sent to the receiver in some kind of mathematical representation. The recipient, in turn, could restore the original waveform and listen to the recording. In addition, scientists were faced with the task of increasing the bandwidth of the “ether”.

In 1933, the theorem of V.A. Kotelnikov. In Western sources, it is called the Nyquist-Shannon theorem. Yes, Harry Nyquist was the first to raise this issue: in 1927 he calculated the minimum sampling frequency for transmitting a waveform, which later received his name “Nyquist frequency”, but Kotelnikov’s theorem was published 16 years earlier.

The essence of the theorem is simple: a continuous signal can be represented as an interpolation series, consisting of discrete reports, from which the signal can be reconstructed. In order to roughly restore the original state of the signal, the sampling frequency must be at least twice the upper cutoff frequency of this signal.

For many years, the theorem was not in demand, until the advent of the digital age. It was then that it found a use. In particular, the theorem was useful in the development of the CDDA (Compact Disc Digital Audio) format, in common people it is called Audio CD or Red Book. The format was released by engineers at Philips and Sony in 1980 and has become the standard for audio CDs.

Format characteristics:

sampling frequency – 44.1 kHz;
quantization capacity – 16 bits.

INFO
Sampling rate: the number of samples of the signal “taken” during its sampling. Measured in Hertz.
Quantization bit: the number of binary digits that express the amplitude of the signal. Measured in bits.
The 44.1 kHz sampling rate was calculated from Kotelnikov’s theorem. It is believed that the hearing of the average person cannot pick up sound beyond 19-22 kHz. The frequency was probably 22 kHz and was chosen as the upper limit.

22,000 × 2 = 44,000 + 100 = 44,100 Hertz

Where does the 100 Hertz come from? There is a version that this is a small margin in case of errors or oversampling. In fact, Sony chose this frequency for its compatibility with the PAL transmission standard.

The bit depth of the CDDA format is 16 bits, or 65,536 samples, which equates to a dynamic range of approximately 96 dB. Such a large number of samples were not chosen by chance. Firstly, due to the strong influence of quantization noise, and secondly, to provide a formal dynamic range superior to that of the main competitors at the time: cassette records and vinyl records. I’ll cover this in more detail in the section on digital to analog converters.

Development of PCM continued on the principle of multiplying by two. Other sample rates appeared: first, the 48 kHz sample rate was added, and then the frequencies based on it were 96, 192, and 384 kHz. The 44.1 kHz frequency was also doubled to 88.2, 176.4 and 352.8 kHz. Bit width increased from 16 to 24 and then to 32 bits.

The next after CDDA in 1987 appeared the DAT format – Digital Audio Tape. The sample rate was 48 kHz, the quantization bit did not change. And although the format failed, the 48 kHz sample rate caught on in recording studios, as they say, due to the convenience of digital processing.

In 1999, the DVD-Audio format was released, which made it possible to record on a disc six stereo tracks with a sampling frequency of 96 kHz and a bit depth of 24 bits, or two stereo tracks with a frequency of 192 kHz, 24 bits.