Basics of sound - Computer Science and...

13
CSE 5539-0010 1 Basics of sound Mathematics of the pure tone or A: amplitude ϕ: phase T: period f: frequency x (t ) = A sin(2πt / T + φ ) x (t ) = A sin(2πft + φ ) Sound Basics

Transcript of Basics of sound - Computer Science and...

Page 1: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 1

Basics of sound

• Mathematics of the pure tone

or• A: amplitude• ϕ: phase• T: period• f: frequency

x(t) = Asin(2πt / T +φ)x(t) = Asin(2πft +φ)

Sound Basics

Page 2: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 2

Phase lead – phase lag

Sound Basics

Page 3: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 3

Power, intensity, and decibels

• Treat signal x(t) as voltage• By Ohm's law, the current i(t) = x(t)/R• Then the instantaneous power is

• Energy is the integrated power over a certain time period (e.g. kilowatt vs. kilowatthour)

P(t) = x(t)i(t) = x2 (t) / R

Sound Basics

Page 4: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 4

Power, intensity, and decibels (cont.)

• Treat signal x(t) as sound pressure• Then the instantaneous intensity is

• I(t) is measured in watts/m2 (x(t): pressure, Newtons/m2 or pascals)• ρ: the density of the medium• c: speed of sound

I(t) = x 2(t) /(ρc)

Sound Basics

Page 5: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 5

Sound level

• Ratio of one sound to another (baseline), expressed as decibels (dB)

• Note the use of common logarithm• Double intensity leads to 3 dB, and double amplitude leads to 6 dB• SNR: signal-to-noise ratio• Conversational speech is about 65 dB. Above 100 dB is damaging to

the ear

L2 − L1 (decibels ) = 10log10 ( I2 / I1 )

Sound Basics

Page 6: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 6

How loud are sounds?

110

Source: http://www.handsandvoices.org/resource_guide/055_audiogram.html

Sound Basics

Page 7: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 7

Spectrum

• Fourier Series: For any periodic function of time, x(t), with period T, i.e.

x(t+mT) = x(t), for all integer m

• x(t) can be represented as a Fourier series like this

• Furthermore,

• n is integer and is the fundamental frequency

x(t) = A0 + [An cos(ωnt) + Bn sin(ωnt )]n=1

∞∑

ωn = nω0 = 2πn / T0ω

Sound Basics

Page 8: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 8

Spectrum (cont.)

• "The multiplicity of vibrational forms which can be thus produced by the composition of simple pendular vibrations is not merely extraordinarily great; it is so great that it can not be greater." (H. Holmholtz, 1863)

Sound Basics

Page 9: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 9

Waveform illustration

A periodic waveform

Sound Basics

Page 10: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 10

Spectrum illustration

Sound Basics

Page 11: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 11

Spectrum illustration

Sound Basics

Page 12: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 12

Spectrum illustration

Sound Basics

Page 13: Basics of sound - Computer Science and Engineeringweb.cse.ohio-state.edu/~wang.77/teaching/cse5539/Basics.pdf · Power, intensity, and decibels • Treat signal x(t) as voltage •

CSE 5539-0010 13

Fourier transform

• For any function of time, x(t), the Fourier transform X(ω) of x(t) is defined in terms of the Fourier integral:

• The Fourier transform converts a function of time to a function of frequency

• Inverse Fourier transform

X(ω) = e−iωt

−∞

+∞

∫ x(t)dt

x(t) =1

2πeiωt

−∞

+∞

∫ X(ω)dω

)sin()cos( tite ti ωωω +=Sound Basics