computer sound synthesis 2 mus_tech 335 selected topics
TRANSCRIPT
![Page 1: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/1.jpg)
Computer Sound Synthesis 2
MUS_TECH 335 Selected Topics
![Page 2: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/2.jpg)
Physical Modeling Synthesis
![Page 3: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/3.jpg)
Types of Physical models
• Modal (resonance) We dealt with this while
discussing filtering!
• Finite elements (mass-spring)
• Waveguides (delay-lines)
• Direct (Differential equations)
• Others
![Page 4: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/4.jpg)
Sound ExamplesSome on-line examples:
Claude Cadoz:http://www-acroe.imag.fr/mediatheque/sonotheque/sonotheque.html
Perry Cook:http://www.cs.princeton.edu/~prc/
Julius Smith:http://ccrma.stanford.edu/~jos/pasp/Sound_Examples.html
![Page 5: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/5.jpg)
Download and InstallPerry Cook’s stkugens!
Download is available at:
http://swiki.hfbk-hamburg.de:8888/MusicTechnology/677
![Page 6: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/6.jpg)
Definitions
Kinetic Energy
KE = 1/2 m v2
Potential Energy
PE = 1/2 k y2
Peak KE
Peak PE
Simple Harmonic Motion
(Makes sine waves)
![Page 7: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/7.jpg)
Definitions
Displacement
y = f(t)
Instantaneous velocity
v = Dty = y´ = dy/ dt = f´(t)
Instantaneous acceleration
a = Dtv = y´´ = d2y/ dt2 = f ´´(t)
![Page 8: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/8.jpg)
DefinitionsPeak Kinetic Energy
ty
v
a
t
t
displacement
Peak Potential Energy
velocity
acceleration
![Page 9: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/9.jpg)
Definitions
∫a(t) v(t) y(t) v(t) a(t)∫ d dt
d dt
At each step, integration and differentiation of simusoids causes 90-degree phase shifts
A sin (t + ø) A cos (t + ø) -A sin (t + ø) A cos (t + ø) A sin (t + ø)
![Page 10: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/10.jpg)
Simple Harmonic Motion
y = A sin (t + ø)
Dty = A cos (t + ø)
Dt2y = -A sin (t + ø)
= -y
0 = Dt2y + y
differential equation for simple harmonic motion
![Page 11: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/11.jpg)
Simple Harmonic Motion
0 = y + y´´ 0 = ∫ ∫ a + a
a = - ∫ ∫ a integral equation for simple harmonic motion
![Page 12: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/12.jpg)
Simple Harmonic Motion
a = - ∫ ∫ a
-initial position
position
∫ ∫
acceleration
-1
velocity
![Page 13: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/13.jpg)
Integrator:
unstable with DC
z-1in
out
z-1k
a
in
outLeaky Integrator:
Simple Harmonic Motion
∫
![Page 14: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/14.jpg)
Mass-and-Spring OscillatorsFree Vibration
The summation of all forces in the system must be zero.∑ F = 0
• ky is the restoring force where k is the string constant and y is the displacement of the mass m• ma, mass • acceleration, is the inertia once set in motion
0 = ky + ma
ky ma
y
![Page 15: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/15.jpg)
Mass-and-Spring Oscillators
0 = ky + ma0 = k/m y + y´´
0 = y + y´´ (k/m) 0 = ∫ ∫ a + a
a = - ∫ ∫ a (integral equation)
ky ma
y
![Page 16: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/16.jpg)
Mass-and-Spring Oscillators
Free Vibration with Damping
0 = ky + cv + ma
where c is the damping coefficient
ky ma
cv
c y
![Page 17: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/17.jpg)
Mass-and-Spring Oscillators0 = ky + cv + ma
0 = (k/m) y + (c/m) y´ + y´´y´´ = -(k/m) y - (c/m) y´
a = -(k/m) ∫ ∫ a - (c/m) ∫ a= - ∫ ∫ a - (c/m)∫ a
ky ma
Rv
ky ma
Rv
c y
![Page 18: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/18.jpg)
Mass-and-Spring Oscillators
a = - ∫ ∫ a - (c/m) ∫ aa = - ∫ ∫ a - b ∫ a
where b = (c/m) = 1/Q = Bw/CF
∫ ∫
acceleration
-b
-initial position
position
∫ ∫
-1
velocity
![Page 19: Computer Sound Synthesis 2 MUS_TECH 335 Selected Topics](https://reader036.vdocuments.net/reader036/viewer/2022082816/56649ce05503460f949a9fd1/html5/thumbnails/19.jpg)
Mass-and-Spring Oscillators
Damping has a range of results:
over damped
critically damped
under damped
b = 2 = (c/2m
If > 1 overdamped
= 1 critically damped
< 1 underdamped
x(t) = A e -cos(dt + ø)
d = SQRT(1- )