CS101.Lect20.Python.Audio.Functions.ppt

CS101.Lect20.Python.Audio.Functions.ppt - CS101 Lecture 20:...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science CS101 Lecture 20: Programming with Audio Computing with Samples Writing Functions Aaron Stevens (azs@bu.edu) 2 November 2011 Computer Science Overview/Questions Review: audio samples, sampling rate How can we create/play WAV audio files? Programming with sound in Python
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science 3 Review: Wave Properties Wavelength: distance between waves (affects pitch -- high or low sounds) Amplitude: strength of power of waves (volume) Frequency: the number of times a wave occurs in a second. Computer Science Thinking in waveforms What kind of waveform would a high pitched/low pitched sound look like? What kind of waveform would silence look like? How would we combine sounds, e.g. similar to an image overlay?
Background image of page 2
Computer Science 5 Sampling: 3-bit depth For each sample, we need to select a discrete value for the amplitude. These values are recorded in 3 bits (right hand side). Computer Science 6 Sample to Sound Wave Using the recorded information, the computer must re-recreate the sound wave. Some of the original information was lost by the sampling process!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science Waveform Audio File Format
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/16/2011 for the course CS 101 taught by Professor Stevens during the Fall '08 term at BU.

Page1 / 13

CS101.Lect20.Python.Audio.Functions.ppt - CS101 Lecture 20:...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online