hardware: loudspeakers, cd’s, …. loudspeakers not that different today than the ones from 80...

25
Hardware: Hardware: loudspeakers, CD’s, loudspeakers, CD’s,

Post on 21-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Hardware: Hardware: loudspeakers, CD’s, …loudspeakers, CD’s, …

Page 2: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

LoudspeakersLoudspeakersNot that different today than the ones from 80 years ago !

• based on magnets, solenoids

Page 3: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Magnets have two poles, “north” and “south”.

• Equal poles repel

• Opposite poles attract

Without touching !

One can picture this action-at-distance as being mediated by a “force field”: the magnetic fieldmagnetic field

Page 4: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Electric charges moving = electric Electric charges moving = electric currents also generate magnetic fieldscurrents also generate magnetic fields

Page 5: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

A loudspeaker is a straightforward application A loudspeaker is a straightforward application of this principleof this principle

http://electronics.howstuffworks.com/speaker5.htm

Page 6: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Speaker response curve

Page 7: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Response depends on the angle

http://images.google.com/imgres?imgurl=http://www.rjbaudio.com/Alpheus/Alpheus%2520gated%2520response.jpg&imgrefurl=http://www.rjbaudio.com/Alpheus/alpheus.html&h=326&w=500&sz=40&hl=en&start=57&um=1&tbnid=CsAniYgXuAQcWM:&tbnh=85&tbnw=130&prev=/images%3Fq%3D%2522speaker%2Bresponse%2B%2522%26start%3D40%26ndsp%3D20%26um%3D1%26hl%3Den%26safe%3Doff%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-US:official%26sa%3DN

Page 8: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Hardware: cd’s, mp3 Hardware: cd’s, mp3 and digital recording …and digital recording …

Page 9: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Discretization (digitalization)Discretization (digitalization)

time

pressure level continuous signal

Page 10: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

sampling time

sampling sampling precisionprecision

from analog to digital …

Page 11: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

From that digital information we can recover the original signal … with some loss

Page 12: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Larger sampling rate and sampling precision Larger sampling rate and sampling precision improves fidelityimproves fidelity

Page 13: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Discretization (digitalization)Discretization (digitalization)

Pressure level at one instant represented by 1’s and 0’s

Two levels: 0 or 1 1 bit

Four levels: 00, 01, 10 or 11 2 bits

Eight levels: 000, 001, 010, 100, 011, 101, 110 or 111 3 bits

65536 levels: 0000000000000000, 000000000000001, …

16 bits = 8 bytes

Page 14: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

What are the sampling rates and sampling precision What are the sampling rates and sampling precision we need for high fidelity ?we need for high fidelity ?

A high frequency signal disappears with this sampling rate

Page 15: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

What are the sampling rates we need for high fidelity ?What are the sampling rates we need for high fidelity ?

A sampling rate equal to the twice the maximum frequency

20.000 Hz 40.000 samples per second

Page 16: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

What are the sampling precision we need for high What are the sampling precision we need for high fidelity ?fidelity ?

216 = 65536 levels are enough for the error to be imperceptible

Dropping one bit reduces file sizes by a factor of 2 !

Page 17: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Total requirements for one minute of musicTotal requirements for one minute of music

44.100 x 2 x 2 x 60 x 1 = 10584 kbytes

samplings per second

two bytes per second

two channels

seconds per minute

Page 18: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Download one song (3 minutes) with a 56 kbit per second modem

10584 x 8 x 3/56.000 = 4536 seconds = 76 minutes

bytes bytes per per

minuteminute

bit per byte

minutes per song

bits bits downloaded downloaded per secondper second

Page 19: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

MP3 is better: compression

The string 100100100100100 can be abbreviated by 100101

pattern“5”

The Lempel-Ziv-Welch adaptive dictionary based The Lempel-Ziv-Welch adaptive dictionary based algorithm is based on this idea.algorithm is based on this idea.

This is an example of This is an example of losslesslossless compression compression

Page 20: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

Strategies for lossy compressionStrategies for lossy compression

• maskingmasking

• more precision in sounds we hear bettermore precision in sounds we hear better

Page 21: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

CD playersCD players

Page 22: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

read from the read from the inside outinside out

Tracks (a total of 3.5 Tracks (a total of 3.5 miles in each cd)miles in each cd)

larger

smaller

Page 23: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

How can the tiny indentations be read How can the tiny indentations be read (without touching them !!!) ?(without touching them !!!) ?

This is a cartoon, real systems involve This is a cartoon, real systems involve several mirrors, etc, …several mirrors, etc, …

constructive constructive interferenceinterference

destructive destructive interferenceinterference

depth = ¼ wavelengthdepth = ¼ wavelength

Page 24: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

in reality …in reality …

Page 25: Hardware: loudspeakers, CD’s, …. Loudspeakers Not that different today than the ones from 80 years ago ! based on magnets, solenoids

• error correctionerror correction

• no bumps for a while lost track, 1’s are no bumps for a while lost track, 1’s are interspersed (8-14 bit modulation)interspersed (8-14 bit modulation)

• data spread over a full turn (interleaving) to data spread over a full turn (interleaving) to avoid burst erroravoid burst error

• results in signal/noise ratio > 90 db !results in signal/noise ratio > 90 db !

More can be found at http://electronics.howstuffworks.com/cd.htm