SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.

Slides:



Advertisements
Similar presentations
Digital Signal Processing
Advertisements

ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3 Data and Signals
Signals The main function of the physical layer is moving information in the form of electromagnetic signals across a transmission media. Information can.
3.1 Chapter 3 Data and Signals Computer Communication & Networks.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Information Sources & Signals
CMP206 – Introduction to Data Communication & Networks Lecture 2 – Signals.
Note To be transmitted, data must be transformed to electromagnetic signals.
The frequency spectrum
1 Lecture 27 Physical Layer (Data and Signals) University of Nevada – Reno Computer Science & Engineering Department Fall 2010 CPE 400 / 600 Computer Communication.
Computer Communication and Networks
Lecture 9: D/A and A/D Converters
TRANSMISSION FUNDAMENTALS Review
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
CHAPTER 5 Discrete Sampling and Analysis of Time-Varying Signals Analog recording systems, which can record signals continuously in time, digital data-acquisition.
School of Computing Science Simon Fraser University
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
EKT343 –Principle of Communication Engineering
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
First semester King Saud University College of Applied studies and Community Service 1301CT.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Basics of Signal Processing. frequency = 1/T  speed of sound × T, where T is a period sine wave period (frequency) amplitude phase.
Frequency Domain Representation of Sinusoids: Continuous Time Consider a sinusoid in continuous time: Frequency Domain Representation: magnitude phase.
Audio Fundamentals Lesson 2 Sound, Sound Wave and Sound Perception
IT-101 Introduction to Information Technology Lecture #6-7.
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.
LE 460 L Acoustics and Experimental Phonetics L-13
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Computer Science 121 Scientific Computing Winter 2014 Chapter 13 Sounds and Signals.
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
UNIT - 4 ANALYSIS OF DISCRETE TIME SIGNALS. Sampling Frequency Harry Nyquist, working at Bell Labs developed what has become known as the Nyquist Sampling.
Lecture 1 Signals in the Time and Frequency Domains
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
COMP Representing Sound in a ComputerSound Course book - pages
CSC361/661 Digital Media Spring 2002
IT-101 Section 001 This is an addition to lecture 8 Lecture #14 Introduction to Information Technology.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
Chapter 3 Data and Signals
Chapter #5 Pulse Modulation
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Digital Image Processing DIGITIZATION. Summery of previous lecture Digital image processing techniques Application areas of the digital image processing.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Properties of Sound Making Waves. Sound Waves ■Sound is created by vibrations.
Chapter 21 Musical Sounds.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
IT-101 Section 001 Lecture #9 Introduction to Information Technology.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
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.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Chapter 6 Digital Audio Technology
Part II Physical Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Physics of Sound.
COMPUTER NETWORKS and INTERNETS
MECH 373 Instrumentation and Measurements
Multimedia Systems and Applications
Lecture Signals with limited frequency range
Dr. Nikos Desypris, Oct Lecture 3
CHAPTER 3 DATA AND SIGNAL
Signals and Systems Networks and Communication Department Chapter (1)
MECH 373 Instrumentation and Measurements
Digital Control Systems Waseem Gulsher
Physical Layer Part 1 Lecture -3.
Analog to Digital Encoding
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information

2  Overview Chapters Background on audio signals Period, frequency and amplitude Audio signal components Sampling rate Undersampling and Oversampling Reconstructing audio from samples

3  Background on Audio Signals Sound is created by the motion of air particles in space (by applying mechanical force to air – ex. dropping a book on the floor will expand energy. Energy will move air around, which motion is perceived as sound.) The changes in air pressure can be measured and recorded, for example by using a microphone (converts the air motion into an electrical signal) We recall the “hello” wave of human voice:

4 Properties of audio signals Audio signals have frequency components that are complex In other words, most audio signals are made up of several frequencies, combining to make the sound we recognize The standard for human voice is taken to vary from about 100 Hz to 3000 Hz Piano: Concert A above Middle C is 440 Hz Lowest audible frequency for humans is around 20 Hz (A low, rumbling bass note) Highest audible frequency is 20 kHz (beyond the range of most humans, but can be heard by dogs)

5 –Notice the faster rate at which the ear can detect stimulus changes compared to the eye (ear can detect rates up to 20,000 per second, eye can detect only 50 times per second) –This needs to be taken into account when converting audio information into digital form-we need to use far more samples per second of information for audio

6 Hz (Hertz) is a measure of frequency f (number of cycles (times) a wave repeats itself per second). In our case - how rapidly the audio signal is changing. If the frequency of a signal is 2Hz, then 2 cycles of the wave are completed per second Period T, measured in seconds (s) is the time it takes to complete one cycle of the wave Frequency and period are Inversely Proportional: T=1/f f=1/T If the frequency of the signal is 2Hz, then the period is 0.5 s (i.e. it takes 0.5 seconds for the wave to complete one cycle) Amplitude is the magnitude of the signal at a given point in time. For example - volts. Amplitude relates to volume Louder sounds have greater vertical displacement of sound wave  Period, Frequency & Amplitude

7 Period: T=10 ms t (ms) Frequency : f=1/(10x10 -3 )=100 Hz 0 V 1 V 2 V 3 V -1 V -2 V -3 V Amplitude: A=4 V -4 V 4 V One cycle of the wave Amplitude: A=-2 V Amplitude: A=3 V

8 Period: T=5 ms t (ms) Frequency : f=1/(5x10 -3 )=200 Hz 0 V 1 V 2 V 3 V -1 V -2 V -3 V -4 V 4 V Signal with twice the frequency Notice the period is half the value as before Notice the frequency is twice the value as before

9 Let’s listen to sine waves with various frequencies:

10 Multipliers Giga (G) ,000,000,000. Mega (M)10 6 1,000,000. Kilo (k) ,000. milli (m) micro (  ) nano (n) The following are the common multipliers used for audio characteristics such as period (T) and frequency (f): For example, KHz = KiloHertz = 1000 Hz ms = millisecond = 1/1000 =.001 seconds

11  Audio Signal Components Concert “A” on a vibraphone Sound waves are the sum of simple pure tones

12 Frequency composition (spectrum) of a signal The different frequency components which are added together to produce a complex waveform are called the frequency spectrum of that waveform.

13 Sound Wave Vs. Frequency Spectrum Note there is not much frequency content above 1 KHz Fortunately, we do not need to know the specific frequency content of a signal to digitize it. We only need to know the highest frequency component the signal might contain (called the bandwidth – a band or range of frequencies that the signal occupies). Why?

14 Fourier Transform In the early 19 th century, the French mathematician Fourier proved that all waveforms, whether musical or not, can be constructed out of a sum of pure tones. The implications of this are that every audio waveform – whether speech, music, or any other sound – can be built out of sinusoids at certain frequencies. The different frequency components (pure tones) which are added together to produce a complex waveform are called the frequency spectrum of that waveform. Signals can be converted from time domain (how the wave varies with respect to time) to frequency domain by using Fourier transform (formula).

15  Digitizing Audio Signals In previous lectures, we learned how continuous images are digitized first by dividing the image into a certain number of pixels, then determining the brightness level of each pixel and finally assigning a binary code of certain length (number of bits) to each pixel. A similar procedure is used to digitize audio signals. The first step is called “sampling” where the waveform is sampled at certain intervals. The second step, called “quantization,” involves rounding off the continuous values of the audio samples so they can be represented by a finite number of bits.

16 Two step process for digitizing audio Continuous function of time Infinite amount of information Must choose particular instants of time (samples) Continuous Audio Signal Made Discrete In Time Quantized into a Series of Binary Digits STEP 1STEP 2

17  Sampling Rate Sampling Interval (T) Amount of time separating the samples Also called sampling period Sampling Rate (f s ) Number of samples per second Also called sampling frequency T s = 1/f s orf s = 1/T s Sampling Interval Sampling Rate 1 milliseconds1 kHz = 1000 samples/sec 4 milliseconds250 Hz = 250 samples/sec 16 milliseconds62.5 Hz = 62.5 samples/sec The sampling rate determines how many values of the signal we choose to retain.

18 Digital Telephone Example In a digital telephone system, the speech signal is sampled 8,000 Hz. What is the sampling period? T s = 1/f s T s = 1/8000 T s = = 1.25 x = 125  s

19 Nyquist Sampling Frequency Harry Nyquist, working at Bell Labs developed what has become known as the Nyquist Sampling Theorem: In order to be ‘perfectly’ represented by its samples, a signal must be sampled at a sampling rate (also called sampling frequency) equal to at least twice its highest frequency component Or: f s = 2f Note that f s here is the sampling rate (frequency of sampling), and f is the frequency of the signal How often do you sample? The sampling rate depends on the signal’s highest frequency (for baseband)

20 Sampling Rate Examples Take Concert A: 440 Hz What would be the minimum sampling rate needed to accurately capture this signal? f s = 2 x 440 Hz = 880 Hz Take your telephone  used for voice, mostly Highest voice component is: 3000 Hz Minimum sampling rate: f s = 2 x 3000 Hz = 6000 Hz Real telephone digitization is done at 8000 Hz sampling rate (supporting a 4 kHz bandwidth). Why? We recall that Nyquist determined “equal to at least twice…”

21  Undersampling and Oversampling Undersampling Sampling at an inadequate frequency rate (too low) Aliasing - Aliased into new form (can lead to completely incorrect signal being reconstructed: has a new identity hiding the original form from us) Loses information in the original signal Oversampling Sampling at a rate higher than minimum rate Generation of additional, unnecessary samples - more values to digitize and process Increases the amount of storage and transmission and therefore, the COST $$

22 Effects of Undersampling Original waveform Reconstructed waveform

23  Reconstructing Audio from Samples After receiving the signal, it is necessary to reconstruct it in order to hear it. The signal is reconstructed from its samples. Exact reconstruction is possible if the sampling rate is sufficiently high.

24 A short section of a speech waveform (highest frequency component is 3KHz) Reconstructed speech waveform with 1 KHz sampling rate (note the resulting waveform does not resemble original waveform)

25 Reconstructed speech waveform with 5 KHz sampling rate (the resulting waveform starts resembling the original waveform) Reconstructed speech waveform with 10 KHz sampling rate (the resulting waveform highly resembles the original waveform)