How Analog and Digital Recording and CDs Work Adapted from by Marshall Brain

Similar documents
How CD and DVD Players Work. M. Mansuripur Optical Sciences Center The University of Arizona Tucson, AZ

Compact Disc How it Works?

General Items: Reading Materials: Miscellaneous: Lecture 9 / Chapter 7 COSC1300/ITSC 1401/BCIS /19/2004 ? H ? T

ASSIGNMENT , The feedback signal in the velocity transducer servo circuit performs which of the following functions? 12-1.

Chapter 9: Peripheral Devices. By: Derek Hildreth Chad Davis

CHAPTER 10: SOUND AND VIDEO EDITING

Data and File Structures Chapter 3. Secondary Storage and System Software: CD-ROM & Issues in Data Management

A CD has a long, spiraled data track. If you were to unwind this track, it would extend out 3.5 miles (5 km).

QUESTIONS ABOUT COMPUTERS

What is the typical configuration of a computer sold today? 1-1

CS 074 The Digital World. Digital Audio

The Compact Disc Story. Kees A. Schouhamer Immink Turing Machines Inc Rotterdam

Computer System Architecture

The personal computer system uses the following hardware device types -

Digital Circuits ECS 371

CD and DVD History. High Sierra Format (HSF) CD-ROM Data Storage. CD-ROM Mode 1. CD-ROM Mode 2

Computer Organization and Technology External Memory

vinodsrivastava.wordpress.com

FACTFILE: GCE DIGITAL TECHNOLOGY

Skill Area 214: Use a Multimedia Software. Software application (SWA)

Discovering Computers 2008

Lesson #8 Optical Storage Media. 8. Optical Storage Media - Copyright Denis Hamelin - Ryerson University

Optical discs can store data at much higher densities than magnetic disks. They are therefore ideal for multimedia applications where images,

Digital Audio. Amplitude Analogue signal

TODAY AND TOMORROW. Storage CHAPTER

Unit I Light and Optics

STORAGE. Memory Versus Storage

CDs & DVDs: Different Types of Disk Explained

Introduction to Computers

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.

Operating System s Handling of Sample Rates

CBS For Windows CDROM Backup System Quick Start Guide Installation Preparation:

What is Data Storage?

Topic 4: Storage Devices

Computer Devices Part 1 25 Question(s) Test ID:

The Concept of Sample Rate. Digitized amplitude and time

Breaking News! Blu-Ray Wins Format War

Appendix 1. Case 1 CONTENTS

VINYL RECORDS SPECIFICATIONS AND INFORMATION of production to TAKT Sp. z o.o.

COS 116 The Computational Universe Laboratory 4: Digital Sound and Music

COS 116 The Computational Universe Laboratory 4: Digital Sound and Music

General Computing Concepts. Coding and Representation. General Computing Concepts. Computing Concepts: Review

& Windows XP. ESC 12/Podcasting Workshop Handout/June 2009/Exec Svcs Tech/Rev 2

A Digital Audio Primer

08 Sound. Multimedia Systems. Nature of Sound, Store Audio, Sound Editing, MIDI

Multimedia Project Delivering

Introduction to computers

Secondary Storage Devices: Magnetic Disks Optical Disks Floppy Disks Magnetic Tapes CENG 351 1

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

XP: Backup Your Important Files for Safety

Unit 5: Memory Organizations

INTRODUCTION TO Data Storage

Diffraction: Taking Light Apart

VOSP: Vertically Aligned Optical Stability Platform

north star design MODEL192 High Performance CD-TRANSPORT 192kHz-24bit Owner s Manual Serial #:

Backing Storage Media

TEAMS National Competition High School Version Photometry 25 Questions

Interference of Light

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Blaze Audio Karaoke Sing-n-Burn

PRATHYUSHA INSTITUTE OF TECHNOLOGY AND MANAGEMENT

Audiograbber (convert audio-cd to mp3)

Database Management Systems, 2nd edition, Raghu Ramakrishnan, Johannes Gehrke, McGraw-Hill

Intro To Pure Data Documentation

Using Liberty Instruments PRAXIS for Room Sound Convolution Rev 9/12/2004

Physics 122 Spring 2013 Test 1

Selection tool - for selecting the range of audio you want to edit or listen to.

The 1-Bit Advantage Future Proof Recording

Name Modeling with Geometry 3.1H

Introduction to Audacity

Microcontroller Compatible Audio File Conversion

E T UNIT 6 P C. Multimedia T E C H O N O L O G Y DPW

Storage. How does volatility compare? What is a storage device and a storage medium? Today s standard disk is 3.5 wide

Multimedia Technology

Make Kits and Casemods

Cassette2CD Wizard 2.05 User's Manual

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopas dfghjklzxcvbnmqwertyuiopasdfghjkl

Lecture #3: Digital Music and Sound

Storage. What is storage? Holds data, instructions, and information for future use Storage medium is physical material used for storage

Types of Data. PE 231 Education Media AND Technology. Information. Assessment. Information Concepts

EEN118 LAB FOUR. h = v t ½ g t 2

turntable catalogue I europe

MACCHIATO. S.T.E.M. Pack MINI DIGITAL SYNTHESIZER

HARD DRIVE, FLOPPY DRIVE HOW DOES IT ALL FIT?

COSC 243. Memory and Storage Systems. Lecture 10 Memory and Storage Systems. COSC 243 (Computer Architecture)

EEN118 LAB FOUR. h = v t ½ g t 2

A track on a magnetic disk is a concentric rings where data is stored.

SECTION 2 4 OPERATION OF INSTRUMENTS AND CONTROLS. Car audio system

Worksheet Answer Key: Scanning and Mapping Projects > Mine Mapping > Investigation 2

Audio Controller i. Audio Controller

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 6 External Memory

COPYRIGHTED MATERIAL. An Introduction to Computers That Will Actually Help You in Life. Chapter 1. Memory: Not Exactly 0s and 1s. Memory Organization

Fundamental of Digital Media Design. Introduction to Audio

Basic computer principles

Assignment 10 Solutions Due May 1, start of class. Physics 122, sections and 8101 Laura Lising

AET 1380 Digital Audio Formats

Preferred Settings to Play all File Types with JRiver Media Engine 20 using a Windows 7 or 8 Computer

Introduction to computers

Best-in-class audio recording

There we are; that's got the 3D screen and mouse sorted out.

Transcription:

How Analog and Digital Recording and CDs Work Adapted from www.howstuffworks.com by Marshall Brain In the Beginning: Etching Tin Thomas Edison is credited with creating the first device for recording and playing back sounds in 1877. His approach used a very simple mechanism to store an analog wave mechanically. In Edison's original phonograph, a diaphragm directly controlled a needle, and the needle scratched an analog signal onto a tinfoil cylinder. You spoke into Edison's device while rotating the cylinder, and the needle "recorded" what you said onto the tin. That is, as the diaphragm vibrated, so did the needle, and those vibrations impressed themselves onto the tin. To play the sound back, the needle moved over the groove scratched during recording. During playback, the vibrations pressed into the tin caused the needle to vibrate, causing the diaphragm to vibrate and play the sound. This system was improved by Emil Berliner in 1887 to produce the gramophone, which is also a purely mechanical device using a needle and diaphragm. The gramophone's major improvement was the use of flat records with a spiral groove, making mass production of the records easy. The modern phonograph works the same way, but the signals read by the needle are amplified electronically rather than directly vibrating a mechanical diaphragm. Analog Wave What is it that the needle in Edison's phonograph is scratching onto the tin cylinder? It is an analog wave representing the vibrations created by your voice. For example, here is a graph showing the analog wave created by saying the word "hello": This waveform was recorded electronically rather than on tinfoil, but the

principle is the same. What this graph is showing is, essentially, the position of the microphone's diaphragm (Y axis) over time (X axis). The vibrations are very quick -- the diaphragm is vibrating on the order of 1,000 oscillations per second. This is the sort of wave scratched onto the tinfoil in Edison's device. Notice that the waveform for the word "hello" is fairly complex. A pure tone is simply a sine wave vibrating at a certain frequency, like this 500-hertz wave (500 hertz = 500 oscillations per second): You can see that the storage and playback of an analog wave can be very simple -- scratching onto tin is certainly a direct and straightforward approach. The problem with the simple approach is that the fidelity is not very good. For example, when you use Edison's phonograph, there is a lot of scratchy noise stored with the intended signal, and the signal is distorted in several different ways. Also, if you play a phonograph repeatedly, eventually it will wear out -- when the needle passes over the groove it changes it slightly (and eventually erases it). Digital Data In a CD (and any other digital recording technology), the goal is to create a recording with very high fidelity (very high similarity between the original signal and the reproduced signal) and perfect reproduction (the recording sounds the same every single time you play it no matter how many times you play it). To accomplish these two goals, digital recording converts the analog wave into a stream of numbers and records the numbers instead of the wave. The conversion is done by a device called an analog-to-digital converter (ADC). To play back the music, the stream of numbers is converted back to an analog wave by a digital-to-analog converter (DAC). The analog wave produced by the DAC is amplified and fed to the speakers to produce the sound. The analog wave produced by the DAC will be the same every time, as long

as the numbers are not corrupted. The analog wave produced by the DAC will also be very similar to the original analog wave if the analog-to-digital converter sampled at a high rate and produced accurate numbers. You can understand why CDs have such high fidelity if you understand the analog-to-digital conversion process better. Let's say you have a sound wave, and you wish to sample it with an ADC. Here is a typical wave (assume here that each tick on the horizontal axis represents onethousandth of a second): When you sample the wave with an analog-to-digital converter, you have control over two variables: - The sampling rate - Controls how many samples are taken per second - The sampling precision - Controls how many different gradations (quantization levels) are possible when taking the sample In the following figure, let's assume that the sampling rate is 1,000 per second and the precision is 10:

The green rectangles represent samples. Every one-thousandth of a second, the ADC looks at the wave and picks the closest number between 0 and 9. The number chosen is shown along the bottom of the figure. These numbers are a digital representation of the original wave. When the DAC recreates the wave from these numbers, you get the blue line shown in the following figure: You can see that the blue line lost quite a bit of the detail originally found in the red line, and that means the fidelity of the reproduced wave is not very good. This is the sampling error. You reduce sampling error by increasing both the sampling rate and the precision. In the following figure, both the rate and the precision have been improved by a factor of 2 (20 gradations at a rate of 2,000 samples per second): In the following figure, the rate and the precision have been doubled again (40 gradations at 4,000 samples per second):

You can see that as the rate and precision increase, the fidelity (the similarity between the original wave and the DAC's output) improves. In the case of CD sound, fidelity is an important goal, so the sampling rate is 44,100 samples per second and the number of gradations is 65,536. At this level, the output of the DAC so closely matches the original waveform that the sound is essentially "perfect" to most human ears. CD Storage Capacity One thing about the CD's sampling rate and precision is that it produces a lot of data. On a CD, the digital numbers produced by the ADC are stored as bytes, and it takes 2 bytes to represent 65,536 gradations. There are two sound streams being recorded (one for each of the speakers on a stereo system). A CD can store up to 74 minutes of music, so the total amount of digital data that must be stored on a CD is: 44,100 samples/(channel*second) * 2 bytes/sample * 2 channels * 74 minutes * 60 seconds/minute = 783,216,000 bytes That is a lot of bytes! To store that many bytes on a cheap piece of plastic that is tough enough to survive the abuse most people put a CD through is no small task, especially when you consider that the first CDs came out in 1980. To fit more than 783 megabytes (MB) onto a disc only 4.8 inches (12 cm) in diameter requires that the individual bytes be very small. By examining the physical construction of a CD, you can begin to understand just how small these bytes are. A CD is a fairly simple piece of plastic, about four one-hundredths (4/100) of an inch (1.2 mm) thick. Most of a CD consists of an injection-molded piece of clear polycarbonate plastic. During manufacturing, this plastic is impressed with microscopic bumps arranged as a single, continuous,

extremely long spiral track of data. We'll return to the bumps in a moment. Once the clear piece of polycarbonate is formed, a thin, reflective aluminum layer is sputtered onto the disc, covering the bumps. Then a thin acrylic layer is sprayed over the aluminum to protect it. The label is then printed onto the acrylic. A cross section of a complete CD (not to scale) looks like this: Cross-section of a CD Understanding the CD: The Spiral A CD has a single spiral track of data, circling from the inside of the disc to t he outside. The fact that the spiral track starts at the center means that the CD can be smaller than 4.8 inches (12 cm) if desired, and in fact there are now plastic baseball cards and business cards that you can put in a CD player. CD business cards hold about 2 MB of data before the size and shape of the card cuts off the spiral. What the picture on the right does not even begin to impress upon you is how incredibly small the data track is -- it is approximately 0.5 microns wide, with 1.6 microns separating one track from the next. (A micron is a millionth of a meter.) And the bumps are even more miniscule... Understanding the CD: Bumps The elongated bumps that make up the track are each 0.5 microns wide, a minimum of 0.83 microns long and 125 nanometers high. (A nanometer is a billionth of a meter.) Looking through the polycarbonate layer at the bumps, they look something like this:

You will often read about "pits" on a CD instead of bumps. They appear as pits on the aluminum side, but on the side the laser reads from, they are bumps. The incredibly small dimensions of the bumps make the spiral track on a CD extremely long. If you could lift the data track off a CD and stretch it out into a straight line, it would be 0.5 microns wide and almost 3.5 miles (5 km) long! To read something this small you need an incredibly precise disc-reading mechanism. Let's take a look at that. CD Player Components The CD player has the job of finding and reading the data stored as bumps on the CD. Considering how small the bumps are, the CD player is an exceptionally precise piece of equipment. The drive consists of three fundamental components: - A drive motor spins the disc. This drive motor is precisely controlled to rotate between 200 and 500 rpm depending on which track is being read. - A laser and a lens system focus in on and read the bumps. - A tracking mechanism moves the laser assembly so that the laser's beam can follow the spiral track. The tracking system has to be able to move the laser at micron resolutions.

Inside a CD player What the CD Player Does: Laser Focus Inside the CD player, there is a good bit of computer technology involved in forming the data into understandable data blocks and sending them either to the DAC (in the case of an audio CD) or to the computer (in the case of a CD-ROM drive). The fundamental job of the CD player is to focus the laser on the track of bumps. The laser beam passes through the polycarbonate layer, reflects off the aluminum layer and hits an opto-electronic device that detects changes in light. The bumps reflect light differently than the "lands" (the rest of the aluminum layer), and the opto-electronic sensor detects that change in reflectivity. The electronics in the drive interpret the changes in reflectivity in order to read the bits that make up the bytes. What the CD Player Does: Tracking The hardest part is keeping the laser beam centered on the data track. This centering is the job of the tracking system. The tracking system, as it plays the CD, has to continually move the laser outward. As the laser moves outward from the center of the disc, the bumps move past the laser faster -- this happens because the linear, or tangential, speed of the bumps is equal to the radius times the speed at which the disc is revolving (rpm). Therefore, as the laser moves outward, the spindle motor must slow the speed of the CD. That way, the bumps travel past the laser at a constant speed, and the data comes off the disc at a constant rate.

CD Encoding Issues If you have a CD-R drive, and want to produce your audio CDs or CD-ROMs, one of the great things you've got going in your favor is the fact that software can handle all the details for you. You can say to your software, "Please store these songs on this CD," or "Please store these data files on this CD-ROM," and the software will do the rest. Because of this, you don't need to know anything about CD data formatting to create your own CDs. However, CD data formatting is complex and interesting, so let's go into it anyway. own To understand how data are stored on a CD, you need to understand all of the different conditions the designers of the data encoding methodology were trying to handle. Here is a fairly complete list: - Because the laser is tracking the spiral of data using the bumps, there cannot be extended gaps where there are no bumps in the data track. To solve this problem, data is encoded using EFM (eight-fourteen modulation). In EFM, 8-bit bytes are converted to 14 bits, and it is guaranteed by EFM that some of those bits will be 1s. - Because the laser wants to be able to move between songs, data needs to be encoded into the music telling the drive "where it is" on the disc. This problem is solved using what is known as subcode data. Subcode data can encode the absolute and relative position of the laser in the track, and can also encode such things as song titles. - Because the laser may misread a bump, there need to be errorcorrecting codes to handle single-bit errors. To solve this problem, extra data bits are added that allow the drive to detect single-bit errors and correct them. - Because a scratch or a speck on the CD might cause a whole packet of bytes to be misread (known as a burst error), the drive needs to be able to recover from such an event. This problem is solved by actually interleaving the data on the disc, so that it is stored non-sequentially around one of the disc's circuits. The drive actually reads data one revolution at a time, and un-interleaves the data in order to play it. - If a few bytes are misread in music, the worst thing that can happen is a little fuzz during playback. When data is stored on a CD, however, any data error is catastrophic. Therefore, additional error correction codes are used when storing data on a CD-ROM.