MIDI and digital sound: pros and cons


Free Download Mp4Gain
picture

MIDI and digital sound: pros and cons

Digital Audio

The WAVE format is one of many, but it is far from the only format for recording digital audio.

Digital Audio

Unlike MIDI data, digital audio data is actually sound recorded in thousands of units called samples. Digital data represents the amplitude (or volume) of a sound at discrete moments. The sound of digital data is independent of the playback device and therefore always sounds the same. But you have to pay for this with large volumes of sound files.

MIDI data is to digital data what vector graphics are to bitmaps. In other words, MIDI data depends on the audio playback devices and digital data is independent. Just as the appearance of vector graphics depends on the printer or monitor screen, the sound of MIDI files depends on the MIDI device to play these files. Similarly, a melody played on a concert piano will sound different from a normal piano. Digital data, on the other hand, is identical and independent of the reproduction system. The MIDI standard is similar in this respect to the PostScript standard and allows you to control instruments in understandable language.

Compared to digital sound, MIDI has the following advantages:

MIDI files take up less memory and the size of these files does not affect sound quality. On average, MIDI files are 200 to 1000 times smaller than digital files and therefore take up a small amount of RAM, disk space and do not require large CPU resources.

In some cases, MIDI files sound better than digital audio files. In this case, the sound source of the MIDI files must be of high quality.

You can change the length of MIDI files by changing the tempo of the sound, while maintaining the quality and volume of the sound. MIDI data can be easily edited, even at the single note level. You can manipulate small segments of a MIDI song (with millisecond precision), which is not possible with digital audio.

The main disadvantage of a MIDI file comes from its merits. Since MIDI data is not sound itself, playback will be as accurate as the device for playing the MIDI data is identical to the device used to create the original file. Even the sound of a MIDI instrument according to the General MIDI standard depends on the electronic playback device and the method used. MIDI sound is not used for voice playback.

The main advantage of digital audio over MIDI sound is that the reproduction quality of digital sound is always constant, and here MIDI sound is inferior to digital sound. There are two reasons why you should work with digital audio:

A wider selection of programs and systems that support working with digital sound.

The preparation and creation of digital sound elements does not require knowledge of music theory, which cannot be said for MIDI data.

Sound tips
Voice recording from microphone
Any book devoted to multimedia necessarily contains a section on microphone sound recording. In addition, the Sound Recorder (Phonograph) program, which is included in the standard Windows distribution, is usually used for this. Working with it is described in detail in the attached help file. It is easy to use and we will not dwell on it in detail.

The microphones come in condenser and dynamic microphones. Capacitors are more expensive, they give better sound, but your connection must be compatible with a sound card. And the vast majority of sound cards are designed for dynamic microphones.

Another important characteristic of a microphone is its directivity. The microphones are omni-directional (they have the same sensitivity to sound in all directions), unidirectional (they have the highest sensitivity to sound coming from the front), and bi-directional (more sensitive to sound coming from the front and rear). A unidirectional microphone is usually the best option, as it eliminates background noise. But it is more expensive than omni-directional microphones and is more sensitive to choppy breath sounds.

Be sure to pay attention to the impedance (impedance) of the microphone. The optimal value is around 600 ohms.

Therefore, we recommend a 600 ohm dynamic omni-directional microphone.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Differences between analog and digital audio

Differences between analog and digital audio

Analog vs Digital

Sound information. Sound is a wave that travels through air, water, or other medium with a continuously changing intensity and frequency.

Digital vs. Analog

A person perceives sound waves (air vibrations) with the help of hearing in the form of sound of varying volume and pitch. The greater the intensity of the sound wave, the louder the sound, the higher the frequency of the wave, the higher the pitch of the sound (Fig. 1.1).

Dependence of the volume and pitch of the sound on the intensity and frequency of the sound wave.

The human ear perceives sound at a frequency of 20 vibrations per second (low sound) to 20,000 vibrations per second (high sound).

A person can perceive sound in a wide range of intensities, in which the maximum intensity is 1014 times greater than the minimum (one hundred thousand billion times). A special unit of “decibels” (dbl) is used to measure the volume of sound (Table 5.1). Decreasing or increasing the sound volume by 10 dB corresponds to a decrease or increase in sound intensity by 10 times.

Provisional discretization sound. In order for a computer to process sound, a continuous audio signal must be converted to a discrete digital form using time sampling. A continuous sound wave is divided into separate small time sections, for each section a certain value of sound intensity is set.

Therefore, the continuous dependence of the loudness of the sound at time A (t) is replaced by a discrete sequence of loudness levels. On the graph, this appears to replace a smooth curve with a sequence of “steps” (Fig. 1.2).

Sync Audio Sampling

Sampling frequency. A microphone connected to the sound card is used to record analog sound and convert it to digital format. The quality of the digital sound obtained depends on the number of measurements of the sound volume level per unit of time, that is, the sampling frequency. The more measurements that are made in 1 second (the higher the sampling frequency), the more accurately the “ladder” of the digital audio signal repeats the curve of the dialogue signal.

The audio sample rate is the number of sound volume measurements in one second.

The audio sample rate can vary between 8000 and 48000 sound volume measurements per second.

Audio encoding depth. Each “step” is assigned a specific value for the sound volume level. Loudness levels of sound can be viewed as a set of possible states N, for which a certain amount of information I is required, which is called audio coding depth.

Audio encoding depth is the amount of information required to encode the discrete volume levels of digital audio.

If the encoding depth is known, then the number of digital audio loudness levels can be calculated using the formula N = 2I. Let the audio encoding depth be 16 bit, then the number of sound volume levels is:

N = 2I = 216 = 65536.

During the encoding process, each sound volume level is assigned its own 16-bit binary code, the lowest sound level will correspond to the code 0000000000000000 and the highest – 1111111111111111.

The quality of digitized sound. 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 8000 times per second, a sampling rate of 8 bits, and by recording an audio track (“mono” mode). The highest quality of digitized sound, corresponding to the quality of an audio CD, is achieved with a sampling rate of 48,000 times per second, a sampling rate of 16 bits and the recording of two audio tracks (stereo mode) .

It should be remembered that the higher the quality of the digital sound, the greater the volume of information in the audio file. You can estimate the volume of information in a digital stereo sound file with a duration of 1 second with an average sound quality (16 bits, 24,000 measurements per second). To do this, the encoding depth must be multiplied by the number of measurements in 1 second and multiplied by 2 (stereo sound):

16 bits × 24,000 × 2 = 768,000 bits = 96,000 bytes = 93.75 KB.

Sound editors. Sound editors allow you not only to record and play sound, but also to edit it. Digitized sound is presented in sound editors visually, so copying, moving, and deleting parts of the audio track can be easily performed with the mouse. Also, you can layer tracks

Analog or digital audio?

Analog or digital audio?

Analog vs. Digital Audio

Mechanical, electromechanical, optical, and magnetic recording were originally analog recording methods: recording and reproducing sound vibrations in their natural form (waves).

ANALOG vs. DIGITAL AUDIO

Many people believe that there is no better sound recording than analog. The warm analog sound of the magnetic tape is the standard of the best audio recordings for all mankind. Everyone from Elvis Presley and the Beatles to the latest electronic musicians have used and are using analog tape recording or emulation to create their music.

But analog recording is not the most accurate way to record sound. Rather the most beautiful. Analog sound is pleasant to the human ear due to the presence of “warm” harmonics, which are, in fact, distortions of sound. The most accurate sound recording principle today is digital recording.

The father of digital sound was 25-year-old Volodya Kotelnikov, who created it in 1933. The famous “report theorem” (also known as “Kotelnikov’s theorem” or “Nyquist-Shannon theorem). This theorem was the beginning of the creation of the principle of digitizing sound: encoding an audio signal into bits, that is, converting an analog signal into digital. It only took 49 years to create the CDs we know about. the world, it was only adopted in 1982.

A complete list of the types of digital sound recording in use today is digital magnetic recording (format: DAT cassette), magneto-optical recording (miniDisc format), laser recording (CD, SACD formats), digital recording optical (dolby digital)

The development of computers and digital technology has opened up enormous possibilities for processing and recording sound. Huge analog studios with countless multi-kilogram recording equipment, consoles, and sound processors are being replaced by virtual studios that fit into the computer’s system unit.

To process sound on a computer, it must first be recorded in digital, encoded format. The analog signal is encoded by an analog-to-digital converter (ADC). To play back the recording, you must reverse the digital-to-analog audio conversion using a digital-to-analog converter (DAC). The DAC and ADC are part of the computer sound card and other digital audio equipment. The quality of sound recording and playback is highly dependent on the quality of the DAC and ADC.

DAC and ADC

The main parameters of digital sound are sample rate and bit depth. Both the quality of the digitized sound and the size of the recorded file depend directly on them.

Sampling rate (sampling)

Analog recording begins by pressing the “record” button and ends by pressing the “stop” button. Digital recording is discreet. It consists of many recording fragments (samples) that follow one after another. The number of samples logged per second is the sample rate. It is calculated in hertz. The 44 100 Hz sampling rate (standard for CD) means that the audio signal is measured 44 100 times per second. The lower the sampling frequency, the smaller the frequency spectrum that is recorded. The higher the sampling frequency of the source material, the higher the quality and the larger the file size. When you talk on the phone, you only hear a small mid-range range. This is because the sample rate for phone calls is only 8,000 Hz. To transmit a range of frequencies that the average person’s ear hears and transmits home stereos: 40,000 Hz is sufficient. If the difference in sound quality between 32 and 44.1 kHz is obvious, then the higher the sampling frequency, the less perceptible or not at all perceptible to the ear the difference in quality between the two different frequencies will be. A higher sample rate describes sound more precisely, but at the same time describes those frequencies that the human ear can no longer hear, although changes in sound in the inaudible frequency range can still affect audible frequencies, so that studio recording is performed at a higher sample rate. Since consumer equipment is primarily designed to reproduce sound with a sample rate of 44.1 kHz, when the recording is ready, it is re-encoded to a generally accepted standard. If the difference in sound quality between 32 and 44.1 kHz is obvious, then the higher the sampling frequency, the less perceptible or not at all perceptible to the ear the difference in quality between the two different frequencies will be.

Analog Audio and Digital Audio

Analog Audio and Digital Audio

Analog vs Digital Audio

A sound wave is a kind of complex function, the dependence of the amplitude of a sound wave on time.

Analog Audio vs. Digital Audio

The information contained in the acoustic wave is not determined by the parameters of the medium in which the elastic wave propagates, and the oscillation parameters (amplitude and frequency, tone and harmonics).

Any form of recording (mechanical and Skye, magnetic, optical, laser) is based on the previous conversion of the sound wave into an alternating electrical current with the same parameters of the oscillations (via microphone).

Analog sound is represented on the device as a continuous electrical signal.

Sound quality depends on the fidelity of the waveform, which is very difficult to maintain.

Until 1982, the world was consuming “canned music” only from analog media: vinyl records and magnetic tapes.

Good vinyl records, played with good equipment, offered excellent sound quality, which unfortunately deteriorated a little with each listening due to mechanical wear as the stylus moved along the sound groove and into the dust that permeated everything.

Tape recorders required precision read heads and high tape feed speeds to reproduce smoothly. Over time, the tape demagnetized, the magnetic layer crumbled.

But the main disadvantage of analog audio recording is the inevitable loss of quality when copying.

The mystery of trigonometry

According to the theory of the mathematician Jean Baptiste Fourier, a sound wave can be represented as a spectrum of frequencies included in it.

The frequency components of the spectrum are sinusoidal oscillations (pure tones), each of which has its own amplitude and frequency.

According to Kotelnikov’s theorem, any vibration, even the most complex shape (for example, a human voice), can be recovered unambiguously and without loss from its discrete samples taken with a frequency equal to its doubled maximum frequency.

Vladimir Aleksandrovich Kotelnikov (1908-2005) – a prominent Soviet and Russian scientist in the field of radio engineering, radiocommunication and radio astronomy.

Observation . The finite duration signal has an infinitely wide spectrum. Therefore, when a signal with a finite duration is sampled, it is impossible to recover it from the samples without loss of quality.

Digitization of audio information

The digitization of sound is the recording of the amplitude of the signal at certain intervals and the recording of the amplitude values ​​obtained in the form of rounded digital values.
Any computer includes a motherboard, an audio adapter (sound card).

Sound cards include: ADC (analog to digital converter), synthesizer, mixer, DAC (digital to analog converter) amplifier s, MIDI interface port for gaming devices.

To record digital sound, the ADC produces:

temporal sampling of a continuous signal (determines the value of the amplitude of the signal with the frequency necessary to recreate its original shape = twice the maximum frequency of the sound wave);

quantization by the levels of the measured signal values ​​(determines the number of fixed values ​​(levels, gradations) of the amplitude of the signal);

signal coding (writing in a binary number system).

The reverse operation is performed by the DAC (digital to analog converter).

Bitrate

Bit rate (bit rate): literally bits of information of the transmission rate.

The bit rate is the effective information transmission rate through the channel (the transmission rate of “useful information”, in addition to the service information) expressed in kilobits per second (kilobits per second, kbps).

In lossy compression video and audio transmission formats, the bit rate parameter expresses the degree of compression of the stream and thus determines the size of the channel for which the data stream is compressed.

P-mode compression data stream:

with constant bit rate (constant bit rate, CBR) – The required bit rate is initially set, which does not change throughout the file. It makes it possible to predict the final file size quite accurately, but it does not provide an optimal size / quality ratio for musical works, the sound of which changes dynamically over time.

with variable bit rate (VBR): the codec changes the value of the bit rate based on the desired quality level according to the psychoacoustic model. It offers the best quality of the output file, but its size is unpredictable (it may differ several times).

with an average bit rate (ABR): a hybrid of constant and variable bit rates: the user sets the bit rate in kbit / s and the program varies it within certain limits.

What is meant by analog and digital?

The terms “analog” and “digital” are used to distinguish two
large families of electronic circuits.

Analog and digital

Analog circuits are those that handle signals that vary
continuously and must be reproduced as accurately as possible
possible. For example, a vocal amplifier is a typical device
fully analog in which the signal produced by the microphone
is processed and amplified but should not be modified in its
essential components to ensure “fidelity” of reproduction.

Analog Music in a Digital World

Digital circuits (from the English word “digit” which can be translated as
digit or number, and therefore are also called “numeric”),
instead, they deal with signals that can only have two states, usually indicated
by the numerical values ​​0 and 1, which in within the circuits correspond
two clearly differentiable signal values:
for example, 0 may correspond to a voltage
between 0 and 0.2 volts, while the value 1 at a voltage between 4.5 and 5 volts.
An element that can assume only two states represents a “bit” of information.
Most of the components of a common personal computer are made
with digital circuits.

In reality, many of today’s electronic devices
They adopt mixed technologies, part analog and part digital.
Consider, for example, a compact disc player. The sign that
represents the engraved piece is stored in the form typically
digital: a succession of microscopic areas that can be opaque
or reflective, each area corresponds to a value of 0 or 1 depending on whether
it is opaque or reflective.
The sequence of values ​​0/1 constitutes a digital representation
the acoustic signal, so the first part of the reproduction circuit
uses digital techniques.

To play the original sound,
the sequence of bits must first be transformed into an analog signal and this step is done
a particular circuit called a “digital / analog converter” that has
the purpose of translating the sequence of bits into an electrical signal
which is “Analogous” to the acoustic signal originally produced by the instruments
that played the piece that is being recorded.

Then the analog signal can be amplified (by a circuit
analog, of course) and sent to the speakers for playback
acoustics.

Rather, consider a
fully analog recording and playback system: a magnetic recorder.
In this case, the magnetic tape in the cassette “stores” the signal
acoustics in the form of variations in the intensity of magnetization,
that is, the intensity of
magnetization along the magnetic tape is proportional to the signal
original acoustics. In this sense, the trend of
magnetization is “analogous” to the trend of the acoustic signal.

The player simply transforms the variation in the magnetic field
“read” on tape in a “similar” variation of an electrical signal
which is then amplified and reproduced as an acoustic signal.

Analog – Digital

Analog  Digital

When we talk about the Internet and the current technological “machines” (mobile phone, camera, tablet, computer) we always speak of “digital” and, sometimes, we contrast this term with “analog”. But what exactly these words mean and what they refer to, many times we ignore, perhaps also because it is not relevant for us and is based on being able to use “digital” for what we need without investigating it so much.

Analog Digital

“Analog” and “digital” are terms that are constantly encountered when talking about technologies (old and new). In common sense, “analog” is associated with a meaning of “old” or “past” or “low quality”; “Digital”, on the other hand, is synonymous with “new” or “innovative” or “quality”. This common sense distinction is not true.
One thing to keep in mind when addressing these issues is that the definitions of the two terms are one thing (what do they mean, where do they come from, …) and the operational implications they have (because we use one and not the other, as the consequences, implications, results …). As if to say, one thing is the universal law of gravity (with which the sun also has to do) and another is to stay in the sun to warm up and tan.
Another thing to keep in mind is that everything that is under the Digital / Analog issue is not something of our days, its essence was not born with the advent of “new” technologies; here it is one of the oldest problems in human thought and refers to philosophical disquisitions and to the issue of “continuous” and “discrete” variables. But we won’t dwell on these.

As for the definitions. ..
First of all, we must bear in mind that when we talk about Analogue and Digital we refer to ways of representing the measure of a quantity (they are “attributes of a quantity”), to ways in which the quantities we are considering vary (such as a audio signal, a video signal, color,….).

Analogous thing is a continuously varying quantity: an analog variable can take an infinite number of values ​​(for example, the distance between two points in space can take an infinite number of values).

Digital is a quantity that varies “step by step”: a digital variable can take only a finite number of values ​​(the duration of a day; for example, it can take only one of the 85,000 values ​​if we use the “second” unit, a of the 850 thousand values ​​if we use tenths of a second or one of the 8 million and 500 thousand if we use hundredths of a second; many possibilities but still finite, determined).

We can deduce that the concept of analog can be associated with a condition of continuity, that is, in a probable path something moves by changing its location through infinite positions and defining them as infinite we exclude the possibility of being able to number them.
With digital instead, the same path would be divided into stages (steps) and even if it is very small and numerous, it would always be possible to determine the amount.

Practice

Let us now turn to the practical implications of these two ways of representing physical quantities.
Until recently, all the data with which they organized audio or video recordings, static images, data transmissions such as radio, television, telephone were organized in the form of analog signals because the instruments that detected them “. The surfaces” on which they were recorded and the channels through which they were transported were mechanical and made specifically for that type of signal, in fact, they were the same as that signal.
Let’s think about color: the colors we see in a landscape are nothing more than a well-organized set of blue, red and green lights in their infinite shades; its representation through a photograph is based on the combination of blue, red and green pigments (therefore physical objects). We can say that the representation of a landscape through a photographic print is an analog representation of reality.

With the arrival of electronics (which has to do with physical quantities transformed and processed into electrical signals), physical quantities begin to be represented through electrical signals. Initially, these electrical signals were of the analog type (electronics that use continuous signals, signals that can assume an infinite range of possible values, that is, analog signals); later and a special type of signal has been used that can assume only some values ​​among the infinitely possible, in fact it can only assume two values: the presence or absence of the signal. If we look at the basic level of any computer application we will realize that we have a very long series of numbers “one” and “zero” where “one” is the presence of the signal and “zero” its absence.
This is “digital” electronics; digital because it uses signals that are not continuous but “in jumps”.