Encoding and Simple Manipulation

Slides:



Advertisements
Similar presentations
Chp 13 Sound and Music.
Advertisements

Georgia Institute of Technology Introduction to Processing Digital Sounds.
Sound Chapter 26.
Properties of Sound Neil Freebern. Sound Sound is produced when something vibrates. Vibrations disturb the air, creating variations in air pressure. Variation.
Faculty of Computers and Information Fayoum University 
Phys 250 Ch15 p1 Chapter 15: Waves and Sound Example: pulse on a string speed of pulse = wave speed = v depends upon tension T and inertia (mass per length.
Digital Audio.
Sound waves and Perception of sound Lecture 8 Pre-reading : §16.3.
Sound and Hearing. Sound Waves Sound waves are mechanical and longitudinal waves What does this tell you about sound waves? Sound waves need a material.
Computer Science 101 Introduction to Programming with Sounds.
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.
Waves / Sound Physics. Waves Wave motion is the means of transferring energy through a medium without the material itself moving along with the energy.
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.
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
Chapter 12 Preview Objectives The Production of Sound Waves
COMP Representing Sound in a ComputerSound Course book - pages
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.
SOUND WAVES PRODUCTION  Vibrating prongs set the air molecules in motion  Top: molecules closer together high air pressure (compression)  Bottom:
Introduction to SOUND.
Sound and Waves.
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 Waves Physic 11 · Chapter 9.
Sound in everyday life Pitch: related to frequency. Audible range: about 20 Hz to 20,000 Hz; Ultrasound: above 20,000 Hz; Infrasound: below 20 Hz Loudness:
SOUND SOUND IS A FORM OF ENERGY SOUND IS A WAVE SOUND WAVES REQUIRE A MEDIUM SOUND HAS PROPERTIES: –AMPLITUDE –FREQUENCY SOUND VOLUME IS MEASURED IN DECIBELS.
David Meredith Aalborg University
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
Types of Traveling Waves
The Physics Of Sound Why do we hear what we hear?
PHY238Y Lecture 8  Sound waves  The speed of sound  Traveling sound waves  Intensity and sound level References: Haliday, Resnick, Walker: Fundamentals.
© Houghton Mifflin Harcourt Publishing Company Preview Objectives The Production of Sound Waves Frequency of Sound Waves The Doppler Effect Chapter 12.
Introduction to Waves and Sound Chapters 14 and 15.
SOUND The basis for an understanding of sound, music and hearing is the physics of waves. Sound is a wave which is created by vibrating objects and propagated.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Intensity of a Spherical Wave
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 6: Modifying Sounds Using Loops.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
CS1315: Introduction to Media Computation Sound Encoding and Manipulation.
: Main Topics vibrations and waves types and effects of waves sound resonance musical sounds.
Sound Waves Sound A form of energy that causes molecules of a medium to vibrate back and forth in a series of compressions and rarefactions as a longitudinal.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
The Physics Of Sound Why do we hear what we hear? (Turn on your speakers)
Session 18 The physics of sound and the manipulation of digital sounds.
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.
Chapter 12 Preview Objectives The Production of Sound Waves
Sound Chapter 15. Sound Waves Sound is a longitudinal wave. (medium displaces parallel to direction of the wave) Sound is a longitudinal wave. (medium.
ARCHITECTURAL ACOUSTICS
Properties Of Sound Sound waves are produced as longitudinal waves by compressions and rarefactions in matter. The medium for sound waves can be solid,
Wave Motion Types of mechanical waves  Mechanical waves are disturbances that travel through some material or substance called medium for the waves. travel.
Physics Mrs. Dimler SOUND.  Every sound wave begins with a vibrating object, such as the vibrating prong of a tuning fork. Tuning fork and air molecules.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Sound.
Sound.
The Physics of Sound.
Physics 7E Prof. D. Casper.
Sound and Waves.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Unit 3 Session 21 Introduction to Waves
WAVES.
Sound and Waves.
Unit 6 Chapter 18 & 19 Sound and Light
Sound.
Sound and Waves.
Sound.
Sound and Waves.
CS1315: Introduction to Media Computation
Sound and Waves.
Presentation transcript:

Encoding and Simple Manipulation Sound: Introduction Encoding and Simple Manipulation

Sound is made when something vibrates Air molecules oscillate back and forth from their equilibrium position, affecting their neighbors

Sound waves are pressure waves As molecules oscillate back and forth, areas of high and low pressure occur Called compressions and rarefactions, respectively

Sound waves are longitudinal Motion is parallel to direction of energy transport Representation of sound by a sine wave is merely an attempt to illustrate the sinusoidal nature of the pressure-time fluctuations

Sound waves are longitudinal Plot pressure fluctuations over time encountered by a fixed detector

Properties of sound waves Frequency: cycles per second (Hz) Amplitude: distance from 0

Psychoacoustics: Human Perception of Sound Ear serves as transducer: coverts sound energy to mechanical energy to nerve impulse transmitted to brain

Psychoacoustics: Human Perception of Sound Pitch Loudness Timbre

Psychoacoustics: Human Perception of Sound Pitch – frequency Loudness – amplitude Timbre – combination of various frequencies

Pitch Humans hear frequencies between 20 Hz and 20,000 Hz  frequency =  pitch

Pitch Humans hear frequencies between 20 Hz and 20,000 Hz  frequency =  pitch Hearing works on ratios for pitch… We hear difference between 200 Hz and 400 Hz, the same as 500 Hz and 1000 Hz

Loudness Perception of volume is related logarithmically to changes in amplitude  amplitude =  pitch

Loudness If one sound is 10x times more intense than another sound, then it has a sound level which is 10*x more decibels than the less intense sound. Intensity is very objective quantity; can be measured with sensitive instrumentation Loudness is more subjective response; will vary with a number of factors (e.g. age, frequency)

Decibel is a logarithmic measure A decibel is a ratio between two intensities: 10 * log10(I1/I2) As an absolute measure, it’s in comparison to threshold of audibility 0 dB can’t be heard. Normal speech is 60 dB. A shout is about 80 dB

Digitizing Sound Analog-to-digital conversion: measure amplitude at an instant as a number Instantaneous measure is called a sample

Understanding how computers represent sound Consider how a film represents motion… Movie is made by taking still photos in rapid sequence at a constant rate, usually twenty-four frames per second When the photos are displayed in sequence at that same rate, it fools us into thinking we are seeing continuous motion, even though we are actually seeing twenty-four discrete images per second http://music.arts.uci.edu/dobrian/digitalaudio.htm

A collection of still frames http://en.wikipedia.org/wiki/Animation

How computers represent sound Digital recording of sound works on the same principle We take many discrete samples of the sound wave's instantaneous amplitude, store that information, then later reproduce those amplitudes at the same rate to create the illusion of a continuous wave http://music.arts.uci.edu/dobrian/digitalaudio.htm

How often should we take samples? sampling rate: number of samples taken per second Nyquist Theorem: need to take twice as many samples as the highest frequency we wish to record Sampling rate = 2 * max sound wave frequency

How often should we take samples? sampling rate: number of samples taken per second Nyquist Theorem: need to take twice as many samples as the highest frequency we wish to record Sampling rate = 2 * max sound wave frequency CD quality is 44,100 samples per second what is the max frequency a CD can represent?

Nyquist Theorem Consider a graph of a 4,000 Hz cosine wave, being sampled at a rate of 22,050 Hz Sample is taken every 0. 045 milliseconds http://music.arts.uci.edu/dobrian/digitalaudio.htm

Nyquist Theorem Consider same 4,000 Hz cosine wave sampled at 6,000 Hz Sample is taken every 0. 167 milliseconds Wave completes more than 1/2 cycle per sample http://music.arts.uci.edu/dobrian/digitalaudio.htm

Digitizing sound with the computer: bit depth The range of possible sample values depends on the number of bits used to store each sample Common bit-depths: 8 and 16 http://music.arts.uci.edu/dobrian/digitalaudio.htm

16 bits per sample: +/- 32K Each sample can be between -32,768 and 32,767 Why such a bizarre number? Because 32,768 + 32,767 + 1 = 216 < 0 i.e. 16 bits, or 2 bytes > 0 Compare this to 0..255 for light intensity (i.e. 8 bits or 1 byte giving us 256 different values)

Properties of sound Sound wave Frequency Amplitude Wavelength Period Digitized sound Sampling rate Bit depth Playback rate