Plucked-String Models: from the Karplus-Strong Algorithm to Digital

Plucked-String Models: from the Karplus-Strong Algorithm to Digital

0DWWL .DUMDODLQHQ 9HVD 9lOLPlNL DQG 3OXFNHG6WULQJ 7HUR 7RORQHQ Helsinki University of Technology 0RGHOV)URPWKH Laboratory of Acoustics and .DUSOXV6WURQJ Audio Signal Processing P.O. Box 3000 $OJRULWKPWR'LJLWDO FIN-02015 HUT, Finland http://www.acoustics.hut.fi/ :DYHJXLGHVDQG [email protected], [email protected], [email protected] %H\RQG The emergence of what is called physical modeling (Smith 1987, 1992, 1997); however, the relation has and model-based sound synthesis is closely related to never been explicated in full detail. The first aim of the development of computational simulations of this article is to show how the more “physical” plucked string instruments. Historically, the first waveguide model of a plucked string can be reduced physical approaches (Hiller and Ruiz 1971a, 1971b; to an extended form of the Karplus-Strong type that McIntyre and Woodhouse 1979; McIntyre, we call the single delay-loop (SDL) model. For a linear Schumacher, and Woodhouse 1983) were followed and time-invariant (LTI) case, this reduction is by the Karplus-Strong (KS) algorithm (Karplus and relatively straightforward, and results in a Strong 1983). The KS algorithm was discovered as a computationally more efficient digital filter simple computational technique that seemingly had structure. (Note that the historical order of the KS nothing to do with physics. Soon thereafter, Julius algorithm and digital waveguides is the reverse of Smith and David Jaffe showed a deeper their logical order, since the generalization was not understanding of its relation to the physics of the developed until after the KS algorithms was plucked string (Smith 1983; Jaffe and Smith 1983). designed. This article’s title reflects the historical Later, Julius Smith generalized the underlying evolution: the “beyond” refers to recent ideas of the KS algorithm by introducing the theory generalizations and extensions of both concepts.) of digital waveguides (Smith 1987). Digital The second aim of this article is to discuss further waveguides are physically relevant abstractions yet extensions to the basic SDL models that make them computationally efficient models, not only for capable of simulating plucking styles, beats in string plucked strings, but for a variety of one-, two-, and vibration, sympathetic vibrations, and resonant three-dimensional acoustic systems (Van Duyne and strings. Such techniques have already been proposed Smith 1993; Savioja, Rinne, and Takala 1994; Van and studied (Jaffe and Smith 1983; Smith 1993; Duyne, Pierce, and Smith 1994). Further Karjalainen, Välimäki, and Jánosy 1993). Here we investigations embodied these ideas in more detailed discuss them in the context of our recent synthesis principles and implementations, resulting implementations of plucked-string models. in high-quality and realistic syntheses of plucked string instruments (Sullivan 1990; Karjalainen and Laine 1991; Smith 1993; Karjalainen, Välimäki, and )XQGDPHQWDOV RI 6WULQJ %HKDYLRU Jánosy 1993; Välimäki, Huopaniemi, Karjalainen, and Jánosy 1996). A recent overview of research in The behavior of a vibrating string with a plucked this field is given by Smith (1996). excitation can be described in terms of two traveling The equivalence of Karplus-Strong and digital waves traversing the string in opposite directions waveguide formulations in sound synthesis was al– and reflecting back at the string terminations ready known when the waveguide theory appeared (Elmore and Heald 1969; Fletcher and Rossing 1991). When we assume that during autonomous vibration This article was originally published in Computer Music Journal, the string is an LTI system, we can model it as shown 22:3, pp. 17-32, Fall 1998. This reprint is available at URL: http://www.acoustics.hut.fi/~vpv/publications/cmj98.htm in Figure 1 (Smith 1987, 1992). The two delay lines Karjalainen, Välimäki, and Tolonen 1 Figure 1. A bidirectional digital waveguide model for a terminated string. Propagation direction Delay line 1/2 R ( z ) R ( z ) f x ( n )y ( n ) b Delay line Propagation direction can be interpreted as a digitized d’Alembert’s trip along the string: at the loop filter H l(z). When the solution to the one-dimensional lossless wave loop filter is a two-point average y(n) = [x(n) + x(n – equation. The two waveforms travel through the 1)]/2, and when the initial conditions (i.e., the initial delay lines and reflect at reflection filters R f (z) and contents of the delay line) that are used to pluck the R b (z) which produce phase inversion and slight string are taken to be random numbers, the well- frequency-dependent damping. The input signal x(n) known Karplus-Strong algorithm for plucked-string is summed into both delay lines just as output signal sounds is obtained (Karplus and Strong 1983; Jaffe y(n) is taken as a sum of the wave-variable values in and Smith 1983). Note that the original algorithm the two delay lines at the observation point. This uses no explicit input signal. digital waveguide-modeling approach yields efficient implementations for real-time sound synthesis. For the digital waveguide of Figure 1, a )URP %LGLUHFWLRQDO 'LJLWDO :DYHJXLGHV further assumption is needed: All signals to be WR 6'/ 0RGHOV modeled must be bandlimited to below one-half of the sampling rate. Owing to the LTI assumption, Above, we discussed two computational models for string losses and dispersions can be commuted stringed musical instruments that provide the basis between any driving or observation points (Smith for efficient real-time synthesis. The case of extreme 1992, 1997). This allows the use of ideal delay lines simplicity and efficiency, the KS model of Figure 2, is that are computationally very efficient. certainly an oversimplification for anything but In the string model of Figure 1, the input and rudimentary synthesis. More detailed models are output signals can be of any wave-variable type, needed both for high-quality sound synthesis and for such as displacement, velocity, acceleration, or slope theoretical understanding in physical modeling. In (Smith 1992; Morse 1976). An interesting case is to this section, we derive the relations between the select acceleration as the wave variable, since then an bidirectional digital waveguide and the SDL ideal pluck corresponds to a unit impulse (Smith formulations in detail. 1983; Karjalainen and Laine 1991). Let us consider the relation of the two basic Further using the above simplification principles, formulations, the bidirectional digital waveguide it is possible to commute the elements of a model and the single delay-loop model. We will terminated, dispersive, and lossy string into the form analyze two cases: a string with (1) a bridge output illustrated in Figure 2, provided that the output and (2) a pickup output. An excitation—such as a signal is taken to be a single traveling-wave pluck—in a real physical string initiates wave component. In this extreme case, the losses and the components that travel independently in opposite dispersion are lumped at a single point in the round directions. The output of the string—e.g., the force at 2 Computer Music Journal Figure 2. A simplified linear string model as a single delay-loop (SDL) structure. The Karplus-Strong algorithm is a special case in which the excitation is given as the initial state of the delay line. x ( n ) y ( n ) Loop filter Delay line H ( z ) -L I l z the bridge of an acoustic instrument, or the pickup In Figure 3, we redefine the dual delay-line voltage in an electric guitar—reacts to both wave waveguide model for an ideally plucked string with components. The effects of the excitation and pickup transversal bridge force as an output. This situation positions are easily simulated in the waveguide is applicable to the simulation of the acoustic guitar, model that is based on a dual delay line, as depicted for example. In our notation, H A,B(s) refers to the in Figure 1. However, for sound-synthesis purposes, transfer function from point A to point B. Note that the SDL realization, such as in Figure 2, is more we have divided the pluck excitation X(s) into two efficient. Also, it is interesting from a theoretical parts, X 1(s) and X2(s), such that X1(s) = X2(s) = X(s)/2. point of view to formulate an SDL model that We can first simplify the model by deriving an includes the effects of the excitation and pickup equivalent single excitation at point E1 that positions. It has been shown that an ideal corresponds to the net effect of the two excitation acceleration or velocity input into a string model components at points E1 and E2. When we assume (corresponding to plucking or striking the string, that the bridge termination point (R1, R2) is to the respectively) can be approximated by a unit impulse right of the input point (E1, E2) as in Figure 1, the (Smith 1992). Thus, by assuming linearity and time equivalent single excitation at E1 can be expressed as invariance, we can naturally think in terms of impulse responses, and interpret the string model as XE1,eq(s) = X1(s) + HE2,L2(s)R f(s)HL1,E1(s)X2(s) a linear filter. = ½[1 + HE2,E1(s)]X(s) = HE(s)X(s), (1) where subscript “eq” stands for “equivalent,” and Plucked String with Bridge Output XE2,E1(s) is the left-side transfer function from E2 to E1 consisting of the partial transfer functions from E2 In the discussion to follow, we describe the transfer to L2 and L1 to E1, and the reflection function R (s). functions of the model components in the Laplace f Thus, H E(s) is the equivalent excitation transfer transform domain. The Laplace transform is an function. efficient tool in linear continuous-time systems The output signal of interest is the transverse force theory.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us