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.

Slides:



Advertisements
Similar presentations
Chp 13 Sound and Music.
Advertisements

MULTIMEDIA TUTORIAL PART - III SHASHI BHUSHAN SOCIS, IGNOU.
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
PHYSICS OF SOUND PHYSICS OF SOUND HEARING CONSERVATION PROGRAM 1 28 Jan 2013.
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (1)
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
Sound. Sound Waves  Sound waves are longitudinal waves.  The source of a sound wave is a vibrating object.  Only certain wavelengths of longitudinal.
Digital Audio.
CHAPTER 5 Discrete Sampling and Analysis of Time-Varying Signals Analog recording systems, which can record signals continuously in time, digital data-acquisition.
Acoustics in Twenty Words or Less. What is Acoustics? The Science of Sound!
1 Multimedia Systems 1 Dr Paul Newbury School of Engineering and Information Technology ENGG II - 3A11 Ext: 2615.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Representing Sound in a computer Analogue  Analogue sound is produced by being picked up by a transducer (microphone) and converted in an electrical current.
Computer Science 101 Introduction to Programming with Sounds.
Basic Concepts: Physics 1/25/00. Sound Sound= physical energy transmitted through the air Acoustics: Study of the physics of sound Psychoacoustics: Psychological.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 2 –Auditory Perception and Digital Audio Klara Nahrstedt Spring 2011.
Audio Fundamentals Lesson 2 Sound, Sound Wave and Sound Perception
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.
CSC 8610 & 5930 Multimedia Technology Lecture 4 Digital Audio Representation.
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
Computer Science 121 Scientific Computing Winter 2014 Chapter 13 Sounds and Signals.
School of Informatics CG087 Time-based Multimedia Assets Sampling & SequencingDr Paul Vickers1 Sampling & Sequencing Combining MIDI and audio.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Sampling Terminology f 0 is the fundamental frequency (Hz) of the signal –Speech: f 0 = vocal cord vibration frequency (>=80Hz) –Speech signals contain.
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
Sound Sound is a wave that carries vibrations. It is mechanical, longitudinal, and a pressure wave.
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
DTC 354 Digital Storytelling Rebecca Goodrich. Wave made up of changes in air pressure by an object vibrating in a medium—water or air.
COMP Representing Sound in a ComputerSound Course book - pages
Acoustics/Psychoacoustics Huber Ch. 2 Sound and Hearing.
Russell Taylor. How Sound Works Sound “source” creates variations in air pressure Main source output is Speakers Use vibrating cones which mimic the signal.
Basics of Digital Audio Outline  Introduction  Digitization of Sound  MIDI: Musical Instrument Digital Interface.
COSC 1P02 Introduction to Computer Science 4.1 Cosc 1P02 Week 4 Lecture slides “Programs are meant to be read by humans and only incidentally for computers.
Introduction to SOUND.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
SOUND Longitudinal Wave Travels through some medium Cannot travel through a vacuum How does vibrating drum produce sound? Skin moving up presses air.
Properties of Sound Physical Science Ms. Pollock
Sound Vibration and Motion.
1© Manhattan Press (H.K.) Ltd Radar speed trap.
David Meredith Aalborg University
Week 2 Sound Physics, Ranges of Hearing Frequency, Wavelength, Period, Velocity Audio Engineering & Sound Production Unit code: AUD202 AUDIO & ACOUSTICS.
Audio / Sound INTRODUCTION TO MULTIMEDIA SYSTEMS Lect. No 3: AUDIO TECHNOLOGY.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
By Rhett Price. Speed of sound depends on density Correlation between speed and density Not as fast as light speed Also affected by pressure and temperature.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Parts of a Wave Crest Wavelength Trough Normal Rest Position Frequency = 2 waves per second.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Hearing: Physiology and Psychoacoustics 9. The Function of Hearing The basics Nature of sound Anatomy and physiology of the auditory system How we perceive.
Sound and Digital Sound v © Allan C. Milne Abertay University.
Encoding and Simple Manipulation
Digital Audio. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Properties Of Sound Sound waves are produced as longitudinal waves by compressions and rarefactions in matter. The medium for sound waves can be solid,
SOUND It is composed of waves of compression and rarefaction in which the human ear is sensitive It is composed of waves of compression and rarefaction.
Physical characteristics of sound Amplitude – The measure of displacement of the air pressure wave Frequency – Represents the number of periods.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
The Physics of Sound.
Multimedia Systems and Applications
Introduction to Digital Audio
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Hearing and Mechanoreceptors
MECH 373 Instrumentation and Measurements
C-15 Sound Physics 1.
Introduction to Digital Audio
Introduction to Digital Audio
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
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.
Presentation transcript:

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 L. Browning's thesis report "Audio Digital Signal Processing in Real Time.", available at Additional information may be found at

Sound Sound (to a physicist)  is a pressure wave which travels in air at 331ms-1 at 0 degrees: at 343m/s at 20 degrees C  with a frequency between 20 and 20,000 Hz (variations/second) and to a Psychologist... Sound is a perceptual effect caused by a pressure wave between 20 and 20,000Hz being detected at the ear.

Sound The vibration of matter, which in turn causes the surrounding air to vibrate, produces sound. The resulting pattern of oscillation is known as a waveform. A waveform may repeat its shape at regular intervals, known as the period.

Physical characteristics of sound The pressure wave has two physical characteristics: amplitude  the size of the pressure wave  that is, the size of the rarefactions and compressions in the pressure wave frequency  the number of compressions (or rarefactions) per second  related to the period of the sound = 1/frequency, and the wavelength of the sound = Cycle of sound/frequency

The frequency of a sound is the reciprocal of its period. Frequency represents the number of waveform periods in a second and is expressed by hertz (Hz) or cycles per second.

Characteristics of real sounds Sound waveform Frequency spectrum

Devices for sound generation and transduction For input to a computer, the pressure wave is  converted to an analogue electrical signal (transduced)  converted to a digital signal (digitised) For output from a computer, the digitised signal is  converted to an analogue signal  converted to a pressure wave

Psychological characteristics of sound (I) From the perspective of sound being what we hear, sound has three defining characteristics: loudness  how loud (intense) the sound appears pitch  the sense of the sound having a tone timbre  the nature of the sound as befits psychological descriptions, these are inexact All sounds have a loudness, but many are unpitched timbre is often used as a catch-all term to describe those aspects of the sound not captured by loudness and pitch.

Pitch and loudness Pitch perception is complex Complex tones (many frequency components) often have a lower pitch than a pure tone of the same mean frequency Apparent loudness of a sound depends on the frequency as well as the amplitude of the sound  human ear responds differently to different frequencies  young people can often hear a higher frequencies than older people.

Measuring loudness Our ears have (essentially) a logarithmic response  loudness depends on power: proportional to amplitude * amplitude  doubling the power of a sound does not make it twice as loud  actually, (real, perceptual) loudness is difficult to compute Decibels  the ratio of the power of two signals is measured in decibels (dB)  this is a logarithmic scale  if signal1 has power P1, and signal2 has power P2, then  P2 is 10 log 10 (P2/P1) dB louder than P1  e.g. If P2 has 100 times the power of P1, it is 20dB louder 0 dB is the threshold for a human to hear a sound of 1000Hz 20dB whisper, 90dB loud music, 100dB risking damage, 140dB aeroplane

Quality and Fidelity (I) Whenever sound is transduced, digitised, or reconverted to analogue, the original signal is altered in some way. When high quality reproduction is required, we need to keep this alteration to a minimum. Transduction:  Microphones and loudspeakers have a limited frequency response that is, they are more sensitive to sounds with certain frequencies we would like a flat frequency response from 20 to 20KHz  They also have a limited dynamic range that is they cannot deal with sounds from the quietest up to the loudest the range in energy of everyday sounds is huge For some applications, we may sacrifice quality  e.g. telephony: we care really only about comprehensibility

Quality and Fidelity (II) Digitizing Sound  sound is digitised using an analogue to digital converter (ADC)  sound is converted back to analogue using a digital to analogue converter (DAC)  Both forms of conversion can introduce alterations in the sound but the ADC is the more problematic. Analogue to digital conversion has two parameters:  sampling rate  sample size

Sampling rate Sampling rate describes how frequently the analogue signal is converted  Normally measured in samples/second conversion is done regularly, at a fixed number of samples/second  sampling rate must be at least twice the highest frequency of interest Nyquist sampling theorem otherwise aliasing can occur

Signal reconstruction Quantization Sample and hold reconstruction

Aliasing Aliasing occurs if a sound is sampled too slowly Better...

Sample size (I) Sample size refers to the characteristics of the sample value taken each sample time Samples have a fixed length  8-bit, (16-bit or 32-bit)  means each sample is a (2’s complement) 8-bit (16-bit or 32-bit) integer  e.g. range -128 to +127 for 8-bit; to for 16- bit

Sample size (II) Sampling may be linear or logarithmic  linear: for sample value x, actual value is (x/maximum)* K for some K  logarithmic: provides more resolution at lower levels mu-law (m-law) or A-law a form of data compression

Sample size (III) Major concern for storage of a sampled sound is the total amount of data collected Data length is proportional to sample rate * sample size  so 1 second of sound sampled at bit samples/second uses * 2 = bytes/second  and that is just 1 channel: stereo takes bytes/second about 10.5Mbytes/minute  this is CD-audio quality Data can be compressed  but decompression must take place in real time

Power and loudness: dynamic range Dynamic range  loudest measurable signal compared to quietest signal Measured using decibels  if signal1 has power P1, and signal2 has power P2, then  P2 is 10 log10(P2/P1) dB louder than P1 How this relates to sample size  consider the loudest signal possible, and the quietest signal possible  for 16 bit samples, the loudest one has times as high a value  but this value is a voltage: power is proportional to voltage * voltage  so it has * as much power  that is, about 1,000,000,000 times as much  that is 90dB dynamic range.  Note that the accuracy for quiet sounds is low.