Page  00000001 Trumpet and Trumpet Player: Model and Simulation in a Musical Context Christophe Vergez, Xavier Rodet IRCAM-CNRS UMR9912, 1 P1. Igor Stravinsky, 75004 France email: vergez@ircam.fr, rod@ircam.fr Abstract This paper presents a physical model of trumpet-like instruments aimed at sound synthesis. In the long term, the goal is to deliver to the musician a genuine musical instrument behaving like a brass instrument while offering more freedom and new possibilities of expression. 1 Introduction For several years, we have been developing and studying computer-simulated models of brass instruments (including the player's lips) aimed at sound synthesis. Starting from a model derived from the Elliott and Bowsher brass model (cf. section 2), part of our work has consisted in developing this model until obtaining sufficiently realistic behavior to allow a musical use. Improvements concern the model of the exciter part (lips oscillation and air flow through the lips, cf. section 3) and of the resonator part (acoustical propagation in the bore of the instrument, cf. section 4). However, a data-processing program cannot be compared to a musical instrument in the traditional sense of the term. Therefore, in order to give to the musician the feeling of playing an instrument, we also seek to ensure a real-time functioning of the numerical simulations and to propose relevant control interfaces (cf. paragraphs 5.1 and 5.2). Finally, the control is investigated in 5.3 in terms of optimal command of the parameters of the model. The work presented in this paper is part of a Phd thesis (Vergez 2000). 2 Minimal Brass Model An important goal of this work is to identify what must be taken into account to model the sound production, and what can be neglected without harming the realism of the sounds and the behavior of the model. 2.1 Exigence of simplicity One could indeed think that a more complete model would be a better choice. However, there are several arguments against this proposition: - Care has to be taken in order to propose models with similar levels of approximation for each component. For example, a complex aerodynamical model, applied to a geom etry of lips that is too simplified, is likely to give worse results than a simple aerodynamical model, but adapted to the smoothness of the geometrical description (Hirschberg 1999). - A real-time model, essential so that a musician/instrument relation can be established with the model, demands a relatively simple model. - The control of the model requires to identify relevant parameters to be modified. It seems that this is very difficult, when the complexity of the model is increased (discussions with S. Adachi (Adachi and Sato 1996), Di Federico (Federico and Borin 1997) and Ph. Depalle (Rodet et al. 1990)). These reasons encouraged us to choose, as a start, one of the simplest known models representing the basic behavior of brass instruments, derived from the model of Elliott and Bowsher (Elliott and Bowsher 1982). 2.2 Description of the Model The lips model includes a single parallelepipedic mass m attached to a spring k and a damper r. The acoustic pressure field inside the bore is decomposed into outgoing and incoming travelling waves po and pi. The bore of the trumpet is modelled by its time-domain reflection function r'(t), derived from its complex input impedance measured in an anechoic room (Vergez and Rodet 1997b). The air flow is supposed laminar in the mouth and in the lips channel. An air jet formed after the lips is supposed to dissipate by turbulence all its kinetic energy in the cup of the mouthpiece without pressure recovery (Hirschberg 1995). Therefore, nonlinear coupling between the lips and the bore is represented by the Bernoulli equation linking volume flow between the lips u(t), lips aperture x(t) and pressure difference between the mouth and the mouthpiece (pm - p(t)) (air velocity in the mouth is neglected). Finally, this basic physical model is described by the following system of equations for positive x(t): mx(t) + rr(t) + kxF(t) = Faero-acoustics pi(t) = (r' * p,) (t) (1) u(t) = 1 x(t)sgn(pm - p(t)) - Pm -p(t) p(t) = Po(t) + pi(t) Su(t) = (po(t) - Pi(t)) where 1 is the length of the mass in the transversal dimension, Zc = Pj^ is the characteristic impedance at the entry of the

Page  00000002 mouthpiece (p is the air density, c the sound velocity and A cup is the cross section area of the mouthpiece entry). When lips are closed (x(t) < 0) the lower lip is taken into account by additional stiffness and damping coefficients 3k and 4r, and the volume flow is set to zero. In spite of the crude approximations we made, sonic results show that some of the essential characteristics of brass instruments (including transitions between modes) seem to be captured in this basic model. The following improvements allow us to reach a better sound quality. 3 Improvements of the exciter model 3.1 Lips oscillation First improvements concern the collision of the lips. Indeed, instead of the alternance between a closed-lips phase and an opened-lips phase, the progressive opening/closing has been taken into account by time-varying spring stiffness and damping coefficient. Moreover, a one dimensional model for the lips is a crude approximation. In fact, it has been shown in (Vergez and Rodet 2000a) that this approximation leads to a discontinuous volume flow derivative at lips closure. To cope with this problem, the length of the mass 1 is made dependent on x for small openings. This accounts for the fact that lips begin to close from the comers (Jorno 1995). Practically, I is replaced by 101(x) with 01(x) = tanh( x). Then the air flow partial derivative becomes continuous and a significant part of disturbing high frequencies in the sound is eliminated. approximation since viscosity can be neglected. Therefore, we have shown that the following model allows us to switch smoothly between a Poiseuille flow (for small openings) and a viscousless flow (for large openings): -1 S 02 X2 x zjA(x) [A(x) - A2(x) + 4Pm-Ph (2) with 02 = tanh (ai 2 (p - Ph)0.5), and a1 = T 2 (= (105)), and a2 = 2, rT is air dynamic viscosity, e is the width of the mass and A(x) l= Zcx. Practically, it is interesting to let the player vary al and a2 around these values. This allows a finer control on the timbre of the sound. For example, figure 2 shows the influence of a 1 (a2 being set to 3). The smaller a1, the softer the sound. o10-3 Volume flow (m3.s- 1) 0.5.......................... -0.5 -1 0 50 100 150 200 samples S 10-3 Volume flow (m3.s 1).5.......... -1 ----- --- --- --- 0.5.. -1 0 50 100 150 200 samples 1 I 0.5 i 0 -0.5..............................o.u........ -: --.................:......... I volumeflow liscohtinuity derivative i 40 60 80 100 120 samples - 0.5 0 -1 -1.5.... i..... no more discontinuity.. f - *........ Svolume flow...... * derivative.... 140 160 180 200 220 samples Figure 1: Effect of a varying lips length I tanh( -x) on the volume flow derivative at exact lips closure. 3.2 Air Flow Through the Lips Just after the opening of the mass, a rapid alternation (apparently non realistic) of a strongly positive and a strongly negative volume flow has been observed. This occurs since the air flow model ignores viscothermal losses and inertia. The hypothesis of a Poiseuille flow under the mass has then been studied (while neglecting inertial effects). Considering the 2D-geometry of the model and the coupling between the mouth and the bore, an analytical expression for the volume flow u has been derived (Vergez and Rodet 2000a). However, viscous effects are only significant for small apertures. In fact, for large x, the Bernoulli equation is a good Figure 2: Volume flow calculated according to equation (2) with a2 = 3. From left to right a = 106, a1 = 2.105. 4 Improvements of the resonator model Nonlinear propagation effects which occur at high playing levels are finally taken into account. Indeed they are mainly responsible for the characteristic brassy sound obtained when a trumpet or another brass instrument is played fortissimo (Gilbert and Petiot 1996). A new algorithm to simulate waveform distortion due to nonlinear propagation of an air pressure wave has been developed. This algorithm is derived from the simple-wave differential equation (Burgers equation without dispersion or dissipation), which assumes that the solution is always a C1 function. However, a physically-based supplementary constraint included in our computational model, allows us to simulate shock-waves (see figure 3). The extension of this method to the nonlinear propagation of a wave in a resonator made of a succession of cylindrical tubes has then been studied and applied to the real-time model in (Vergez and Rodet 2000b) and a pattent has been obtained. Reflection/transmission at junctions are treated in the linear hypothesis, which seems justified since nonlinear propagation is a cumulative phenomenon and reflection/transmission at junctions may be considered instantaneous. Such a model reproduces the spectral enrichment observed when sonic level is increased. However, the number of cylinders required to approach the input impedance of a real trum

Page  00000003 Original signal 0.8. a \ / // // 0.4 I 0.2 0 -------------- -0.2 < -04 Increasing distance from the source -0.6 -0.8 -1 0 100 200 I I II ---------- Breaking of the wave ure 5). First of all, the position of each valve is deduced from a force sensitive resistor (FSR) fixed on the top of each valve. Secondly, blowing pressure is measured inside the cup of the mouthpiece. Moreover, contraction of the lips has been checked to be a monotonous (increasing) function of the pressure force of the mouthpiece on the lips of the player. Therefore, contraction of the lips is quantified through the measurement of the pressing effort transmitted by the body of the mouthpiece. -\ " -- ~, ^. \ v \ / 300 400 500 600 700 Time (samples) Figure 3: Simulation of the nonlinear propagation of a sinusoidal wave. pet (at low playing levels) is too high to allow for real-time calculation. Therefore, a hybrid linear/nonlinear formulation has been tested to include visco-thermal losses and a more accurate geometrical description: the inner dynamics is simulated using a measured reflection function (linear acoustics) while the sound at the bell is calculated through the nonlinear propagation algorithm (Vergez 2000). This model was inspired by measurements made on an artificial mouth with water-filled latex lips. Indeed, as shown in figure 4 (next page), spectral enrichment when sonic level is increased is far more sensible at the bell than inside the mouthpiece (the note played is the fourth mode of a Bb trumpet, no valve pressed, note C5). This model is both perceptively convincing and less demanding in terms of computational cost. 5 Control of the Model A main objective of this work is to give to the physical model the attributes of a traditional musical instrument: realtime execution, interaction between the musician and the instrument and richness of control. This requires a man-machine interface adapted to the problem (Cook 1992), (Wanderley 2000). The question is made complex by the number of factors influencing the quality of a trumpet sound (Bertsch 1997). Various means to "play" the model are now presented. 5.1 Real-time MIDI Playing Interface The MIDI interface includes a MIDI sax Yamaha WX7 or WX5, and three foot pedals. The musician can modify, in real-time, mouth pressure, stiffness of the lips, viscous damping, as well as valve positions (Vergez and Rodet 1997a). 5.2 Towards a Meta-Trumpet An interface for trumpet players has been conceived. It is made of a set of sensors mounted on a real trumpet1 (fig1Thanks to Alain Terrier and Patrice Pierrot for the construction of the Meta-trumpet and of the electronic set up respectively Figure 5: Playing interface for trumpet players 5.3 Optimal control: inversion of the model Other non real-time strategies of control have also been investigated with T. Helie. One might want to control the model in an optimal way, so that it reproduces as closely as possible a recorded trumpet sequence. The problem is to estimate time-varying parameters of a nonlinear system. This question has been studied in the case of vocal cord models, but the situation is much more complex here because of the acoustic feedback of the instrument on the lips. In the case of musical instruments, few works have been published (Wold 1987), (Cemgil and Erkut 1997), (Guillemain et al. 1997), and none to our knowledge relates to physical models of brass instruments. A first method was presented in ICMC99 (Helie et al. 1999). In a paper accepted at ICMC2001 (Dhaes and Rodet 2001), a second approach is presented. 6 Conclusion A physical model of trumpet-like instruments has been built, starting from a typical single-mass model. Improvements have been added after analysis of simulation results or of experiments on an artificial mouth device. The final model gives very realistic sonic results. This confirms that a rather simple model can reproduce most of the behavior of the real instrument. The trumpet model will be demonstrated in real time at the conference. During the demonstration, it will be

Page  00000004 I I I I I I I I I I - - - 0.. Pianissim.................i.i..i..i. ''TIT m i ~~ n ~ n.......... I Pressure envelope mno::]| I at the bell_ -00 50... 250 1.. M....... ___i.. ____.L... 4000 16000 18000 0 2000 4000 6000 6000 10000 12000 Frequency (Hz) SPianissimo SI I 0 2000 4000 6000 8000 10000 12000 14 14000 16000 18000 Frequency (Hz) -a <-111 Pressure envelope 1 orte 50......... -.:. at the bell............... - 5 0................... -200 0 2000 4000 6000 0000 10000 12000 14000 16000 10000 Frequency (Hz) Frequency (Hz) Pressure envelope 550....... at the bell... -200 0 2000 4000 6000 8000 10000 12000 i -I Fortissimo 14000 16000 18000 Frequency (Hz) 0 2000 4000 6000 0000 10000 12000 14000 16000 16000 Frequency (Hz) Figure 4: Experimental results obtained with the artificial mouth. Comparison of the spectral enveloppe of the air pressure at the bell (left column) and in the mouthpiece (right column) for different playing nuances (see section 4). emphasized that this model can really be played like a traditional musical instrument. Indeed, the model will be used in 2001 by a composer (M. Lanza) in a piece for two instruments. References Adachi, S. and M. Sato (1996). Trumpet sound simulation using a two-dimensional lip vibration model. 99(2), 1200-1209. Bertsch, M. (1997, August). Variabilities in trumpet sounds. In ISMA'97 Proceedings, pp. 401:406. Cemgil, A. T. and C. Erkut (1997). Calibration of physical models using artificial neural networks with application to plucked string instruments. In ISMA'97 Proceddings. Cook, P. R. (1992). A meta-wind instrument physical model and a meta-controller for real time performance control. In Proceedings, San Jose, California, pp. 273-276. ICMA. Dhaes, W. and X. Rodet (2001). Automatic Estimation of Control Parameters for Musical Synthesis Algorithms: An Intance Based Learning Approach. In Proceedings ofICMC2001. Elliott, S. J. and J. M. Bowsher (1982). Regeneration in Brass Wind Instruments. Journal of Sound and Vibration 83(2), 181-217. Federico, R. D. and G. Borin (1997, September). Synthesis of the trumpet tone based on physical models. In proceedings ICMC'97, Thessalonike. ICMC. Gilbert, J. and J. F Petiot (1996). Nonlinearit6s dans les instruments de type cuivre: resultats experimentaux. In Actes du quatrieme Congres FranCais d'Acoustique, Marseille. Guillemain, P., R. Kronland-Martinet, and S. Ystad (1997). Physical modelling based on the analysis of real sounds. In ISMA'97 Proceddings, Edinburgh. H6lie, T., C. Vergez, J. Levine, and X. Rodet (1999, October). Inversion of a physical model of trumpet. In Proceedings of ICMC99, Pekin, China. Hirschberg, A. (1995). Mechanics of Musical Instruments (Chap. 7). Springer Verlag. Hirschberg, M. (1999). private communication. Jorno, D. (1995). Etude theorique et experimentale de l'autooscillation des levres en presence d'un couplage acoustique. application aux instruments a anches lippales. Master's thesis, Universite Paris 6, DEA ATIAM, ICP. Rodet, X., P. Depalle, G. Fleury, and F.Lazarus (1990). Modeles de signaux et modeles physiques d'instruments: etudes et comparaisons. In Actes du Colloque Modeles Physiques de Grenoble. Vergez, C. (2000, January). Trompette et trompettiste: un systeme dynamique non lineaire analyse modelise et simule dans un contexte musical. Ph. D. thesis, Universite Paris 6. Vergez, C. and X. Rodet (1997a, September). Comparison of real trumpet playing, latex model of lips and computer model. In Procedings ICMC'97, Thessalonike, pp. 180-187. Vergez, C. and X. Rodet (1997b, August). Model of the trumpet functioning: real time simulation and experiments with an artificial mouth. In Proceedings ISMA'97, Edinburgh. Vergez, C. and X. Rodet (2000a, August). Air flow related improvements for basic physical models of brass instruments. In Proceedings ofICMC'2000, Berlin, German. Vergez, C. and X. Rodet (2000b, January). New algorithm for nonlinear propagation of a sound wave. application to a physical model of a trumpet. Journal of Signal Processing 4(1), 79-87. Special issue on nonlinear signal processing. Wanderley, M. (2000). Trends in Gestural Control of Music. Ircam-Centre Pompidou. Wold, E. H. (1987, May). Nonlinear Parameter Estimation of Acoustic Models. Ph. D. thesis, Computer Science Division (EECS), University of California, Berkeley.