Why upsampling? Part 2


Free Download Mp4Gain
picture

Why upsampling? Part 2

Upsampling

For every doubling of the sampling frequency, the spectral density of the noise is reduced by half and the signal-to-noise ratio increases by 3 dB. Since the resolution limit for the pressure level is approximately 1 dB, these decibels are unlikely to have a noticeable effect on sound perception in the high-frequency region. Based on these numbers, it is absolutely impossible to draw tentative conclusions about the change in sound quality.

In order to relate the spectrum of quantization errors, sampling frequency and sound quality, in this article it is proposed to use a tonal signal as a music model, as is usual to evaluate the quality of sound paths. This approach relies heavily on materials published in the “Sound Engineer” magazine.

The results can be summarized as follows. Unlike analog audio, digital audio is the product of amplitude modulation. This is manifested in a rigid functional dependence of the quantization error spectrum of the frequency multiplicity factor of the audio signal F and the sampling frequency fs, represented as the ratio of prime numbers y and x (k = fs / F = y / x). The frequency spectrum of quantization errors is always discrete and is determined solely by the multiplicity factor; the components of this spectrum are also determined solely by the amplitude of the audio signal, expressed in quanta. This means that the mechanism for shaping the quantization error spectrum does not depend on the number of bits used. With an increase in the quantization bit depth, the spectrum does not change in shape and composition, but only changes in level by 6 dB with each additional digit. (There are situations where a change in bit depth leads to a change in spectrum, – Ed.) The auditory perception of the quantization error spectrum is largely determined by the frequency response of hearing, which, in turn, it depends largely on the sound pressure level.

The frequencies of digital sound are divided into multiples when x = 1 and submultiples when x> 1. At multiple frequencies, the spectrum of quantization errors is harmonic and the main pitch is the frequency of the audio signal. If y is an even number, then the spectrum contains only odd harmonics. If y is an odd number, then the odd and even harmonics of the audio signal are present in the spectrum.

At multiple sub-frequencies in the quantization error spectrum, the components appear below the frequency of the audio signal, down to zero, and the lower limit of the spectrum Fn (x) is determined by the formula x – Fn (x) = F / X. In this case, the frequency Fn (x) becomes the fundamental pitch of the sound for quantization errors, and all other components, including the frequency of the sound signal, are converted to its harmonics. If the number is even at the submultiple frequency yskr, then the spectrum contains only odd harmonics of the frequency Fn (x). If yskr is an odd number, then the spectrum contains odd and even harmonics of this frequency. Low-frequency components in the quantization error spectrum lead to the appearance of harmonics in the form of pitch or consonance. They are especially noticeable at high frequencies in the audio signal when there is no frequency masking effect.

To clarify, we will give an example of a quantization error spectrum at an audio signal level of minus 30 dB with 8-bit quantization. Let fs = 48 kHz and F = 12800 Hz, then the multiplicity factor k skr = y / x = 48000/12800 = 15/4 and therefore the lower cutoff frequency Fn (x) = F / x = 3200 Hz, and the spectrum consists of odd and even harmonics of this frequency.

1.jpg

Figure 1. Quantization error spectra at submultiple frequency deviation

When the frequency of an audio signal deviates from a submultiple value by a small amount, sidebands appear around all harmonics of the spectrum, including zero (Fig. 1a), the number of spectrum components increases dramatically, and the limit bottom of the spectrum decreases, since the current value of x increases a lot.

Suppose, for example, that the frequency increment of the audio signal is 1 Hz, then the value of the multiplicity factor k = y / x = 48000/12801 = 16000/4267 and the lower limit frequency of the deviation spectrum becomes Fno = 12801/4267 = 3 Hz, and the interval between the components of the spectrum decreases to 6 Hz (Fig. 1b).


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Why upsampling?

Why upsampling?

Upsampling

When it comes to improving digital sound quality, experts in this field agree on only one thing: with an increase in sample rate, sound quality improves dramatically.

Why upsampling?
When it comes to improving digital sound quality, experts in this field agree on only one thing: As the sample rate increases, the sound quality improves dramatically. Also, under the word “improvement”, everyone already understands something for himself. All the variety of opinions on this topic boils down to the following: the sound becomes clearer, softer, more natural, the low frequencies are perceived more clearly.

However, these nuances are only noticed by listeners trained with a good ear for music on specially selected sound material and using technically advanced equipment.

There are many hypotheses that explain why sound quality is improved by higher sampling. Many technicians are inclined to believe that this relationship is due to distortions that arise from filtering and interpolation during audio signal reconstruction.

On a modern technical level, high-quality interpolators may be practically impossible to implement, therefore, instead of improving them, manufacturers simply increase the sample rate. Maybe it’s not about them at all.

Another version, which many music lovers adhere to, is that at a low sampling frequency, for example 44100 Hz, digital sound is completely devoid of nuances of high sounds, the main frequencies of which are above 7 kHz. , and at lower frequencies there are very few harmonics for a high quality perception of music.

In fact, many musical instruments generate vibrations of up to 100 kHz. It is true that the fraction of energy that falls in the frequency band above 20 kHz is 0.01 to 2% for sounds of a harmonic nature and 0.02 to 68% for sounds created by a cymbal, triangle or striking the metal edge of a drum (hoop shot – editor’s note).

Even the frequency range of speech in hissing-hissing sounds extends up to 40 kHz. Supporters of this version are not ashamed that a person cannot perceive sounds with a frequency higher than 20 kHz. Ultrasound is assumed to be perceived bypassing the auditory system, for example through bone conduction.

Discussions that harmonics above 20 kHz make a significant contribution to sounding have culminated in the creation and widespread introduction of analog-to-digital converters using 96 kHz and 192 kHz sample rates; The sample rate is expected to increase to 384 kHz.

Based on modern knowledge of human perception of sound, it must be assumed that the relationship between digital sound quality and sampling frequency is due to the transformation of the quantization error spectrum in the audio frequency range.

In technical literature, this topic is considered only for a particular mathematical model, when music is represented by a signal with a uniform distribution in level and frequency. In this case, the quantization errors are converted to noise with a uniform spectral density from 0 Hz to the Nyquist frequency.

Relationship between sound quality and sample rate

Relationship between sound quality and sample rate

SAMPLE RATE

The conversion of an analog signal to digital consists of two steps: sampling in time and quantization in amplitude.

sample rate

Time sampling means that the signal is represented by a series of samples (samples) taken at regular intervals. For example, when we say that the sample rate is 44.1 kHz, this means that the signal is measured 44 100 times in one second.

The main problem in the first stage of converting an analog to digital signal (digitization) is the choice of the sampling frequency of the analog signal. The higher the frequency, the closer the digital signal is to the analog. However, in proportion to the increase in frequency, they increase:

The intensity of the digital data flow and the bandwidth of the interfaces are not unlimited, especially if several channels are recorded / played simultaneously;
The computational load on digital processors and their computing capabilities are also limited;
The amount of memory required to store the digital signal is increased.
Obviously, a compromise is needed. The choice of the sampling frequency affects the frequency range of the received digital sound and the maximum frequency of the analog signal, correctly represented in the digital one. It is believed that a person hears frequencies in the range of 20 to 20,000 Hz. According to the well-known Kotelnikov theorem, in order for an analog signal (continuous in time) to be accurately reconstructed from its samples, the sampling frequency must be at least twice the maximum audio frequency.

An audio frequency equal to half the sampling frequency is called the Nyquist frequency and is the maximum frequency that a given digital system can store and reproduce correctly. Therefore, if the actual analog signal that we are going to convert to digital format contains frequency components from 0 to 20 kHz, then the sampling frequency of that signal must be at least 40 kHz. The most common sample rates today are 44.1 kHz (CD) and 48 kHz (DAT).

Sample rate, where it comes from

Sample rate, where it comes from

Sample rate

Where does the sample rate for CD-audio 44100 hertz come from?

Sample rate

The standard sample rate for CD-audio is 44100 Hertz. Where and why were these 44100s originally chosen for CD audio production?

Starting from the condition (see Nyquist-Shannon-Kotelnikov) of reproduction of the upper limit of the spectrum at 20 kHz, the sampling frequency should have been chosen above 40 kHz. But at the time of the creation of these standards and the development of CD-DA technology (the second half of the 70s of the last century), there was no generally accepted medium in which to record, edit and store digital sound. And for this, it was decided to use standard VCRs, which in those days worked in U-matic format. The digital signal was encoded by a special encoder into a black and white video pseudo-signal and recorded on a video cassette. The structure of the digital signal had to be linked to the frequency and structure of the fields of the television signal used for recording.

This decision was complicated by the fact that different video recording standards are used in Europe and the US: 525 lines at 60 Hz and 625 lines at 50 Hz, while not all lines can be used to record information. The selected frequency should fit the structure of both video signals. 44100 Hz meet this requirement.

In a 60 Hz NTSC video signal, 35 lines are not used for recording, leaving 490 active lines per frame, or 245 in the field for digital audio recording. When writing three samples to a string, the sample rate will be:

60 × 245 × 3 = 44100.

In a 50Hz PAL signal, 37 lines are not used, leaving 588 active lines per frame, or 249 per field, so the frequency will be:

50 × 249 × 3 = 44100.

Although digital sound at that time had nothing to do with the video signal, video equipment was used in the production of the CD, which determined the choice of sampling frequency.

Audio sample rate and bit depth – in simple, understandable language

Audio sample rate and bit depth – in simple, understandable language

Bit Depth and Sample Rate

What is the sample rate (sample rate)? What is bit depth?

Sample Rate & BitDepth

Even if you are not dealing directly with digital sound recording, you will be interested!

Are you new to the world of digital music? Not sure what all these designations and complex numbers mean?

Hmm, no wonder! After all, every day there is more and more information. And knowing everything is almost impossible.

Yes, this is not necessary! You need to know the essentials.

Sample rate and bit depth are sound engineering concepts that you should know if you decide to make music in a computer environment.

Even if you haven’t had to record music in a virtual environment yet, but have dealt with audio (be it on a portable digital player, a player on a computer, or elsewhere), you may have seen some numbers in the properties of audio: “16 bit, 24 bit, 44100 Hz, 48000 Hz …”

The material is presented briefly and is accessible even to the uninitiated. Just the essentials.

So what are sample rate and bit depth? What is it for?

To begin with, we agreed that in different sources you can find: Sample rate and Sample rate. The abbreviations are equivalent. Call it what you like the most.

And bit and bit depth. It’s the same, the same, it just sounds different.

So.

Sample rate (sample rate) …

All inanimate music (music produced by a computer, music center, etc., that is, not live) has this parameter. This is the number of samples per second. Without going into details, I will say that 44100 Hz is optimal for humans. Since at a higher value, the sounds to be sampled will be practically inaccessible to our ears, we will simply not hear them, because they will be out of earshot.

I’ll explain a bit more in datell about sample rate. Discrete means discontinuous. That is, the sampling process is the processing of each bit of information one by one (that is, discretely and not all at once). In our case, this happens 44100 times per second. By Nyquist’s theorem, the required sampling rate for normal perception should be twice the hearing threshold. Since an average person listens up to 16 KHz (KiloHz or 16000 Hz), and something (normal for a healthy young person) up to 20 KHz, the sampling frequency was determined at 44.1 KHz (44100 Hz), that is, twice the threshold. audibility of the human ear. Why not 40 kHz (40,000 Hz)? Taken with margin (nobody canceled errors and noise on the route and after the CD release).

I hope everything is clear now.

The bitness (Bitness) is a kind of resolution of these same samples. Why am I calling this permission? Just so you prefer to understand by analogy what is what.

Grab your monitor – the higher the resolution, the better the picture, right? At low resolution you will see individual pixels and the eye will no longer be happy as before. I smile

Bitness is dynamic range, that is, the oscillation of your audio up and down (in terms of volume, power, so to speak), the nuances of performance.

The higher the audio bit rate, the more space the audio will occupy on your hard drive (on your computer); keep in mind.

For projects that are important to you, I advise you to use 24 bits and a sample rate of 48000 Hz. THIS IS A STANDARD. Then, for CD output, it will be possible to downgrade the data to 16 bits and 44.1 kHz.

But some people prefer to work on 24/96 (24 Bits – bit depth, 96 KHz – sample rate) or 24 / 88.2. The taste and the color …

For most projects, 16 / 44.1 is adequate (16 bit – bit depth, 44100 Hz is equivalent to 44.1 KHz – sample rate).

The sample rate and bit depth go directly next to each other and never go alone. That is their destiny.

Why is 44,100 used as the high quality sample rate?

Why is 44,100 used as the high quality sample rate?

Sample Rate

Why did we choose 44.1 kHz as the recording sample rate?

Sample Rates

People’s ears hear a sound whose frequency varies between 20 Hz and 20 kHz. By Nyquist’s theorem, the recording speed must be at least 40 kHz. Is this the reason for choosing 44.1 kHz?

Explain in more detail, the sample rate means how many “frames” should be recorded per second to have high quality audio.
According to the famous theorem created by a famous scientist named Nyquist, the sampling frequency must be at least twice the maximum frequency that we will record … then, as the human ear can hear approximately 20 kHz at most, twice that would be 40,000 per which was proposed 44,100 as a standard sampling frequency for high fidelity audio.

It is true that, like any convention, the choice of 44.1 kHz is something of a historical accident. There are several other historical reasons.

Of course, the sample rate must be higher than 40 kHz if you want high-quality audio with a 20 kHz bandwidth.

How to make 48.0 kHz was discussed (this matched well with 24fps and supposedly 30fps movies on North American television), but given the physical size of 120mm, there was a limit to the amount of CD data that could be stored and what an error detection and correction scheme is needed that requires some data redundancy, the amount of logical data that a CD can store (about 700MB) is about half of the physical data. With all of this in mind, at 48 kHz, we were told that it cannot hold all of Beethoven’s 9s, but that it can hold all of 9 on one record at a slightly slower speed. So 48 kHz is not.

However, why 44.1 and not 44.0 or 45.0 kHz or some nice round number?

Then in the late 1970s, there was a product called the Sony F1, designed to record digital audio onto readily available videotape (Betamax, not VHS). It was at 44.1 kHz (or more precisely 44.056 kHz). Thus, it will facilitate the transfer of recordings without oversampling and interpolation from F1 to CD or in the other direction.

My understanding of how this turns out is that the horizontal scan speed of the NTSC TV was 15,750 kHz and 44.1 kHz is exactly 2.8 times. I’m not entirely sure, but I think this means you can have three pairs of stereo samples per horizontal line, and for every 5 lines where you would normally have 15 samples, there are 14 samples plus an extra sample for some checking. for parity or redundancy in F1. 14 samples for 5 lines is the same as 2.8 samples per horizontal line and 15,750 lines per second, which is 44,100 samples per second.

With the transition to digital formats, audio was stored in the form of pseudo-video, which could be viewed as black or white (representing a binary format).

The frequency and field structure used by the television standard is as follows for 60 Hz video: 245 lines per field (excluding the first 35 skipped lines). With three samples per line, that is 60 x 245 x 3 = 44100 = 44.1 kHz.

This convention was later used for the CD format due to hardware compatibility issues (the first computer used to make master CDs used for CD replication was video-based).

Now, with the advent of color television, they’ve had to slow the horizontal line speed a bit to 15,734 lines per second. This setting results in 44,056 samples per second on the Sony F1.

Sampling frequency.

Sampling frequency.

Sample Rate

What is its importance for sound recording?

Sample Rate

Time sampling is a process that is directly related to the conversion of an analog signal to digital. Along with it, the data is quantized in amplitude. Time sampling means measuring a signal at the time of its entire transmission.

A sample is taken as a unit. If in words this is not entirely clear, then in an example it seems more convincing. Let’s say the sample rate is 44100 Hz, the same as that used on audio CDs.

This means that the signal is measured 44100 times in one second.

An analog signal is always higher in saturation than a digital one. And its transformation is an inevitable loss of quality.

The sample rate serves as a kind of benchmark: the higher it is, the closer the digital sound quality is to analog. This is clearly visible in the list below. Shows which sound frequency is best.

As you study it, you will see a direct relationship between sampling and track quality:

1,8000 Hz. This frequency is typical for telephone conversations and voice recording on a dictaphone with a simple set of functions. It is used in audio converted through the Nellymoser codec.
2. 22050 Hz is used in broadcasting.
3.44100Hz. As mentioned above, this frequency is typical for audio CDs, and this figure has long been identified with the highest quality level. And today the format does not lose its positions.
4.48000 Hz. These are the DAT and DVD formats, which have replaced AUDIO.
5.16000 – DVD-Audio MLP-5.1.
6.2822 400HZ is a high-tech Super Audio SACD format.
Also read 3D Builder Windows 10 what it is
The list clearly indicates which sound frequency is the best. In addition, technologies do not stop and new formats appear.

But before making far-reaching plans, a very significant nuance must be taken into account.

Its essence is simple: the higher the sampling frequency, the more difficult it is to achieve it technologically. This requires:

Provide high intensity transmission of digital streams. And this is not possible on all interfaces. And the more channels are involved in the recording (which is typical for musical ensembles), the more complicated the process will be;
be armed with a processor capable of powerful computing operations. But even with the most advanced examples, the possibilities for ultra-high quality sound are limited;
Use it to record computer equipment with a large amount of RAM.
Considering the above information, it is not surprising that the sound frequency equal to 44100 Hz is still the most in demand today.

It has been meeting even the most demanding quality requirements for decades, and at the same time there are all the technical possibilities to achieve it. This last factor is decisive for both normal users and most recording studios.

Even knowing what the best sound frequency is, to achieve this, it is necessary to take care of the technical equipment.

What is the sample rate and how does it help improve the quality of the audio or video?

What is the sample rate and how does it help improve the quality of the audio or video?

It is important to distinguish what is a sample, as opposed to what is analog audio.
When digitizing the music, a digital equipment takes an X amount of “samples”, saves the values ​​of each one of them and thus it will be able to “reconstruct” a sound (a video too).

Sample Rate

As sound and video contain much information, it is necessary to take many samples, in order to obtain as much information as possible to later reconstruct one signal, very similar to the original.

Sample rate

There is a theorem that explains why the number of 44 thousand 100 samples per second was reached, but we will not enter from such a technical point of view.

What is important for you to know is that the minimum for HD quality audio to be considered is 44100 samples per second.

With less it will sound like talking on a landline phone or even talking on a walkie talkie.

With 44100 samples per second, the sinusoidal wave can be reconstructed without the existence of “closing teeth” in the wave, rather it will be possible to obtain a very detailed curvature, without peaks or ridges, without areas with squares.

Some use 48,000 samples per second, already reaching very high levels of audio quality. Of course, the greater the number of samples per second, the greater the use of disk space, whether you use an mp3, aac, flac, etc. But nowadays with large storage disks, that is not a problem, because these formats continue to be small.

If you manage to combine a sample rate of at least 44100 and preferably 48000 and a bitrate of more than 160 kbs, your music will sound very good, really good.

What will be good is that you buy headphones or speakers that are capable of delivering a good quality of audio, as well as the device that will compute this audio. Be it a computer, a player, an ipod, etc.

And obviously, starting from an “original” good. That is, get original audio that has a good quality.

By following these simple steps, without having to go into very technical details, you will have a very good sound quality.

Obviously Mp4Gain is the perfect software to mormalize the volume and even give other touches or tweaks like correcting the equalization, etc.

Sample Rate

Sample Rate

The seconds are defined by taking as a time sample the period of oscillation of the light waves emitted by a cesium 133 atom in a particular atomic transition.

As we have already observed in the dedicated paragraph, sound is generated by small variations in atmospheric pressure that propagate in space and time and until the end of the 40s of the last century it could only be transduced by the human auditory system or by the microphone devices used. for the transmission of signals by radio but it cannot be stored in any type of support dedicated to mass cultural diffusion. In fact, there were already several technologies dedicated to the memorization of sound waves but they were either of poor quality and diffusion such as phonographs and gramophones or were used only experimentally or were dedicated to communications between military devices.

The only vehicle to transmit sound events for musical purposes was still the score that had to be interpreted by a human interpreter and, if someone wanted to listen to a certain piece of music, they had to go to a theater or concert hall that had it on the bill. We emphasize that the performance (as well as the listening) was unique and non-repeatable and the only memory capable of preserving the sounds was the human. All this until 1948, when in the United States Columbia patented the first 33 rpm vinyl record in the 25 and 30 cm formats and where the waveform (as previously happened with 78 rpm records) was printed in micro-grooves that were They developed in a spiral along the surface of the disk and were read by one of the giradichi heads.

The following year (1949) another type of media dedicated to the preservation and reproduction of sound was also introduced on the market: the first magnetic tape recorders wound on reels and later in 1964 Philips commercialized the four-track cassette in Europe. The era of massive musical (and cultural) enjoyment has begun, which after hundreds of years has profoundly and definitely changed our relationship with the world of sounds.

All the means and systems for storing sound waves that we have just exposed (in addition to others that I have not considered appropriate to mention here) belong to the world of analog audio since the information or rather the representation of the sound wave is produced in a continuous and analogous to the original changes in atmospheric pressure. This is because analog recording devices (transducers or microphones) transform changes in atmospheric pressure into changes in the voltage of an electrical signal, which can be stored on mechanical (vinyl records) or electromagnetic (magnetic tapes) media. to be eventually reproduced one or more times at later times. This, in addition to being a transcendental technological revolution, has also greatly influenced the diffusion of music in society, the role of music within it and the development of languages ​​closely linked to the sound or musical arts.

In 1971 a new revolution began which, however, this time is strictly technical (from the cultural and social point of view it only amplifies and accelerates the process of global dissemination of information already underway): the birth of digital audio. In fact, in that year the research laboratories of NHK (Japanese public television radio) created the first digital audio recorder that, using the PCM (Pulse Code Modulation) technique patented by the British A.

Sampled signal

We have said that sampling a signal means measuring its amplitude (y) in each sampling period, obtaining a discrete signal in time and continuous in amplitude:

Sample rate

At this point, however, we are faced with a question: how often to sample the signal? Theoretically we can say that the shorter the sampling period, the less information will be lost between one sample and the next, obtaining a digital signal more similar to the original up to the ideal limit (infinitely small period) in which the analog signal and the sampled.

Sample rate

In practice, however, there are technological limits in the construction of ADC converters that do not allow us to achieve such short periods. Therefore, we must start from the assumption that the samples must be taken with a speed dependent on the variation of the signal and this speed depends on the harmonic component of higher frequency that will determine the sampling period.