<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" id="new">
  <name>Selecting the Effects Levels</name>
  <metadata>
  <md:version>1.1</md:version>
  <md:created>2006/12/20 15:26:24.055 US/Central</md:created>
  <md:revised>2006/12/20 16:26:02.788 US/Central</md:revised>
  <md:authorlist>
      <md:author id="robsmith">
      <md:firstname>Rob</md:firstname>
      
      <md:surname>Smith</md:surname>
      <md:email>rob@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="robsmith">
      <md:firstname>Rob</md:firstname>
      
      <md:surname>Smith</md:surname>
      <md:email>rob@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>distortion</md:keyword>
    <md:keyword>Effects</md:keyword>
    <md:keyword>Electric Guitar</md:keyword>
    <md:keyword>flange</md:keyword>
    <md:keyword>Guitar</md:keyword>
    <md:keyword>Guitar Effects</md:keyword>
    <md:keyword>reverb</md:keyword>
  </md:keywordlist>

  <md:abstract>This module talks about how the proper effects levels are selected from the provided data.</md:abstract>
</metadata>
  <content>
    <para id="element-803">Once the song has been processed by findChords and beatDetect, the proper effects levels need to selected.  The levels are calculated 6 times a second throughout the song using the values returned by the findChords and beatDetect methods.  </para><figure id="element-156"><name>Beats and Chords Over Song</name>   <media type="image/png" src="Beats and Chords.png"/>   <caption>This graph holds the beat and chord information for the length of Mixed Phantom and Riff.wav  This data is used to calculate the proper effects levels.</caption></figure><para id="delete_me">This beat and chord data is compared with presets in the program to determine the proper effects levels for each 1/6th of a second chunk of the song.  These presets are designed for heavy metal music, but they could be easily adapted for any other music style</para><table id="element-205">
<name>Effects Presets</name>
<tgroup cols="3"><tbody>
  <row>
    <entry/>
    <entry>Fast Playing</entry>
    <entry>Slow Playing</entry>
  </row>
  <row>
    <entry>Single Notes</entry>
    <entry>100% Distortion, No Reverb</entry>
    <entry>75% Distortion, 40% Reverb</entry>
  </row>
  <row>
    <entry>Chords</entry>
    <entry>75% Distortion, No Reverb</entry>
    <entry>60% Distortion, 100% Reverb</entry>
  </row>
</tbody>



</tgroup>
</table><para id="element-976">Flange is handled differently than the other two effects.  Flange is proportionally added whenever the beat count drops below two.  If the beat count is zero, the piece will have 100% flange applied.</para><para id="element-895">The effects quantity calculations produce a vector for each effect with values ranging for 0 to 1.  A value of 0 means do not apply any effect at all, while 1 means apply the maximum quantity of that effect.  </para><figure id="element-274"><name>Effect Levels Over Song</name>   <media type="image/png" src="Effects Plots 5.png"/>   <caption>The quantity of each effect to apply during each section of the song.</caption></figure><para id="element-466">These vectors are low pass filtered before the effects are applied to the song.  This guarantees a smooth and musical transition between different effects styles, and also prevents any momentary deviations in our detection algorithms from changing the output.  In practice, you don't want the effect style changing for every different note you hit, so our low pass filter does an excellent job of melding segments together to create a consistant level of effects for your current overall style of play.</para><figure id="element-644"><media type="file/wav" src="Mixed Phantom and Riff.wav"/>
      	  <caption>This is the sample file used for the graphs in this article without any effects applied.</caption></figure><figure id="element-484"><media type="file/wav" src="Mixed Phantom and Riff - Processed.wav"/>
      	  <caption>This is the sample file used for the graphs in this article with the effets applied by our program.</caption></figure>   
  </content>
  
</document>
