




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















John Watkinson
The most exciting aspects of digital technology are the tremendous possibilities that were not available with analog technology. Many processes that are difficult or impossible in the analog domain are straightforward in the digital domain. Once audio is in the digital domain, it becomes data, and only differs from generic data in that it needs to be reproduced with a certain time base.
The worlds of digital audio, digital video, communication, and computation are closely related, and that is where the real potential lies. The time when audio was a specialist subject that could evolve in isolation from other disciplines has gone. Audio has now become a branch of information technology (IT); a fact that is reflected in the approach of this book.
Systems and techniques developed in other industries for other purposes can be used to store, process, and transmit audio, video, or both at once. IT equipment is available at low cost because the volume of production is far greater than that of professional audiovisual equipment. Disk drives and memories developed for computers can be put to use in such products. Communications networks developed to handle data can happily carry audiovisual data over indefinite distances without quality loss.
As the power of processors increases, it becomes possible to perform under software control processes that previously required dedicated hardware. This allows a dramatic reduction in hardware cost. Inevitably the very nature of audiovisual equipment and the ways in which it is used is changing along with the manufacturers who supply it. The computer industry is competing with traditional manufacturers, using the economics of mass production.
410 Chapter 14
Tape is a linear medium and it is necessary to wait for the tape to wind to a desired part of the recording. In contrast, the head of a hard disk drive can access any stored data in milliseconds. This is known in computers as direct access and in audio production as nonlinear access. As a result, the nonlinear editing workstation based on hard drives has eclipsed the use of tape for editing.
Digital broadcasting uses coding techniques to eliminate the interference, fading, and multipath reception problems of analog broadcasting. At the same time, more efficient use is made of available bandwidth. The hard drive-based consumer audio recorder gives the consumer more power.
Figure 14.1 shows what the home audio system of the future may look like. MPEG-compressed signals may arrive in real time by terrestrial or satellite broadcast, via
Figure 14.1 : Audio system of the future based on data technology.
412 Chapter 14
signal is noise and what is the original? If the transfer function of a system is not linear, distortion results, but the distorted waveforms are still valid; an analog system cannot detect distortion. Again distortion might be suspected, but it is impossible to tell how much of the energy at a given frequency is due to distortion and how much was actually present in the original signal.
It is a characteristic of analog systems that degradations cannot be separated from the original signal, so nothing can be done about them. At the end of a system a signal carries the sum of all degradations introduced at each stage through which it passed. This sets a limit to the number of stages through which a signal can be passed before it is useless. Alternatively, if many stages are envisaged, each piece of equipment must be far better than necessary so that the signal is still acceptable at the end. The equipment will naturally be more expensive.
Digital audio is simply an alternative means of carrying an audio waveform. Although there are a number of ways in which this can be done, there is one system, known as pulse code modulation (PCM), that is in virtually universal use.^1 Figure 14.2 shows how PCM works.
Figure 14.2: In pulse code modulation the analog waveform is measured periodically at the sampling rate. The voltage (represented here by the height) of each sample is then described by a whole number. The whole numbers are stored or transmitted rather than the waveform itself.
Digital Audio Fundamentals 413
Instead of being continuous, the time axis is represented in a discrete or stepwise manner. The audio waveform is not carried by continuous representation, but by measurement at regular intervals. This process is called sampling, and the frequency with which samples are taken is called the sampling rate or sampling frequency F s. Each sample still varies infinitely as the original waveform did. To complete the conversion to PCM, each sample is then represented to finite accuracy by a discrete number in a process known as quantizing.
At the analog-to-digital convertor (ADC), every effort is made to rid the sampling clock of jitter, or time instability, so every sample is taken at an exactly even time step. Clearly, if there is any subsequent time base error, the instants at which samples arrive will be changed and the effect can be detected. If samples arrive at some destination with an irregular time base, the effect can be eliminated by temporarily storing the samples in a memory and reading them out using a stable, locally generated clock. This process is called time base correction and all properly engineered digital audio systems will use it.
Those who are not familiar with digital principles often worry that sampling takes away something from a signal because it appears not to be taking notice of what happened between the samples. This would be true in a system having infinite bandwidth, but no analog signal can have infinite bandwidth. All analog signal sources from microphones and so on have a resolution or frequency response limit, as indeed do devices such as loudspeakers and human hearing. When a signal has finite bandwidth, the rate at which it can change is limited, and the way in which it changes becomes predictable. When a waveform can only change between samples in one way, it is then only necessary to convey the samples and the original waveform can be unambiguously reconstructed from them.
As stated, each sample is also discrete or represented in a stepwise manner. The magnitude of the sample, which will be proportional to the voltage of the audio signal, is represented by a whole number. This process is known as quantizing and results in an approximation, but the size of the error can be controlled until it is negligible. The advantage of using whole numbers is that they are not prone to drift.
If a whole number can be carried from one place to another without numerical error, it has not changed at all. By describing audio waveforms numerically, the original information has been expressed in a way that is more robust.
Essentially, digital audio carries the sound numerically. Each sample is a numerical analog of the voltage at the corresponding instant in the sound.
Digital Audio Fundamentals 415
Figure 14.4: An ideal binary signal (a) has two levels. After transmission it may look like (b), but after slicing the two levels can be recovered. Noise on a sliced signal can result in jitter (c), but reclocking combined with slicing makes the final signal identical to the original as shown in (d).
Noise
Jitter
Fixed threshold
(c)
Transmit
Transmit
Final signal identical to original
Receive
Receive
1 Compare with threshold
1 Compare with threshold
2 Reclock
2 Reclock
(d)
416 Chapter 14
it has passed through a real system. The waveform has been considerably altered, but the binary information can be recovered by comparing the voltage with a threshold that is set half way between the ideal levels. In this way any received voltage above the threshold is considered a 1 and any voltage below is considered a 0. This process is called slicing and can reject significant amounts of unwanted noise added to the signal. The signal will be carried in a channel with fi nite bandwidth, which limits the slew rate of the signal; an ideally upright edge is made to slope.
Noise added to a sloping signal [ Figure 14.4(c) ] can change the time at which the slicer judges that the level passed through the threshold. This effect is also eliminated when the output of the slicer is reclocked. Figure 14.4(d) shows that however many stages the binary signal passes through, the information is unchanged except for a delay. Of course, excessive noise could cause a problem. If it had sufficient level and an appropriate polarity, noise could force the signal to cross the threshold and the output of the slicer would then be incorrect. However, as binary has only two symbols, if it is known that the symbol is incorrect, it need only be set to the other state and a perfect correction has been achieved. Error correction really is as trivial as that, although determining which bit needs to be changed is somewhat harder.
Figure 14.5 shows that binary information can be represented by a wide range of real phenomena. All that is needed is the ability to exist in two states. A switch can be open
Figure 14.5 : A large number of real phenomena can be used to represent binary data.
418 Chapter 14
the left-hand end of the word is called the most signifi cant bit (MSB). Clearly more digits are required in binary than in decimal, but they are handled more easily. A word of eight bits is called a byte, which is a contraction of “ by eight.”
Figure 14.6 also shows some binary numbers and their equivalent in decimal. The radix point has the same significance in binary: symbols to the right of it represent one-half, one-quarter, and so on.
Binary words can have a remarkable range of meanings. They may describe the magnitude of a number such as an audio sample or an image pixel or they may specify the address of a single location in a memory. In all cases the possible range of a word is limited by the wordlength. The range is found by raising two to the power of the wordlength. Thus a 4-bit word has 16 combinations and could address a memory having 16 locations. A 16-bit word has 65,536 combinations. Figure 14.7(a) shows some examples of wordlength and resolution.
The capacity of memories and storage media is measured in bytes, but to avoid large numbers, kilobytes, megabytes, and gigabytes are often used. A 10-bit word has 1024 combinations, which is close to 1000. In digital terminology, 1 K is defi ned as 1024, so a kilobyte of memory contains 1024 bytes. A megabyte (1 MB) contains 1024 kilobytes and would need a 20-bit address. A gigabyte contains 1024 megabytes and would need a 30-bit address. Figure 14.7(b) shows some examples.
There are two main answers to this question, and it is not possible to say which is the most important, as it will depend on one’s standpoint.
a. The quality of reproduction of a well-engineered digital audio system is independent of the medium and depends only on the quality of the conversion processes and of any compression scheme. b. The conversion of audio to the digital domain allows tremendous opportunities that were denied to analog signals.
Someone who is only interested in sound quality will judge the former the most relevant. If good-quality convertors can be obtained, all the shortcomings of analog recording and transmission can be eliminated to great advantage. An extremely good signal-to-noise ratio is possible, coupled with very low distortion. Timing errors between channels can be
Digital Audio Fundamentals 419
The wordlength determines the possible range of values: Wordlength Range 1 2 3
8 10
16
2 (2^1 ) 4 (2 2 ) 8 (2 3 )
256 (2^8 ) 1024 (2^10 )
65 536 (2^16 ) (a)
(b)
Round numbers in binary (^100000000002) 1 K 1 K
1 M 1 K 1 M 1 M
1024 1 K (Kilo in computers) 1 M (Mega) 1 G (Giga) 1 T (Tera)
eliminated, making for accurate stereo images. One’s greatest effort is expended in the design of convertors, whereas those parts of the system that handle data need only be workmanlike. When a digital recording is copied, the same numbers appear on the copy: it is not a dub, it is a clone. If the copy is undistinguishable from the original, there has been no generation loss. Digital recordings can be copied indefinitely without loss of quality. This is, of course, wonderful for the production process, but when the technology becomes available to the consumer, the issue of copyright becomes of great importance.
Figure 14.7: The wordlength of a sample controls the resolution as shown in (a). The ability to address memory locations is also determined in the same way as in (b).
Digital Audio Fundamentals 421
Figure 14.8: In (a) two convertors are joined by a serial link. Although simple, this system is defi cient because it has no means to prevent noise on the clock lines causing jitter at the receiver. In (b) a phase-locked loop is incorporated, which filters jitter from the clock.
Clock
Clock
ADC (^) Parallel Data DAC to serial Noise
Serial to parallel
Noise on data is rejected
Analog out
Analog in
Clock jitter due to noise is not rejected
(a)
Clock
ADC (^) Parallel Data DAC to serial Noise
Serial to parallel
Noise on data is rejected
Analog in
Analog out
Jitter-free clock Phase- locked loop
(b)
422 Chapter 14
As Figure 14.4 showed, noise can change the timing of a sliced signal. While this system rejects noise that threatens to change the numerical value of the samples, it is powerless to prevent noise from causing jitter in the receipt of the sample clock. Noise on the clock means that samples are not converted with a regular time base and the impairment caused will be audible.
The jitter problem is overcome in Figure 14.8(b) by the inclusion of a phase-locked loop, which is an oscillator that synchronizes itself to the average frequency of the clock but which fi lters out the instantaneous jitter.
The system of Figure 14.8 is extended in Figure 14.9 by the addition of some RAM. What the device does is determined by the way in which the RAM address is controlled. If the RAM address increases by one every time a sample from the ADC is stored in the RAM, an audio recording can be made for a short period until the RAM is full. The recording can be played back by repeating the address sequence at the same clock rate but reading the memory into the DAC. The result is generally called a sampler. If the memory capacity is increased, the device can be used for general recording. RAM recorders are replacing dictating machines and the tape recorders used by journalists. In general they will be restricted to a fairly short playing time because of the high cost of memory in comparison with other storage media.
Using compression, the playing time of a RAM-based recorder can be extended. For unchanging sounds such as test signals and station IDs, read only memory can be used instead as it is nonvolatile.
Figure 14.9: In the digital sampler, the recording medium is a RAM. Recording time available is short compared with other media, but access to the recording is immediate and flexible as it is controlled by addressing the RAM.
424 Chapter 14
transmission, the time compression of the samples allows time for synchronizing patterns, subcode, and error-correction words to be inserted.
Subsequently, any time compression can be reversed by time expansion. This requires a second RAM identical to the one shown. Data are written into the RAM in bursts, but read out at the standard sampling rate to restore a continuous bit stream. In a recorder, the time-expansion stage can be combined with the time base correction stage so that speed variations in the medium can be eliminated at the same time. The use of time compression is universal in digital recording and is widely used in transmission. In general the instantaneous data rate in the channel is not the same as the original rate, although clearly the average rate must be the same.
Where the bit rate of the communication path is inadequate, transmission is still possible, but not in real time. Figure 14.11 shows that data to be transmitted will have to be written in real time on a storage device such as a disk drive, and the drive will then transfer data at whatever rate is possible to another drive at the receiver. When the transmission is complete, the second drive can then provide data at the correct bit rate.
In the case where the available bit rate is higher than the correct data rate, the same confi guration can be used to copy an audio data file faster than in real time. Another application of time compression is to allow several streams of data to be carried along the same channel in a technique known as multiplexing. Figure 14.12 shows some examples. In Figure 14.12(a) , multiplexing allows audio and video data to be recorded on the same heads in a digital video recorder such as DVC. In Figure 14.12(b) , several radio or television channels are multiplexed into one MPEG transport stream.
Figure 14.11 : In nonreal-time transmission, data are transferred slowly to a storage medium, which then outputs real-time data. Recordings can be downloaded to the home in this way.
Digital Audio Fundamentals 425
All practical recording and transmission media are imperfect. Magnetic media, for example, suffer from noise and dropouts. In a digital recording of binary data, a bit is either correct or wrong, with no intermediate stage. Small amounts of noise are rejected, but inevitably, infrequent noise impulses cause some individual bits to be in error. Dropouts cause a larger number of bits in one place to be in error. An error of this kind is called a burst error. Whatever the medium and whatever the nature of the mechanism responsible, data are either recovered correctly or suffer some combination of bit errors
Figure 14.12: (a) Time compression is used to shorten the length of track needed by the video. Heavily time-compressed audio samples can then be recorded on the same track using common circuitry. In MPEG, multiplexing allows data from several TV channels to share one bit stream (b).
Time
Video
Recording
Audio (a)
(b)
Digital Audio Fundamentals 427
The presence of an error-correction system means that the audio quality is independent of the medium/head quality within limits. There is no point in trying to assess the health of a machine by listening to the audio, as this will not reveal whether the error rate is normal or within a whisker of failure. The only useful procedure is to monitor the frequency with which errors are being corrected and to compare it with normal figures.
Digital systems such as broadcast channels, optical disks, and magnetic recorders are prone to burst errors. Adding redundancy equal to the size of expected bursts to every code is ineffi cient. Figure 14.14(a) shows that the efficiency of the system can be raised using interleaving. Sequential samples from the ADC are assembled into codes, but these are not recorded/transmitted in their natural sequence. A number of sequential codes are assembled along rows in a memory. When the memory is full, it is copied to the medium by reading down columns.
Figure 14.13: In cases where error correction is inadequate, concealment can be used, provided that the samples have been ordered appropriately in the recording. Odd and even samples are recorded in different places as shown here. As a result, an uncorrectable error causes incorrect samples to occur singly, between correct samples. In the example shown, sample 8 is incorrect, but samples 7 and 9 are unaffected and an approximation to the value of sample 8 can be had by taking the average value of the two. This interpolated value is substituted for the incorrect value.
428 Chapter 14
Subsequently, the samples need to be deinterleaved to return them to their natural sequence. This is done by writing samples from tape into a memory in columns, and when it is full, the memory is read in rows. Samples read from the memory are now in their original sequence so there is no effect on the information. However, if a burst error occurs, as is shown shaded on the diagram, it will damage sequential samples in a vertical direction in the deinterleave memory. When the memory is read, a single large error is broken down into a number of small errors whose sizes are exactly equal to the correcting power of the codes and the correction is performed with maximum efficiency.
An extension of the process of interleave is where the memory array has not only rows made into code words but also columns made into code words by the addition of vertical redundancy. This is known as a product code. Figure 14.14(b) shows that in a product code the redundancy calculated first and checked last is called the outer code, and the redundancy calculated second and checked first is called the inner code. The inner code
Figure 14.14(a): Interleaving is essential to make error-correction schemes more efficient. Samples written sequentially in rows into a memory have redundancy P added to each row. The memory is then read in columns and data are sent to the recording medium. On replay the nonsequential samples from the medium are deinterleaved to return them to their normal sequence. This breaks up the burst error (shaded) into one error symbol per row in the memory, which can be corrected by the redundancy P.