Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » The Art of the PFUG » Optimizing Transient Finger Damping on a Driven String

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice Digital Scholarship

    This collection is included in aLens by: Digital Scholarship at Rice University

    Click the "Rice Digital Scholarship" link to see all content affiliated with them.

Also in these lenses

  • Lens for Engineering

    This collection is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.
 

Optimizing Transient Finger Damping on a Driven String

Module by: Bryan Wigianto, Michelle Green. E-mail the authorsEdited By: Bryan Wigianto, Michelle Green

Summary: This report summarizes work done as part of the Physics of Strings PFUG under Rice University's Summer 2010 VIGRE program. VIGRE is a program of Vertically Integrated Grants for Research and Education in the Mathematical Sciences under the direction of the National Science Foundation. A PFUG is a group of Postdocs, Faculty, Undergraduates and Graduate students formed round the study of a common problem. This module explains a method for optimizing the harmonics of a vibrating string by using the best pointwise finger damping.

Introduction

The topic of vibrating strings has long been discussed by the great minds of the Enlightenment. The study of the harmonic overtones of strings, however, seemed to have been neglected for over a hundred years. The ideas of D'Alembert, Rameau, and Rayleigh pertaining to the production of these overtones, or partials, have only recently been analyzed mathematically by Bamberger et al. [1]. We will take their lead and proceed with a string of length fixed at both ends. The harmonic modes can be coaxed by pressing lightly on the string with the finger at xc=14xc=14 and driving the string with frictional forces of a bow at xb=58.xb=58. The preceding will produce the fourth mode of vibration. In our formulation we assume the string to have constant linear density and uniform tension. We only consider vertical displacements in the string and assume that these displacements are small. Our goal is to achieve the best sound by optimizing the damping coefficient c(t)c(t) in the following one dimensional wave equation

ρ u t t ( x , t ) - τ u x x ( x , t ) + c ( t ) δ ( x - x c ) u t = b ( t ) δ ( x - x b ) ρ u t t ( x , t ) - τ u x x ( x , t ) + c ( t ) δ ( x - x c ) u t = b ( t ) δ ( x - x b )
(1)

that induces the purest waveform–one that best resembles a sine curve. The displacement uu depends both on time and space in the xx direction. Here ρρ is the linear mass density, ττ represents tension, b(t)b(t) is the driving force simulating bow pressure, and c(t)c(t) is the damping coefficient we are interested in. The δδ functions are present to simulate a pointwise footprint at xcxc and xbxb. More precisely,

- δ ( x ) d x = 1 - δ ( x ) d x = 1
(2)

where δ(x)=0δ(x)=0 for all x0x0. At x=0x=0, δ(x)δ(x) is infinitely large, but for numerical purposes, we will set this to the reciprocal of our spacial step increment.

Finite Difference Methods

The first method of the two finite difference methods used to solve the wave equation is the forward Euler method, in which (1) is solved incrementally through both time and space given the following initial conditions

u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , u ( 0 , t ) = u ( , t ) = 0 u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , u ( 0 , t ) = u ( , t ) = 0
(3)

In order to solve this equation for uu we must approximate the partial derivatives uttutt, uxxuxx, and utut. We first approximate utut by taking the slope of u(x,t)u(x,t) with respect to time using time step dtdt. When approximating uttutt, we use a similar process, where the slope of utut is taken with respect to time. The time step dtdt must be squared in order to account for the process of taking two derivatives. The same process is performed to approximate uxxuxx, where the derivative of uu is evaluated twice with respect to space using the space step dxdx. The results of our approximation process are as follows:

u t u ( x , t + d t ) - u ( x , t ) d t u t u ( x , t + d t ) - u ( x , t ) d t
(4)
u t t u ( x , t + d t ) - 2 u ( x , t ) + u ( x , t - d t ) d t 2 u t t u ( x , t + d t ) - 2 u ( x , t ) + u ( x , t - d t ) d t 2
(5)
u x x u ( x + d x , t ) - 2 u ( x , t ) + u ( x - d x , t ) d x 2 u x x u ( x + d x , t ) - 2 u ( x , t ) + u ( x - d x , t ) d x 2
(6)

These approximations may be substituted into our original partial differential equation in order to solve for u(x,t)u(x,t).

The second finite difference method used to solve the wave equation is the trapezoidal approximation method, where we have the system of equations

u u t t = 0 I x x - c ( t ) δ ( x - x c ) u u t + 0 b ( t ) δ ( x - x b ) u u t t = 0 I x x - c ( t ) δ ( x - x c ) u u t + 0 b ( t ) δ ( x - x b )
(7)

which we will denote as

V ' ( t ) = A ( t ) V ( t ) + B ( t ) V ' ( t ) = A ( t ) V ( t ) + B ( t )
(8)

where II represents the identity matrix. The xxxx operator is a tridiagonal matrix with -2 along the diagonal and ones along the superdiagonal and subdiagonal. The approximating integral equation

( j - 1 ) d t j d t V ' ( t ) d t = ( j - 1 ) d t j d t ( A ( t ) V ( t ) + B ( t ) ) d t ( j - 1 ) d t j d t V ' ( t ) d t = ( j - 1 ) d t j d t ( A ( t ) V ( t ) + B ( t ) ) d t
(9)

is solved to reveal a solution for u(jdt)u(jdt). The trapezoidal integration method turns out to be the more accurate of the two solution methods, since its error is less than the error of the forward Euler method. Real values for the string's tension, density, and length were used to evaluate the solution for the trapezoidal method, but gave us unintelligible results when used for the forward Euler method. Both methods were used to evaluate the solution using arbitrary values.

Optimization

With all the preliminary work established, we can move on to the optimization problem. We investigated two objective functions for optimization. The first objective function considered was the following

J ( c ( t ) ) = 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) 2 d x . J ( c ( t ) ) = 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) 2 d x .
(10)

Here a suitable time TT is preordained. It is legitimate to do this since damping should not affect the periodic details of the waveform. The u(x,T)u(x,T) is solved with the given c(t)c(t) and fitted to u0(x,T)=sin(4πx)u0(x,T)=sin(4πx). We parameterize

c ( t ) = e - c 1 t - e - c 2 t c ( t ) = e - c 1 t - e - c 2 t
(11)

which acts at one point on the string with a shape similar to the following.

Figure 1
Figure 1 (cexamp.png)

It is important also that c1<c2c1<c2 to guarantee the above shape. Our control problem then, is to

min c 1 , c 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) 2 d x min c 1 , c 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) 2 d x
(12)

subject to u(x,T;c(t))u(x,T;c(t)) solving our wave equation with the same initial and boundary conditions. There is a scaling issue since u(x,T)u(x,T) is small (on the order of 10-510-5) at times. To correct this we scale our target u0u0 so that the two waveforms are comparable before we run the optimization. Normalizing uu instead, would be cumbersome since the maximum amplitude depends on time. To expedite the optimizer, we supply the gradient of our objective

J ( c ( t ) ) = ( J ( c ( t ) ) c 1 , J ( c ( t ) ) c 2 ) . J ( c ( t ) ) = ( J ( c ( t ) ) c 1 , J ( c ( t ) ) c 2 ) .
(13)

The equations for the partial derivatives are as follows.

J ( c ( t ) ) c 1 = 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) ( u ( x , T , c ( t ) ) c 1 ) d x , J ( c ( t ) ) c 1 = 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) ( u ( x , T , c ( t ) ) c 1 ) d x ,
(14)
J ( c ( t ) ) c 2 = 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) ( u ( x , T , c ( t ) ) c 2 ) d x J ( c ( t ) ) c 2 = 2 0 ( u ( x , T ; c ( t ) ) - u 0 ( x , T ) ) ( u ( x , T , c ( t ) ) c 2 ) d x
(15)

The inner partial derivatives will be approximated by the same finite difference method we used above.

One of the main difficulties with this objective function is that it requires a TT to be found beforehand and thus we can only optimize with respect to our spacial dimension. Optimizing over both space and time would rid us of needing to find a good TT but complicates our objective function and retards our optimizer. Another concern with this objective is that it takes into account the sign of the target waveform, but whether the waveform is sin(x)sin(x) or -sin(x)-sin(x) is no matter to the musician. Along the same lines we have the scaling difficulty. Another objective function we have explored is the following energy minimization problem. We note that u(x,t)u(x,t) can be represented as a combination of sinusoids. For a given TT we have

u ( x , T ) = n = 1 N u n sin ( 2 n π x ) . u ( x , T ) = n = 1 N u n sin ( 2 n π x ) .
(16)

Here each unun represents the nth Fourier coefficient that corresponds to the expression of the nth mode in the total wave. Since we are interested in expressing only the fourth mode, our optimization problem will try to minimize all other modes

min c 1 , c 2 F ( c ( t ) ) = 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x d x 2 d t min c 1 , c 2 F ( c ( t ) ) = 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x d x 2 d t
(17)

subject to our wave equation with the same conditions. We decide on clearing up the first ten modes (except the fourth) to ensure that we are left with a waveform closest to our target. Like before we supply the gradient.

F ( c ( t ) ) c 1 = 2 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x u ( x , t , c ( t ) ) c 1 d x d t , F ( c ( t ) ) c 1 = 2 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x u ( x , t , c ( t ) ) c 1 d x d t ,
(18)
F ( c ( t ) ) c 2 = 2 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x u ( x , t , c ( t ) ) c 2 d x d t . F ( c ( t ) ) c 2 = 2 0 T f i n n = 1 , n 4 10 0 ( u ( x , t ; c ( t ) ) sin n π x u ( x , t , c ( t ) ) c 2 d x d t .
(19)

This objective function solves the sign and amplitude problems of the first. Additionally we are now optimizing over time so we need not specify a TT. One may wish to reset the bounds of the time integral through a different interval.

Results

This is the result of our optimizer given a certain driving force b(t)b(t) using our first objective function.

Figure 2
Figure 2 (fourthmode1.png)

This is the result of our optimizer at a certain time using the energy minimization objective. Since we optimized over space and time, we express this as a three dimensional plot.

Figure 3
Figure 3 (trapzplot.png)

For the energy minimization objective function using multiple dampings, we have this result.

Figure 4
Figure 4 (multplot.png)

Comparatively, the values of the objective function for single and multiple dampings are on the same order of magnitude, with the value for the single dampings being slightly smaller. Therefore the optimization process for a single damping is more effective, but not by much.

Acknowledgments

We would like to give a big thanks to Dr. Steve Cox for his guidance and support throughout the course of the project. This paper describes work completed with the support of the NSF.

Appendix

All of the codes used in this project are available on our website at

http://www.owlnet.rice.edu/ mlg6/strings/.

References

  1. Bamerger, A., J. Rauch and M. Taylor. A model for harmonics on stringed instruments. Arch. Rational Mech. Anal. 79(1982) 267-290.
  2. Cheney, E. W., and David Kincaid. Numerical Mathematics and Computing. Pacific Grove, CA: Brooks/Cole Pub., 1994. Print.
  3. Cox, S., and Antoine Hernot. Eliciting Harmonics on Strings. ESAIM: COCV 14(2008) 657-677.
  4. Fletcher, Neville H., and Thomas D. Rossing. The Physics of Musical Instruments. New York: Springer-Verlag, 1991. Print.
  5. Knobel, Roger. An Introduction to the Mathematical Theory of Waves. Providence, RI: American Mathematical Society, 2000. Print.
  6. Rayleigh, John William Strutt, and Robert Bruce Lindsay. The Theory of Sound. New York: Dover, 1945. Print.

Collection Navigation

Content actions

Download:

Collection as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks