Escolar Documentos
Profissional Documentos
Cultura Documentos
What is Sound?
Minute disturbances in the air, caused by a vibrating object Air molecules bunch together, then spread out Changes in density (air pressure, or sound pressure) Causes a chain reaction; sound pressure wave propagates
Compression / Rarefaction
Sound Pressure
Time
Periodic Waveforms
Amplitude
1 Cycle Period: How long does one cycle last? Frequency: How many cycles per second? Expressed in Hertz (Hz) Ex: 440 Hz (the A above middle C) Period = 1 / Frequency (for A440: 0.0023 sec.)
When viewed from the side, channel 1 goes up and down, and channel 2 goes side to side.
Digital
Stream of discrete numbers that represent instantaneous amplitudes of analog signal, measured at equally spaced points in time.
ADC
Microphone converts acoustic to electrical energy. Its a transducer. Continuously varying electrical energy is an analog of the sound pressure wave. ADC (Analog to Digital Converter) converts analog to digital electrical signal. Digital signal transmits binary numbers. DAC (Digital to Analog Converter) converts digital signal in computer to analog for your headphones.
A series of snapshots
Sampling Resolution
[a.k.a. sample word length, bit depth] Precision of numbers used for measurement: the more bits, the higher the resolution. Example: 16 bit
Sampling Rate
Determines the highest frequency that you can represent with a digital signal. Nyquist Theorem: Sampling rate must be at least twice as high as the highest frequency you want to represent.
Capturing just the crest and trough of a sine wave will represent the wave exactly.
Aliasing
What happens if sampling rate not high enough?
A high frequency signal sampled at too low a rate looks like a lower frequency signal.
3-bit Quantization
A 3-bit binary (base 2) number has 23 = 8 values.
7 6 Amplitude 5 4 3 2 1 0 Time measure amp. at each tick of sample clock
A rough approximation
4-bit Quantization
A 4-bit binary number has 24 = 16 values.
14 12 Amplitude 10 8 6 4 2 0 Time measure amp. at each tick of sample clock
A better approximation
Quantization Noise
Round-off error: difference between actual signal and quantization to integer values
This is what appears in a sound file, along with a header that indicates the sampling rate, bit depth and other things.
MPEG Compression
MPEG 1-Layer 3 (.mp3)
Motion Picture Experts Group Different levels for different purposes
E.g. MPEG 2 used for DVDs
MPEG Compression
What is an iPod?
Its a computer! Look at the von Neumann architecture I/O
Memory 32MB RAM, 32MB ROM CPU Special digital to analog converter chips
2-4GB microdrive, click wheel, LCD panel, USB connection, FireWire connection, audio output
Well-designed UI Stores music in various digital formats AAC (16 to 320 Kbps), MP3 (32 to 320 Kbps), MP3 VBR, Audible, AIFF, Apple
iPod Specifications
CPU: ARM7TDMI Playtime: up to 8 hours Scroll wheel: solid state touch Buttons: mechanical CPU Speed: dual 80 Mhz embedded Data Path: 32 bit ROM: 32 MB Onboard RAM: 32 MB Screen: 1.67" LCD w/ LED backlight
Maximum Resolution: 1-bit 138x110 Hard Disk: 1" 4 GB 4200 RPM holds 1000 songs. USB: via Dock Connector FireWire: via Dock Connector Audio Out: stereo 16 bit mini Weight: 0.225 lbs. Dimensions: 3.6" H x 2.0" W x 0.5" D OS: iPod OS 1.1 Introduced: January 2004