<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="Module.2003-12-15.0122">
  <name>Guitar Distortion: Basic Concepts</name>
  <metadata>
  <md:version>1.2</md:version>
  <md:created>2003/12/15 14:01:23 US/Central</md:created>
  <md:revised>2003/12/17 15:59:57.172 US/Central</md:revised>
  <md:authorlist>
    <md:author id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:author>
    <md:author id="jbuck">
      <md:firstname>Jason</md:firstname>
      <md:othername>A</md:othername>
      <md:surname>Buck</md:surname>
      <md:email>jbuck@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="mhusband">
      <md:firstname>Mark</md:firstname>
      <md:othername>S.</md:othername>
      <md:surname>Husband</md:surname>
      <md:email>mhusband@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="richb">
      <md:firstname>Richard</md:firstname>
      <md:othername>G.</md:othername>
      <md:surname>Baraniuk</md:surname>
      <md:email>richb@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="jbuck">
      <md:firstname>Jason</md:firstname>
      <md:othername>A</md:othername>
      <md:surname>Buck</md:surname>
      <md:email>jbuck@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>taylor series</md:keyword>
    <md:keyword>distortion</md:keyword>
    <md:keyword>FFT</md:keyword>
  </md:keywordlist>

  <md:abstract>In this module, we discuss the ideas behind distortion.</md:abstract>
</metadata>

  <content>
    <para id="p1">
      In trying to mimic an amplifier, one fact must be forefront in
      our brains: distortion is almost <emphasis>always</emphasis>
      nonlinear!  Therefore, instead of looking directly to
      convolution and linear transforms, we have to think a little bit
      first.  The first place we can look at is the Taylor series.
    </para>
    <section id="s1">
      <name>Taylor Series</name>
       <para id="s1p1">
	In calculus, we learned about the <term>Taylor
	Expansion</term> and the <term>Taylor Series</term>, also
	known as the <term>McLaurin Series</term>.  In essence, the
	expansion follows <cnxn target="s1p1e1"/>.
	<equation id="s1p1e1">
	  <m:math>
	    <m:apply>
	      <m:eq/>
	      <m:apply>
		<m:ci type="fn">f</m:ci>
		<m:ci>x</m:ci>
	      </m:apply>
	      <m:apply>
		<m:sum/>
		<m:bvar>
		  <m:ci>n</m:ci>
		</m:bvar>
		<m:lowlimit>
		  <m:cn>0</m:cn>
		</m:lowlimit>
		<m:uplimit>
		  <m:infinity/>
		</m:uplimit>
		<m:apply>
		  <m:times/>
		  <m:apply>
		    <m:divide/>
		    <m:apply>
		      <m:diff/>
		      <m:degree>
			<m:ci>n</m:ci>
		      </m:degree>
		      <m:apply>
			<m:ci type="fn">f</m:ci>
			<m:ci><m:msub>
			    <m:mi>x</m:mi>
			    <m:mn>0</m:mn>
			  </m:msub></m:ci>
		      </m:apply>
		    </m:apply>
		    <m:apply>
		      <m:factorial/>
		      <m:ci>n</m:ci>
		    </m:apply>
		  </m:apply>
		  <m:apply>
		    <m:power/>
		    <m:apply>
		      <m:minus/>
		      <m:ci>x</m:ci>
		      <m:ci><m:msub>
			  <m:mi>x</m:mi>
			  <m:mn>0</m:mn>
			</m:msub></m:ci>
		    </m:apply>
		    <m:ci>n</m:ci>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:apply>
	  </m:math>
	</equation>
	The Taylor Series is used to approximate a function.  As we
	know from the concepts behind signals, all signals are
	functions, and therefore we can use the Taylor Series to
	approximate a signal.  As we add more and more into the
	series, the approximation becomes closer and closer to the
	orginal signal.  However, for distortion, we <emphasis>do
	not</emphasis> want the original signal; instead, we want
	something grindy, something swanky to excite all of the
	rock-and-rollers out there.
      </para>
    </section>
    <section id="s2">
      <name>The DFT and the FFT</name>
      <para id="s2p1">
	Another idea used in analyzing distortion is the DFT.  Before
	and after using the Taylor Series to "play around" with the
	signal, the DFT can be used to analyze the new (or old) sound,
	seeing which harmonics are the most important.  MATLAB has a
	wonderful FFT function that allows for simple and fast DFT
	calculation.
      </para>
    </section>
  </content>
  
</document>
