CS 102 Computers In Context (Multimedia)‏ 03 / 30 / 2009 Instructor: Michael Eckmann.

Slides:



Advertisements
Similar presentations
Introduction to Digital Audio
Advertisements

Georgia Institute of Technology Introduction to Processing Digital Sounds.
CS 102 Computers In Context (Multimedia)‏ 04 / 13 / 2009 Instructor: Michael Eckmann.
ITEC 109 Lecture 25 Sound.
Sound, Part 3. Multiple Echoes Here is a recipe to create multiple echoes: def echoes(sndfile, delay, num): s1 = makeSound(sndfile) ends1 = getLength(s1)
CS 102 Computers In Context (Multimedia)‏ 02 / 06 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 03 / 20 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 04 / 08 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 02 / 18 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 04 / 20 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 04 / 01 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 02 / 02 / 2009 Instructor: Michael Eckmann.
W2D1. JPEG images Representing avg. pixel colour for large vs. small blocks Idea behind the Fourier transform: Pixel values:
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
CS 106 Introduction to Computer Science I 04 / 09 / 2008 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 03 / 25 / 2009 Instructor: Michael Eckmann.
CS 102 Computers In Context (Multimedia)‏ 02 / 25 / 2009 Instructor: Michael Eckmann.
Chapter 2 : Business Information Business Data Communications, 4e.
Computer Science 101 Introduction to Programming with Sounds.
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 6: Modifying Sounds Using Loops.
Introduction to Sound Sounds are vibrations that travel though the air or some other medium A sound wave is an audible vibration that travels through.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
CompSci Today’s topics Sound Upcoming ä Intellectual property ä Network analysis ä Security Reading.
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
Chapter 2, Exploring the Digital Domain
CS 102 Computers In Context (Multimedia)‏ 01 / 28 / 2009 Instructor: Michael Eckmann.
COMP Representing Sound in a ComputerSound Course book - pages
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
CS 102 Computers In Context (Multimedia)‏ 01 / 23 / 2009 Instructor: Michael Eckmann.
Basics of Digital Audio Outline  Introduction  Digitization of Sound  MIDI: Musical Instrument Digital Interface.
CIS-325: Data Communications1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
Introduction to SOUND.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
CS 102 Computers In Context (Multimedia)‏ 01 / 26 / 2009 Instructor: Michael Eckmann.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
Properties of Sound Making Waves. Sound Waves ■Sound is created by vibrations.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Encoding and Simple Manipulation
CS 102 Computers In Context (Multimedia)‏ 02 / 09 / 2009 Instructor: Michael Eckmann.
Introduction to Computing and Programming in Python: A Multimedia Approach Chapter 6: Modifying Sounds Using Loops.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
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.
Binary! Objectives How sound is stored in digital format What is meant by “sample interval” and how it affects quality The trade off between file size.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
CS 102 Computers In Context (Multimedia)‏ 04 / 27 / 2009 Instructor: Michael Eckmann.
Session 18 The physics of sound and the manipulation of digital sounds.
CS 325 Introduction to Computer Graphics 03 / 10 / 2010 Instructor: Michael Eckmann.
1 CS 177 Week 7 Recitation Slides Modifying Sounds using Loops + Discussion of some Exam Questions.
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.
Working with Sounds Barb Ericson College of Computing Georgia Institute of Technology
Sound / Audio.
The Physics of Sound.
Introduction to Digital Audio
Chapter 6: Modifying Sounds Using Loops
Multimedia Fundamentals(continued)
Introduction to Digital Audio
Introduction to Digital Audio
Calculating Wave Speed
How sound works: Acoustics, the physics of sound
Introduction to Digital Audio
Representing Sound 2.6 – Data Representation.
ITEC2110, Digital Media Chapter 1 Background & Fundamentals
Analog to Digital Encoding
Introduction to Digital Audio
CS1315: Introduction to Media Computation
Presentation transcript:

CS 102 Computers In Context (Multimedia)‏ 03 / 30 / 2009 Instructor: Michael Eckmann

Michael Eckmann - Skidmore College - CS Spring 2009 Today’s Topics Questions/comments? Chapter 6 –Sound Physics of sound How digital sound is encoded How to read/manipulate sound w/ JES

Michael Eckmann - Skidmore College - CS Spring 2009 Sound Sounds are waves of air pressure. –think of ripples in water Waves have amplitude and frequency. –Amplitude is the distance from 0 to highest pressure (measured in force per area (N/m 2 ))‏ Range in human hearing is N/m N/m 2 –Frequency is the number of cycles per unit time (measured in Hz = cycles per second)‏ Range in human hearing is 2 Hz – 22,000 Hz Amplitude affects our perception of volume. Frequency affects our perception of pitch.

Michael Eckmann - Skidmore College - CS Spring 2009 Sound encoding Analog sounds need to be sampled to be digitized. To be able to accurately convert back the digital to analog, we sample at 2 times the highest frequency in the sound. For example, CD quality audio is sampled at samples per second (which is about twice as much as the highest frequency that humans can hear.)‏ CD quality sound encodes each sample in 16 bits. Unlike images, these sample values need both negative and positive values. One can store 2 16 different values in 16 bits. This is different values. The range w/ positive and negatives is: to

Michael Eckmann - Skidmore College - CS Spring 2009 JES functions for sound filename = pickAFile()‏ sound = makeSound(filename)‏ samples = getSamples(sound)‏ Does this look familiar at all?

Michael Eckmann - Skidmore College - CS Spring 2009 JES functions for sound filename = pickAFile()‏ sound = makeSound(filename)‏ samples = getSamples(sound)‏ Does this look familiar at all? filename = pickAFile()‏ picture = makePicture(filename)‏ pixels = getPixels(picture)‏

Michael Eckmann - Skidmore College - CS Spring 2009 JES functions for sound We can get the length of the sound w/ getLength(____). This returns the number of samples in the sound. We can get a particular sample w/ getSampleValueAt(____, ____). This returns the 16 bit value of one sample. We can set a particular sample value w/ setSampleValueAt(_,_,_). We can save a sound w/ writeSoundTo(____,____). We can get the sampling rate of a sound w/ getSamplingRate(___). This is the number of samples per second. Also, getSample and setSample. Consider relationships to the image functions.

Michael Eckmann - Skidmore College - CS Spring 2009 Manipulating sound filename = pickAFile()‏ sound = makeSound(filename)‏ for sample in getSamples(sound): sampleVal = getSample(sample)‏ setSample(sample, sampleVal*2)‏ # this code will increase the volume of the sound by doubling # the amplitude