Scattering. N-port Parallel Scattering Junctions. Physical Variables at the Junction. CMPT 889: Lecture 9 Wind Instrument Modelling

Similar documents
CMPT 889: Lecture 9 Wind Instrument Modelling

Music 206: Modeling Acoustic Tubes and Wind Instrument Bores/Bells

THE SYRINX: NATURE S HYBRID WIND INSTRUMENT

THE SYRINX: NATURE S HYBRID WIND INSTRUMENT

CMPT 889: Lecture 8 Digital Waveguides

CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Sinusoids. Amplitude and Magnitude. Phase and Period. CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Music 206: Digital Waveguides

MUMT 618: Week #9. Figure 1: T section transmission-line representation of the tonehole.

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

Lecture 3: Acoustics

Lecture 2: Acoustics. Acoustics & sound

Sound, acoustics Slides based on: Rossing, The science of sound, 1990, and Pulkki, Karjalainen, Communication acoutics, 2015

Music 420 Lecture Elementary Finite Different Schemes

Introduction to Acoustics Exercises

MUS420 Lecture Mass Striking a String (Simplified Piano Model)

Damped Oscillation Solution

Ideal String Struck by a Mass

PHY 103 Impedance. Segev BenZvi Department of Physics and Astronomy University of Rochester

ABSTRACT INTRODUCTION

MUMT 618: Week #9. Figure 1: T section transmission-line representation of the tonehole.

kg meter ii) Note the dimensions of ρ τ are kg 2 velocity 2 meter = 1 sec 2 We will interpret this velocity in upcoming slides.

Mechanical and Acoustical Resonators

Physical Acoustics. Hearing is the result of a complex interaction of physics, physiology, perception and cognition.

Dynamic circuits: Frequency domain analysis

Cylinder with Conical Cap

Lecture 18: Reflection and Impedance

Standing waves in air columns flute & clarinet same length, why can a much lower note be played on a clarinet? L. Closed at both ends

Physical and Biological Properties of Agricultural Products Acoustic, Electrical and Optical Properties and Biochemical Property

Lecture 4 Notes: 06 / 30. Energy carried by a wave

General Appendix A Transmission Line Resonance due to Reflections (1-D Cavity Resonances)

PHY 103 Impedance. Segev BenZvi Department of Physics and Astronomy University of Rochester

Oscillations and Waves

Summary PHY101 ( 2 ) T / Hanadi Al Harbi

Digital Control & Digital Filters. Lectures 21 & 22

Differential Equations

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

6.003 Homework #6 Solutions

Solution The light plates are at the same heights. In balance, the pressure at both plates has to be the same. m g A A A F A = F B.

Chapter 14 Periodic Motion

Lecture XXVI. Morris Swartz Dept. of Physics and Astronomy Johns Hopkins University November 5, 2003

Chapter 12. Recall that when a spring is stretched a distance x, it will pull back with a force given by: F = -kx

11/17/10. Chapter 14. Oscillations. Chapter 14. Oscillations Topics: Simple Harmonic Motion. Simple Harmonic Motion

INTRODUCTION TO FLUID MECHANICS June 27, 2013

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

Smith, Kuroda, Perng, Van Heusen, Abel CCRMA, Stanford University ASA November 16, Smith, Kuroda, Perng, Van Heusen, Abel ASA / 31

Some of the different forms of a signal, obtained by transformations, are shown in the figure. jwt e z. jwt z e

Vibrations of string. Henna Tahvanainen. November 8, ELEC-E5610 Acoustics and the Physics of Sound, Lecture 4

Mass on a Horizontal Spring

1 f. result from periodic disturbance same period (frequency) as source Longitudinal or Transverse Waves Characterized by

Chapter 14. PowerPoint Lectures for University Physics, Thirteenth Edition Hugh D. Young and Roger A. Freedman. Lectures by Wayne Anderson

KINEMATICS & DYNAMICS

Oscillatory Motion and Wave Motion

Exam Question 6/8 (HL/OL): Circular and Simple Harmonic Motion. February 1, Applied Mathematics: Lecture 7. Brendan Williamson.

Simple Harmonic Motion

Massachusetts Institute of Technology Physics 8.03 Fall 2004 Final Exam Thursday, December 16, 2004

Introductory Physics. Week 2015/05/29

MEASUREMENT OF INPUT IMPEDANCE OF AN ACOUSTIC BORE WITH APPLICATION TO BORE RECONSTRUCTION

Fundamentals of Fluid Dynamics: Waves in Fluids

Lectures Chapter 10 (Cutnell & Johnson, Physics 7 th edition)

Lecture 10 Acoustics of Speech & Hearing HST 714J. Lecture 10: Lumped Acoustic Elements and Acoustic Circuits

Chapter 15. Oscillations

Sound Transmission in an Extended Tube Resonator

Oscillatory Motion SHM

Wave Phenomena Physics 15c. Lecture 8 LC Transmission Line Wave Reflection

Introduction to structural dynamics

CERN Accelerator School. RF Cavities. Erk Jensen CERN BE-RF

Physical Modeling Synthesis

Lecture 17. Mechanical waves. Transverse waves. Sound waves. Standing Waves.

Source/Filter Model. Markus Flohberger. Acoustic Tube Models Linear Prediction Formant Synthesizer.

Chapter 14 Oscillations

The Harmonic Oscillator

Final Exam Notes 8am WednesdayDecember 16, 2015 Physics 1320 Music & Physics Prof. Tunks & Olness

DOING PHYSICS WITH MATLAB WAVE MOTION STANDING WAVES IN AIR COLUMNS

Chapter 13. Hooke s Law: F = - kx Periodic & Simple Harmonic Motion Springs & Pendula Waves Superposition. Next Week!

Energy in Planetary Orbits

PHY217: Vibrations and Waves

Physics 142 Mechanical Waves Page 1. Mechanical Waves

Section 3.7: Mechanical and Electrical Vibrations

Laplace Transform Analysis of Signals and Systems

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

Chapter 1. Harmonic Oscillator. 1.1 Energy Analysis

Exam tomorrow on Chapter 15, 16, and 17 (Oscilla;ons and Waves 1 &2)

3 THE P HYSICS PHYSICS OF SOUND

Review of Linear Time-Invariant Network Analysis

PHY 3221 Fall Homework Problems. Instructor: Yoonseok Lee. Submit only HW s. EX s are additional problems that I encourage you to work on.

Waves & Oscillations

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

AP Pd 3 Rotational Dynamics.notebook. May 08, 2014

Lecture 1 Notes: 06 / 27. The first part of this class will primarily cover oscillating systems (harmonic oscillators and waves).

Physics General Physics. Lecture 24 Oscillating Systems. Fall 2016 Semester Prof. Matthew Jones

1 2 Models, Theories, and Laws 1.5 Distinguish between models, theories, and laws 2.1 State the origin of significant figures in measurement

TOPIC E: OSCILLATIONS EXAMPLES SPRING Q1. Find general solutions for the following differential equations:

PHYSICS 149: Lecture 22

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Chapter 14. Oscillations. Oscillations Introductory Terminology Simple Harmonic Motion:

NDT&E Methods: UT. VJ Technologies CAVITY INSPECTION. Nondestructive Testing & Evaluation TPU Lecture Course 2015/16.

202 Index. failure, 26 field equation, 122 force, 1

Physics 207 Lecture 25. Lecture 25. HW11, Due Tuesday, May 6 th For Thursday, read through all of Chapter 18. Angular Momentum Exercise

Transcription:

Scattering CMPT 889: Lecture 9 Wind Instrument Modelling Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser niversity November 2, 26 Scattering is a phenomenon in which the wave is scattered into an infinity of waves propagating in different directions. As we have seen, a discontinuity in the diameter of an acoustic tube will cause traveling waves to be partially reflected and partially transmitted a scattering in two (2) directions. Examples of discontinuities causing scattering: A change of tube diameter A junction with other acoustic elements (tubes, cavities), Tone holes. 1 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 2 N-port Parallel Scattering Junctions Physical Variables at the Junction All scattering junctions arise from the parallel connection of N physical waveguides. Consider the junction of N lossless acoustic tubes, each with real, positive, scalar wave admittance Γ n = 1. where is the wave impedance of the n th waveguide. Each port on the junction has both an input and output terminal. The physical pressure and velocity at a port n is equal to the sum of the corresponding incoming and outgoing variables, that is, p n = p n p n n = n n. The law for conservation of mass and momentum dictate that the pressure at the junction must be continuous. Therefore, for a junction with N ports, the junction pressure p J is given by p J = p n, n = 1... N. By the same law, the volume flow at the N-port junction sums to zero, n =. The pressure at the junction is the same for all N waveguides at the junction point, and the velocities from each branch sum to zero. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 3 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 4

Junction Pressure Recall that the ratio of pressure to volume velocity is given by the wave impedance Z. Pressure traveling wave components are therefore given by: p n = n, and p n = n. sing the fact that velocities from each branch sum to zero, we obtain ( ) N ( ) p n n = n p n =. Because of pressure continuity at the junction, the outgoing pressure on any port n is given by p J = p n = p n p n p n = p J p n. junction: n = ( ) n n = ( p n p ) n = ( p n p J p n 2 ) = 2p n = p n p J = p J p J Z n 1 Z n = 2 Γ n p n Γn where Γ n = 1/ is the characteristic admittance of the n th port. The pressure at the junction p J may be determined by applying this result to the sum of velocities at the CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 5 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 6 Three Port Parallel Junction Example uses of the 3-port junction In an example of three connecting tubes, the model would require three digital waveguides and a 3-port parallel junction to simulate the point at which they connect. 3-port parallel junction Figure 1: Three digital waveguides meeting at a three-port parallel junction. 1 3 Tone holes in acoustic wind instruments: three connected tubes, with the finger hole being a very short branch off the main bore (Douglas Keefe). The bifurcation at the velum in the human vocal tract: simulating the oral and nasal airways (Perry Cook). The bifurcations of the trachea to the left and right bronchi: simulating the avian syrinx (Tamara Smyth). - p1 p3-2 p2 - Figure 2: Three-Port Parallel Junction. The model of the three-port parallel junction will receive an incoming pressure wave, p n, on each of the three ports, and will return the corresponding outgoing pressure value, p n = p J p n. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 7 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 8

Wall Losses Simple Wall Loss In practical implementations of acoustic tubes using digital waveguide synthesis, it is necessary to account for the losses associated with viscous drag and thermal conduction which take place primarily within a thin boundary layer along the bore walls. Below is a waveguide model of a cylindrical tube with commuted wall loss filters, λ(ω), a reflection filter H R (ω) and a transmission filter H T (λ). λ(ω) Z L Z L λ(ω) HR(ω) HT (ω) It is possible to account for attenuation due to wall losses simply by multiplying delay line outputs by a single coefficient β. For a tube of length L and radius a, with observation points at the ends of the upper and lower delay lines, the constant β has the following approximate value: β 1 2αL, α 2 1 5 ω 1 2/a, where ω is the radian frequency. This approximation is valid for tubes sufficiently short that β is near one. Since losses are frequency dependent however, this approximation may not be satisfactory for all tubes (large and small). Though these losses are distributed over the length of the tube, it is more efficient to lump these effects by commuting a characteristic digital filter to each end of the waveguide. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 9 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 1 Wall Loss and Pipe Radius Frequency Response The walls contribute a viscous drag dependent on the ratio of the pipe radius a, given by the parameter r v. Losses due to thermal conduction are also dependent on the pipe radius and are given by the parameter r t. The effects of the viscous and thermal losses lead to an attenuation in the waves propagating down the length of the pipe. The propagation constant is given by Γ(ω) = α(ω) j ω v(ω), where ω is the radian frequency and α(ω) the attenuation coefficient, v(ω) the phase velocity The attenuation coefficient α(ω) is a function of r v and the phase velocity v(ω) is a function of r t. Both therefore, are dependent on the tube radius. 1 The propagation constant Γ(ω) gives the per unit length attenuation of waves propagating along an infinitely long tube. The frequency response approximating the attenuation and phase delay over a tube of length L is given by e Γ(ω)L = e α(ω)l j(ω/v(ω))l. Removing a pure delay of duration L/c, we have the desired wall loss filter frequency response λ(ω), given by λ(ω) = e α(ω)l j(ω/v(ω) ω/c)l. The wall loss filter λ(ω) is seen to have a gentle low-pass characteristic, which is more pronounced with decreasing tube radius a or increasing tube length L. 1 See A Simple, Accurate wall loss filter for acoustic tubes, by Jonthan Abel and Tamara Smyth, DAFX 23, for details. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 11 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 12

Wall Attenuation Magnitudes for a 2cm Long Tube with Different Radii Shelf Filter r =.5cm 2 r =.4cm Gain (db) 3 4 5 r =.3cm r =.2cm 1 H σ T 6 7 r =.1cm 8 1 1 1 1 Frequency (khz) Figure 3: Wall loss filter magnitude for increasing radii. ω T π ω Wall Attenuation Magnitudes for a.2cm Diameter Tube with Different Lengths Figure 5: First-order shelf filter where H(ω) = at ω = π and H(ω) = 1 at ω =. The cutoff frequency is given by ωt and H(ωT ) is given by σt. Gain (db) 2 3 4 5 6 7 8 L = 5cm L = 1cm L = 15cm L = 2cm The first-order shelf is characterized by 1. nity gain at DC 2. A band edge gain g π > 3. A gain g π at the transition frequency f t. 9 1 1 1 1 Frequency (khz) L = 25cm Figure 4: Wall loss filter magnitude for increasing lengths. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 13 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 14 First Order Shelf Filter Design The transfer function for the first-order shelf filter is given by σ(z; f t, g π ) = b b 1 z 1 a 1 z. The coefficients are given by b = β ρβ 1, 1 ρα 1 b 1 = β 1 ρβ, 1 ρα 1 a 1 = ρ α 1, 1 ρα 1 where and β = (1 g π) (1 g π )α 1 2 β 1 = (1 g π) (1 g π )α 1, 2, g π = 1 α 1 = η sign(η)(η 2 1) 2, 1 g π 1. To form the coefficients of a prototype shelf filter with a transition frequency of π/2 η = (g π 1) (g π 1), g π 1. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 15 The parameter ρ = sin(πf t/2 π/4) sin(πf t /2 π/4) is the coefficient of the first-order allpass transformation warping the prototype filter to the proper transition frequency. An efficient way to model the frequency response is to use a cascade of minimum-phase first-order shelf filters σ i (z), ˆλ(z) = N σ i (z; f t (i), g π (i)). i=1 nlike with other methods, the shelf filter coefficients are easily computed in real time. Since the shelf filters are first order, they have real poles and zeros, and are relatively free of artifacts when made time varying. In designing the prototype filters for different orders it was discovered that a cascade of shelf filters with band-edge gains (in units of amplitude) and transition CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 16

frequencies (in radians/π) given by { } [(i 1 2 g π (i) = exp )/N]1 2 N k=1 [(k ln λ(2πf 1 s /2), 2 )/N]1 2 2 Wall Attenuation Magnitudes, [a, order] = [.1cm, 5] f t (i) = [(i 1 2 )/N]3, has a transfer function which is an excellent approximation to λ(ω) for a wide range of filter orders N, tube lengths L, tube radii a, and sampling rates f s. Wall Attenuation Magnitudes, [order, L] = [5, 2cm] Gain (db) 3 4 5 6 7 8 1 1 1 1 Frequency (khz) Figure 7: Computed and shelf filter cascade wall loss filter magnitude at various tube lengths. 2 3 Gain (db) 4 5 6 7 8 1 1 1 1 Frequency (khz) Figure 6: Computed and shelf filter cascade wall loss filter magnitude at various tube radii. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 17 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 18 Pressure Controlled Valves Classifying Pressure-Controlled Valves Many sounds are produced by coupling the mechanical vibrations of a source to the resonance of an acoustic tube: In vocal systems, air pressure from the lungs controls the oscillation of a membrane (or vocal fold), creating a variable constriction through which air flows. Similarly, blowing into the mouthpiece of a clarinet will cause the reed to vibrate, narrowing and widening the airflow aperture to the bore. Sound sources of this kind are referred to as pressure-controlled valves and they have been simulated in various ways to create musical synthesis models of woodwind and brass instruments as well as animal vocal systems. In physical modeling synthesis, the method used for simulating the reed typically depends on whether an additional upstream or downstream pressure causes the corresponding side of the valve to open or close further. The couplet (σ 1, σ 2 ) may be used describe the upstream and downstream valve behaviour, respectively, where a value of 1 indicates an opening of the valve, and a value of -1 indicates a closing of the value, in response to a pressure increase. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 19 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 2

Three simple configurations of PC valves Mechanical Vibrations: Mass-spring System 1) (, ) 2) (, ) p1 p1 p2 The simplest oscillator is the mass-spring system which consists of a horizontal spring fixed at one end with a mass connected at the other end. p2 m 3) (, ) p1 p2 K x Figure 9: An ideal mass-spring system. Figure 8: Simplified models of three common configurations of pressure-controlled valves. 1. (, ): the valve is blown closed (as in woodwind instruments or reed-pipes of the pipe organ). 2. (, ): the valve is blown open (as in the simple lip-reed models for brass instruments, the human larynx, harmonicas and harmoniums). 3. (, ): the transverse (symmetric) model where the Bernoulli pressure causes the valve to close perpendicular to the direction of airflow. The motion of an object can be describe in terms of its 1. displacement x(t) 2. velocity v(t) = dx dt 3. acceleration a(t) = dv dt = d2 x dt 2 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 21 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 22 Equation of Motion Damping The force on an object may be determined using Newton s second law of motion F = ma. There is an elastic force restoring the mass to its equilibrium position, given by Hooke s law F = Kx, where K is a constant describing the stiffness of the spring. Since Newton s third law of motion states that for every action there is an equal and opposite reaction, these forces are equal, yielding m d2 x dt 2 = Kx d2 x dt 2 ω2 x =, where ω = K/m. Recall that x = A cos(ω t φ) is a solution to this equation. Any real vibrating system tends to lose mechanical energy as a result of friction and other loss mechanisms. Damping of an oscillating system corresponds to a loss of energy or equivalently, a decrease in the amplitude of vibration. K m Figure 1: A mass-spring-damper system. The drag force F r is proportional to the velocity and is given by F r = Rv F r = R dx dt where R is the mechanical resistance. x CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 23 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 24

Damped Equation of Motion Valve Displacement The equation of motion for the damped system is obtained by adding the drag force into the equation of motion: m d2 x dt Rdx Kx =, 2 dt or alternatively d 2 x dt 2 2αdx dt ω2 x =, where α = R/2m and ω 2 = K/m. The damping in a system is often measured by the quantity τ, which is the time for the amplitude to decrease to 1/e: τ = 1 α = 2m R. When a simple oscillator is driven by an external force F (t), the equation of motion becomes m d2 x dt Rdx Kx = F (t). 2 dt p 1 S1 S1 x S3 S3 S2 S2 p 2 Figure 11: Geometry of a blown open pressure-controlled valve showing effective areas S1, S2, S3. Consider the double reed in a blown open configuration. Surface S 1 sees an upstream pressure p 1, surface S 2 sees the downstream pressure p 2 (after flow separation), and surface S 3 sees the flow at the interior of the valve channel and the resulting Bernoulli pressure. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 25 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 26 Valve Driving Force How to Discretize? With these areas and the corresponding geometric couplet defined, the motion of the valve opening x(t) is governed by m d2 x dt 2mγdx 2 dt k(x x ) = σ 1 p 1 (S 1 S 3 )σ 2 p 2 S 2, where γ is the damping coefficient, x the equilibrium position of the valve opening in the absence of flow, K the valve stiffness, and m the reed mass. The couplet therefore, is very useful when evaluating the force driving a mode of the vibrating valve. The one-sided Laplace transform of a signal x(t) is defined by X(s) = L s {x} = x(t)e st dt where t is real and s = σ jω is a complex variable. The differentiation theorem for Laplace transforms states that d x(t) sx(s) dt where x(t) is any differentiable function that approaches zero as t goes to infinity. The transfer function of an ideal differentiator is H(s) = s, which can be viewed as the Laplace transform of the operator d/dt. Taking the Laplace Transform of the valve displacement, we have ms 2 X(s) mgsx(s) KX(s) Kx = F (s). CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 27 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 28

Finite Difference Valve Transfer Function The finite difference approximation (FDA) amounts to replacing derivatives by finite differences, or d dt x(t) x(t) x(t δ) = lim δ δ x(nt ) x[(n 1)T ]. T The z transform of the first-order difference operator is (1 z )/T. Thus, in the frequency domain, the finite-difference approximation may be performed by making the substitution s 1 z T The first-order difference is first-order error accurate in T. Better performance can be obtained using the bilinear transform, defined by the substitution ( ) 1 z s c where c = 2 1 z T. sing the Bilinear Transform, the transfer function becomes X(z) = 1 2z z 2 F (z) kx a a 1 z a 2 z 2, where a = mc 2 mgc k, a 1 = 2(mc 2 k), a 2 = mc 2 mgc k. The corresponding difference equation is x(n) = 1 a [F k (n) 2F k (n 1) F k (n 2)) a 1 x(n 1) a 2 x(n 2)], where F k (n) = F (n) kx. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 29 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 3 Volume Flow 4 Volume Flow as a Function of Pressure Difference x pm pb Bore 35 threshold of oscillation y λ Lip Reed Figure 12: The clarinet Reed. The steady flow through a valve is determined based on input pressure p 1 and the resulting output pressure p 2. The difference between these two pressure is denoted p an dis related to volume tflow via the stationary Bernoulli equation = A 2 p ρ, where A is the cross section area of the air column (and dependent on the opening x). (cm 3 / s) 3 25 2 15 1 5 1 2 3 4 5 6 7 8 9 1 p p 1 (hpa) Figure 13: The reed table. reed closed CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 31 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 32