Lecture 17 Analog Music Storage Digital Signals Digital Music Storage Instructor: David Kirkby

Slides:



Advertisements
Similar presentations
Chapter 3: PCM Noise and Companding
Advertisements

EET260: A/D and D/A conversion
Lecture 18 CD, DVD Storage Audio Compression Digital Music Synthesis Final Exam Review Instructor: David Kirkby
EET260 Introduction to digital communication
Fundamentals of Audio Production. Chapter 6. 1 Fundamentals of Audio Production Chapter Six: Recording, Storing, and Playback of Sound.
Analog Representations of Sound Magnified phonograph grooves, viewed from above: When viewed from the side, channel 1 goes up and down, and channel 2 goes.
Introduction to Digital Audio
A Dan Turkel Production. What is sound?  Sound is a wave of pressure oscillation. Sound is measured in amplitude (the height of the wave, how loud it.
Tamara Berg Advanced Multimedia
Chapter 4: Representation of data in computer systems: Sound OCR Computing for GCSE © Hodder Education 2011.
Analogue to Digital Conversion (PCM and DM)
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
DIGITAL COMMUNICATIONS.  The modern world is dependent on digital communications.  Radio, television and telephone systems were essentially analog in.
Digital Representation of Audio Information Kevin D. Donohue Electrical Engineering University of Kentucky.
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Chapter 2 Fundamentals of Data and Signals
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
Fundamentals of Digital Audio. The Central Problem n Waves in nature, including sound waves, are continuous: Between any two points on the curve, no matter.
Chapter 4 Digital Transmission
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Analogue and Digital Signals SL – Option C.1. Signals When talking about electronics we will talk about ‘signals’ –This is simply the transfer of information.
Formatting and Baseband Modulation
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Data Communications & Computer Networks, Second Edition1 Chapter 2 Fundamentals of Data and Signals.
Computer Networks Digitization. Spring 2006Computer Networks2 Transfer of an Analog Signal  When analog data (voice, pictures, video) are transformed.
COMP Representing Sound in a ComputerSound Course book - pages
Lecture 5: Signal Processing II EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/20/13.
Modulation Continuous wave (CW) modulation AM Angle modulation FM PM Pulse Modulation Analog Pulse Modulation PAMPPMPDM Digital Pulse Modulation DMPCM.
CSC361/661 Digital Media Spring 2002
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
ECE 4710: Lecture #9 1 PCM Noise  Decoded PCM signal at Rx output is analog signal corrupted by “noise”  Many sources of noise:  Quantizing noise »Four.
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
Analogue vs Digital. Analogue  Lots of different frequencies, lots of different amplitudes  Wave recorded as it is.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
Chapter #5 Pulse Modulation
Analogue and Digital Signals SL – Option C.1 HL – Core 14.1.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
Digital Technology 14.1 Analogue and Digital Signals.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
1 st semester 1436 / Modulation Continuous wave (CW) modulation AM Angle modulation FM PM Pulse Modulation Analog Pulse Modulation PAMPPMPDM Digital.
Audio sampling as an example of analogue to digital Mr S McIntosh.
Pulse Code Modulation (PCM) Analog voice data must be translated into a series of binary digits before they can be transmitted. With Pulse Code Modulation.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Topics discussed in this section:
PCM (Pulse Code Modulation)
Multimedia Systems and Applications
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Pulse Code Modulation (PCM)
High Resolution Digital Audio
14.1 Analogue and Digital Signals
Data Representation Keywords Sound
Digital Control Systems Waseem Gulsher

Pulse Code Modulation (PCM)
Lecture 10: Quantizing & PCM 1nd semester By: Adal ALashban.
COMS 161 Introduction to Computing
Analog to Digital Encoding
Presentation transcript:

Lecture 17 Analog Music Storage Digital Signals Digital Music Storage Instructor: David Kirkby

Physics of Music, Lecture 17, D. Kirkby2 Miscellaneous Normal office hours this week: Wed 10-11am, 3-4pm. I will be travelling Fri-Wed. Office hours will be Wed (Dec 11) 3-5pm during exam week. The final exam will be 90 mins, held in class on Fri Dec 13. The final exam format will be similar to the midterm: multiple choice questions (bring a Scantron again!) Free-form questions We will do some review questions in class on Thursday.

Physics of Music, Lecture 17, D. Kirkby3 Analog Signals An analog sound signal can be represented as a curve of amplitude versus time: amplitude time Ideally, both time and amplitude can vary continuously over any range.

Physics of Music, Lecture 17, D. Kirkby4 Analog Sound Storage The first sound recordings were made by Thomas Edisons tinfoil phonograph in 1877 (a productive period: the telephone was invented in 1876 and the electric light bulb in 1878!). Edisons invention was later perfected into the Berliner and Victor gramophones.

Physics of Music, Lecture 17, D. Kirkby5 Stereo LP Records Stereo records pressed in vinyl consist of small grooves whose walls are carved in the shape of the signal to be recorded: A diamond-tipped stylus follows these grooves to recreate the recorded sound. How does a single groove record stereo sound?

Physics of Music, Lecture 17, D. Kirkby6 Magnetic Tape Another method of storing signals is magnetically. Magnetic audio tape consists of a thin plastic tape (135m long for 90 mins) coated in a magnetic powder. Individual particles in the coating behave like tiny magnets. The fraction of particles whose magnets line up encodes the signals amplitude. This fraction is read by a magnet with a small (~4 m) gap as the tape moves (~5cm/s) by.

Physics of Music, Lecture 17, D. Kirkby7 Cassette tape actually encodes four parallel tracks of information: Side A left channel Side A right channel Side B left channel Similar techniques of magnetic storage are used in video tapes, and computer hard discs & floppy discs.

Physics of Music, Lecture 17, D. Kirkby8 Digital Signals Digital signals replace the continuous amplitude and time variables with their discrete (or quantized) equivalents: What are the advantages and limitations of converting an analog signal into a digital form? amplitude time

Physics of Music, Lecture 17, D. Kirkby9 Digital Signals are Immune to Noise The main advantage of a digital signal over the corresponding analog signal is it can usually be stored (eg, on a CD) or transmitted (eg, over the internet) without being corrupted by the addition of any noise. This means that the stored or transmitted digital copy is an exact replica of the original digital signal. Analog signals are not immune to noise, so that making a copy of a copy of a … copy results in a final copy that is significantly degraded from the original source version. Analogy: broken telephone game with full-sentence or yes/no answers.

Physics of Music, Lecture 17, D. Kirkby10 Here is an example of a CD-quality digital sample that we will use for audio tests. Can you predict what you will hear based on the samples spectrograph?

Physics of Music, Lecture 17, D. Kirkby11 Limitations of Time Sampling The main limitation of only recording the signals amplitude at regularly-spaced intervals is that some wiggles between samples are lost. These wiggles correspond to high-frequency components of the original signal so that only frequencies f < 1/(2T) can be accurately represented by the digital signal (Nyquist Sampling Theorem). amplitude time

Physics of Music, Lecture 17, D. Kirkby12 Aliasing Listen to these digital recordings with different sampling rates: 44.1 kHz (CD quality) 8 kHz (typical phone line quality) 2 kHz Note that frequencies above the cutoff frequency (2/T) do not disappear, but instead are mirrored at lower frequencies below the cutoff! This effect is called aliasing. time frequency 2/T

Physics of Music, Lecture 17, D. Kirkby13 Here are the spectrograms of the 44kHz and 2kHz sounds:

Physics of Music, Lecture 17, D. Kirkby14 Filtering and Phase Distortion The solution to the aliasing problem is to remove high frequencies from the original analog signal, before converting it to a digital signal: 44.1 kHz (CD quality) 8 kHz (typical phone line quality) 2 kHz Low-Pass Filter Analog-to- Digital Converter The filtering can introduce a new type of problem (phase distortion) for frequencies near the cutoff frequency. These effects are not audible for sampling rates above ~40kHz (DAT: 48kHz, DVD-Audio: up to 192 kHz)

Physics of Music, Lecture 17, D. Kirkby15 Here are the spectrograms of the 2kHz sample with and without 1kHz low-pass filtering: with LP filter without LP filter

Physics of Music, Lecture 17, D. Kirkby16 Limitations of Amplitude Sampling Amplitude sampling means that there is a smallest possible change that can be represented. In practice, amplitude sampling also means that there is a minimum/maximum amplitude that can be represented. amplitude time

Physics of Music, Lecture 17, D. Kirkby17 Binary Amplitude Levels The most common way of digitally encoding amplitude levels is with Pulse Code Modulation (PCM). PCM signals are encoded in binary with a certain number B of bits. This means that some range of amplitudes (-A LIM,+A LIM ) is covered by 2 B discrete levels: B = 4 gives 16 levels B = 8 gives 256 levels B = 16 gives levels Amplitude changes of less than 2A LIM / 2 B are too small too encode. Amplitudes beyond -A LIM or +A LIM are too large too encode.

Physics of Music, Lecture 17, D. Kirkby18 Quantization Error The difference between the true amplitude and the digital amplitude value for each sample is called the quantization error. Quantization error is more noticeable for quiet signals than for loud signals. Listen to these digital recordings (at 44.1kHz) using: 16-bit (65536 levels, CD quality) 8-bit (256 levels, typical telephone quality) 4-bit (16 levels) Dithering and companding are two techniques for minimizing the effects of quantization error.

Physics of Music, Lecture 17, D. Kirkby19 Compare these spectrograms for 16-bit, 8-bit and 4-bit amplitude digitization:

Physics of Music, Lecture 17, D. Kirkby20 Clipping Amplitudes outside of the range (-A LIM,+A LIM ) are clipped: amplitude time -A LIM +A LIM Clipping affects loud signals more than quiet signals. Listen to these examples of clipped sounds: some clipping more clipping

Physics of Music, Lecture 17, D. Kirkby21 Compare these spectrograms with different amounts of clipping:

Physics of Music, Lecture 17, D. Kirkby22 Sampling Rate and Levels Tradeoff The amount of space S (in bytes) needed to store eight seconds of music (or any other sound) recorded at a sampling rate R (in Hz) and with 2 B levels is: S = R x B For example, 8 secs of CD-quality music (R=44.1 kHz, B = 16) takes up ~0.7 Mbytes. The same amount of telephone- quality music (R=8 kHz, B=8) takes up ~64 kbytes. Compare these digital recordings that each take the same amount of space (32 kbytes / 8 secs, 20x less than CD): 2 kHz sampling rate, 16-bit amplitude levels 4 kHz sampling rate, 8-bit amplitude levels 8 kHz sampling rate, 4-bit amplitude levels

Physics of Music, Lecture 17, D. Kirkby23 Compare these spectrograms with different rate-levels tradeoffs (but all the same size, ~20x smaller than CD): 2 kHz, 16 bit 4 kHz, 8 bit 8 kHz, 4 bit