Coolmath.comCoolmath4kids.com
math sitesmath for kidsmath for ages 13-100algebra lessonsteachers math areaparents math areamath gamesScience MonsterSpike's Game Zone
Coolmath Books: Math Anxiety & Success, Algebra, Precalculus ReviewOTHER SITES:Finance FREAKTotally Stressed Out
 Damping Functions

lines

 

(These pages will explain damping functions and the very cool way they are used in music!)
(The black and white graphs are screen captures from a TI-92 graphing calculator. The other graphical images are screen captures from the digital editing software SAW Plus.)

What are damping functions?

The best way to explain them is to show you some examples...

Look at the function  f(x) = x*sin(10x). (The * is being used to indicate multiplication.)

Ignoring the first factor, x, for a minute, the graph of  g(x) = sin(10x) looks like:

sin10xa.gif (3699 bytes)
(graphing window: x on [-7,7], y on [-4,4])

So, what does multiplying by the x do? Let's find out by graphing the whole thing!

f(x) = x*sin(10x)

xsin10x.gif (5717 bytes)
(graphing window: x on [-7,7], y on [-4,4])

Man! It really changed! Look back up at our first graph. Do you see what happened?

The graph of  g(x) = sin(10x)  is getting squished (or damped) between the graphs of  y = and  y = -x !!

Don't believe me? Then check it out! Let's graph  f(x) = x*sin(10x), y = x and   y = -x  all on the same graph...

xxsin10x.gif (6141 bytes)

(y=x and y= -x are the thicker lines.)

We see that our sine graph is, indeed, bounded between them! Pretty cool, huh?

In the function

sinarr.gif (688 bytes)

this x is called the damping factor.

Let's try something more complicated.

What would the graph of  f(x) = (log x)*cos(15x) look like?

Well,   g(x) = cos(15x)  looks like:

cos15x.gif (5014 bytes)
(graphing window: x on [-.235, 7], y on [-1.5, 1.5])

Our damping factor is  log x. So,  g(x) = cos(15x) is going to get bounded by 
y = log x  and  y = -log x . (Note that g(x)=cos(15x) is also going to get restricted to the domain of y=log(x) which is x>0.)

Let's see what it will look like!

lgcos15x.gif (3816 bytes)
(graphing window: x on [-.235, 7], y on [-1.5, 1.5])

It sure looks like it's bounded by those logs... Let's graph them to be sure!

llgcs15x.gif (4075 bytes)

Yep! (Looks like the messy end of a fish, doesn't it?)

Now, how are damping factors used? Well, one way they are used is in the only thing as cool as math: MUSIC! 

To hear the music on this site, you'll need to download a free Real Audio Player! REALAUDIO.GIF (1359 bytes)

 

rednote.gif (1817 bytes) Music is an intricate combination of sine waves. This is what 5 seconds of  Autumn Fell looks like:

af1.gif (6549 bytes)

If we zoom in to look at just .07 seconds (7/100 of a second) of this song, we find something that looks just like a messy trig function!

af2.gif (7641 bytes)

It looks similar to something I can graph on my calculator...

csine2.gif (773 bytes)

sinecmb1.gif (4468 bytes)
(Graphing window: x on [-15.58, 15.58], y on [-4, 4])

So, where do damping functions come in? They're used at the end of the song, where the sound "fades out!"

When the song's final mix is done, the producer decides if and how the song should be faded out. The process is all done by computer! The software used, SAW Plus in this case, gives the engineer three main choices:

1) Linear Fade
2) Logarithmic Fade
3) Inverse Logarithmic Fade
    (Remember that inverse logs are just exponentials!)

This is how the end of Autumn Fell looks and sounds before it is faded:

af1.gif (6549 bytes) speaker1.gif (364 bytes) press to listen

Inverse Logarithmic Fades:

Here's an example of an inverse logarithmic fade.

af3.gif (11870 bytes)

We can see the effects of the fade in the next picture.

af3a.gif (6127 bytes)

Here are two examples of possible damping factors for this type of fade:

  and  

But this type of fade isn't used very often. The software doesn't give the engineer control over the rate of the fade. As you can see, it fades out pretty abruptly!

Linear Fades:

Below are two examples of Autumn Fell being linearly faded at different rates. Notice that the damping factor with the steeper slope fades out a lot faster. Engineers can adjust the slope so that the fade sounds just right. Listen to the difference!

af5.gif (11986 bytes) speaker1.gif (364 bytes)

 

af4.gif (11547 bytes) speaker1.gif (364 bytes)

Logarithmic Fades:

This type of fading is often a favorite of engineers because of the natural sound it produces. Here's what Autumn Fell sounds like with a logarithmic fade. Can you tell the difference? See if you can by comparing it to the slower linear fade. You can hear the music in the log fade a lot longer.

af6.gif (11416 bytes) speaker1.gif (364 bytes)

Can you figure out the mathematics behind the logarithmic fade? How would we graph an example?

Let's do some reviewing and exploring.

If we graph   , log x, base 2  and  log x, base 3/2 ...

threelog.gif (3072 bytes)
(Graphing window: x on [-2.58, 13.98], y on [-2, 5.1])

Notice that the smaller the base (3/2, 2 and 10 in our example), the steeper the graph.

Now, how can we get our logs to flip over the y-axis like they are in our fades? By using f(-x) instead of f(x)!

Let's check by graphing 

log2negx.gif (2474 bytes)
(Graphing window: x on [-13.98, 2.38], y on [-2, 5.1])

Getting back to our logarithmic fades... When the engineer decides how fast the song should fade, the program adjusts the base of the logarithm!

Music is just applied mathematics...
A good musician is an applied mathematician!

Eddie Van Halen? Math geek? You be the judge!

Questions to be pondered:

Since music is made up of combinations of sine waves, what instrument do you think can produce a graph that is the closest to the standard f(x)=sin(x)? (Another way to think about it: What instrument produces the purest tone?)

 

What instrument do you think would produce the most complex sine waves?
Since music is made up of combinations of sine waves, what instrument do you think can produce a graph the closest to the standard f(x)=sin(x)? (Another way to think about it: What instrument produces the purest tone?

The instrument that produces the purest tone (a wave closest to the standard sine wave) is the flute!

af7.gif (3277 bytes)     speaker1.gif (364 bytes)

Here's a zoom-in so you can see what's really going on!

af7z.gif (6163 bytes)

Note: If you consider the range of instruments used in Hillbilly music...... then the bottle really gives the purest tone! Check it out!

af8.gif (2786 bytes)
(Please ignore the fact that this picture says "flute" -
It's really a bottle!)

    speaker1.gif (364 bytes)

If we zoom-in, we can see what a perfect sine wave blowing into a bottle can produce!

af8z.gif (6505 bytes)

What instrument do you think would produce the most complex sine waves?

The instrument that produces the most complex sine wave is the cymbal! (Or the human voice, if you don't consider a cymbal an instrument.)

af9.gif (5452 bytes)     speaker1.gif (364 bytes)

Look how messy this zoom-in is!

af9z.gif (7876 bytes)

Here's a great related site to check out: How CD's Work

 The printing, distribution and/or downloading of these lessons is strictly prohibited. 

lines

       

.....::::::::::::::: 
HELP SUPPORT COOLMATH  :::::::::::::::.....

:::::::  link to us   :::::::   advertise with us  :::::::
 
 ||  about us  ||  safe surfing  ||  privacy policy  ||  terms of use  ||  copyrights & fair use  ||
||  math  ||  math for ages 13-100  ||  math for kids  ||  math for teachers  ||  math for parents  ||  math games  ||  algebra  ||
||  math help lessons  ||  math practice problems  ||  online math dictionary  ||  algebra books  ||  math anxiety  ||
||  science  ||  free online games and puzzles  ||  continuing teacher education  ||

Thanks for visiting Coolmath.com
© 1997-2007 Coolmath.com, Inc.