<?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-17.2422">
  <name>Distortion Results</name>
  <metadata>
  <md:version>1.2</md:version>
  <md:created>2003/12/17 12:24:22 US/Central</md:created>
  <md:revised>2003/12/17 16:01:22.226 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>result</md:keyword>
    <md:keyword>distortion</md:keyword>
    <md:keyword>spectrogram</md:keyword>
    <md:keyword>harmonics</md:keyword>
    <md:keyword>MATLAB</md:keyword>
    <md:keyword>noise</md:keyword>
  </md:keywordlist>

  <md:abstract>After brainstorming and organizing our gameplan, we attack our problems with our method and create a MATLAB problem that gives us great distortion, according to our taste.</md:abstract>
</metadata>

  <content>
    <section id="s1">
      <name>The Distortion</name>
      <para id="s1p1">
	We start off with our <code type="inline">wav</code> file. The very first
	thing we need to do with this file is convert it into a vector
	format that matlab using <code type="inline">wavread</code><note type="footnote">For help in using this function, use MATLAB's
	<code type="inline">help</code> command.</note>.  After converting the the
	file to a vector, we play around with the coefficients and
	powers, making sure each power is less than one.  To check out
	the sound of each try, <code type="inline">soundsc</code> is a helpful
	function.  Our group found 10*note.5+10*note.9+1*note

	<m:math>
	  <m:apply>
	    <m:eq/>
	    <m:ci>y</m:ci>
	    <m:apply>
	      <m:plus/>
	      <m:apply>
		<m:times/>
		<m:cn>10</m:cn>
		<m:apply>
		  <m:power/>
		  <m:ci>x</m:ci>
		  <m:cn>.5</m:cn>
		</m:apply>
	      </m:apply>
	      <m:apply>
		<m:times/>
		<m:cn>10</m:cn>
		<m:apply>
		  <m:power/>
		  <m:ci>x</m:ci>
		  <m:cn>.9</m:cn>
		</m:apply>
	      </m:apply>
	      <m:ci>x</m:ci>
	    </m:apply>
	  </m:apply>
	</m:math>, where <m:math><m:ci>y</m:ci> </m:math> is the
	distorted song and <m:math><m:ci>x</m:ci> </m:math> is the
	original song, to be our favorite.
      </para>
    </section>
    <section id="s2">
      <name>Getting Rid of the Noise</name>
      <para id="s2p1">
	To get rid of all the noise, our group created a simple <code type="inline">.m</code> <link src="RemoveNoise.m">file</link>:
	The first part of the code is the band pass filter, then
	second utilizes the FFT.
      </para>
    </section>
	
		  
  </content>
  
</document>
