Digital Audio 101

Sep 1, 2007 12:00 PM, by Aldo Cugnin

Dig deeper to understand digital signal conversion for audio.

    

Digital signal processing is often a mystery to many people, but the underlying principles are fairly straightforward and within the grasp of anyone with a technical background. In this feature, we’ll take a look at the theory and practice behind digital signal conversion, sampling, sample rate conversion, and quantization noise, especially as they relate to digital audio. Although some of these principals might be familiar, we’ll dig a bit deeper into the processes and offer a more in-depth understanding of the technology. Remember that the basics of signal processing also apply to any digital signal, including video.

A/D and D/A conversion

In order to convert an analog signal to digital form, sampling and quantization must be performed. Sampling is usually performed by a sample-and-hold circuit that takes brief, high-speed repetitive snapshots of the analog signal. In order to prevent sampling errors, which would cause a sin(x)/x rolloff in the frequency response of the system, the sampling period must be extremely (in theory infinitesimally) short. Quantization resolves the signal into a specific number of voltage levels. This process is defined by the number of bits needed to resolve the signal. With audio signals, these samples are usually 16-bits wide, allowing a resolution of 216 levels or 65,536 different levels. (With video, 8- or 10-bit per color sampling is usually used.)

Quantization and digital conversion are implemented by one of several different means, including flash conversion or successive approximation. In the former, a series of comparators evaluates the input voltage in relation to a set of fixed reference voltages. In the latter, a high-speed counter and D/A converter compare an estimate of the output with the input. The result of any of these methods is to generate the string of digital words that represent the samples of the signal.

Figure 1

Figure 1

The digital-to-analog conversion is much simpler. Usually, the individual bits of the sampled signal each contribute to a weighted ladder network of resistors in a simple summing circuit. The most significant bit contributes the most weight, and each successive bit contributes one-half of the previous one. The D/A converter is then followed by a low-pass post-filter that removes the sampling frequency and repeat spectra.

Sampling and quantization

The difference between a quantized signal and its original is a low-level signal known as the quantization error or noise, as seen in Figure 1. The level and characteristics of the quantization noise are defined by the type of quantizer, the quantization resolution and the sample rate.

A well-known property of quantization noise is that the signal-to-noise ratio (SNR) in dB for a full-scale sine wave is defined by the following formula: SNR = 6.02B + 1.76, where B is the number of bits. This formula is true only for sine waves, however, as it depends on the distribution of the signals. For other signals, similar formulas apply, but ordinarily each added bit of resolution cuts the noise level in half, or by 6dB.

Figure 2

Figure 2

According to Nyquist’s theorem, signals must be sampled at a rate at least twice as high as the highest frequency component. Otherwise, aliasing will occur, which is essentially a folding of the spectrum. In the time domain, this can be seen in Figure 2 on page 60. With the five cycles of sinusoidal signal shown, Nyquist states that the signal should be sampled at least 10 times over this interval. Because the signal was sampled at less than the Nyquist frequency in the example, the resulting sampled signal will have a frequency lower than that of the original, i.e., it has been aliased.

Figure 3

Figure 3

Figure 3 shows the frequency spectrum of the signal, i.e., a graph of the amplitude of the signal components versus frequency. (The spectrum of the sine wave signal in Figure 2 would consist of a single vertical line at the frequency of the signal, and that would not be very illustrative. Hence, the use of wideband signal with energy distributed over the spectrum in the figure.)

In the frequency domain, sampling has the effect of refl ecting and repeating the baseband spectrum around multiples of one-half the sample rate (fs/2 in the fi gures). (For ideal sampling, the repeat spectra repeat indefinitely; in practice however, realistic sampling will generate a series of repeat spectra that continue and eventually fall off. It is the function of the analog low-pass filter to remove all of these higher frequency components.) In the frequency domain when the wideband signal is sampled below the Nyquist rate, the signal is aliased in the neighborhood of frequency fs/2, where the components overlap, and cannot be fully recovered in any subsequent processing.

One last point: If a signal is sampled at exactly twice the highest frequency, then the signal is said to be critically sampled .

Figure 4

Figure 4

However, an interesting technique can be employed to successfully subsample a signal below Nyquist. This is because the usual form of the theorem applies to baseband signals that have frequency components (essentially) all the way down to DC. Actually, the general form of the Nyquist criterion states that signals must be sampled at a rate at least twice as high as the bandwidth of the signal, and if the lower edge of the signal stops considerably above DC (called a bandpass signal), then this allows us to sample at less than two times the highest frequency. This is shown in Figure 4.




Want to use this article?
Click here for options!
Get Copyright Clearance

Share this article

blog comments powered by Disqus

 

Current Issue

Online captioning compliance

May 2012

The FCC has issued captioning requirements for all online video. Learn how to meet the requirements of the new rules and how to automate the technical process.

Read More articles...

Related Newsletter

Audio Technology Update
A twice-monthly newsletter about audio technology.

Related Posts


Confused about the terminology in an article? Find definitions of common terms and abbreviations in Broadcast Engineering's Glossary.

 


Video Compression, Editing and Displays

Video Compression, Editing and Displays

Video compression, editing and displays is an in-depth tutorial on MPEG compression technology, editing MPEG content and evaluating color video monitors written by long-time video expert, trainer and writer Steve Mullen, Ph. D.

File Based Technology and Workflow

File Based Technology and Workflow

File-based technologies have replaced video tape methods for a majority of production and broadcast operations. The worlds of AV and IT are coalescing to create new methods and workflows for media

Sound Off Podcasts

 

Broadcast Engineering Digital Reference Guide

Browse Back Issues

Back to Top