<?xml version="1.0" encoding="utf-8"?>
<!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="id11824888">
  <name>Implementation: Code</name>
  <metadata>
  <md:version>1.1</md:version>
  <md:created>2007/12/19 17:21:52.165 US/Central</md:created>
  <md:revised>2007/12/19 20:40:15.952 US/Central</md:revised>
  <md:authorlist>
      <md:author id="tanwee">
      <md:firstname>Tanwee</md:firstname>
      
      <md:surname>Misra</md:surname>
      <md:email>tanwee.misra@rice.edu</md:email>
    </md:author>
      <md:author id="kriti">
      <md:firstname>Kriti</md:firstname>
      
      <md:surname>Charan</md:surname>
      <md:email>kriti@rice.edu</md:email>
    </md:author>
      <md:author id="jchow">
      <md:firstname>Janice</md:firstname>
      
      <md:surname>Chow</md:surname>
      <md:email>jchow@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="tanwee">
      <md:firstname>Tanwee</md:firstname>
      
      <md:surname>Misra</md:surname>
      <md:email>tanwee.misra@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="kriti">
      <md:firstname>Kriti</md:firstname>
      
      <md:surname>Charan</md:surname>
      <md:email>kriti@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="jchow">
      <md:firstname>Janice</md:firstname>
      
      <md:surname>Chow</md:surname>
      <md:email>jchow@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>code</md:keyword>
    <md:keyword>drums</md:keyword>
    <md:keyword>matlab</md:keyword>
    <md:keyword>virtual</md:keyword>
  </md:keywordlist>

  <md:abstract>This module contains a description of and a link to the functions we created in Matlab to implement the drum kit.</md:abstract>
</metadata>
  <content>
    <para id="id10996534">To get a better understanding for how we implemented the drum kit, you might want to have a look at our Matlab code.</para>
    <para id="id4616992">The code is available at: http://www.geocities.com/tapthat_virtualdrum/tapthat.html</para>
    <section id="id-912969917185">
      <name>Essential Files:</name>
      <para id="id8766950">proj_301.m- This is a wrapper function to set up video acquisition and collect frames from the camera. </para>
      <para id="id10264391">detectcolor.m- This function checks for presence of the LED.</para>
      <para id="id9578504">coord.m- This function finds the position of the LED in each frame, computes its velocity and hit-point.</para>
      <para id="id9413354">drumdet.m- This function determines which drum was hit.</para>
      <para id="id9506394">drumdisp.m- It produces the sound and displays the image corresponding to the drum that was hit.</para>
    </section>
    <section id="id-48075442919">
      <name>Files for debugging and setting up the system:</name>
      <para id="id11317367">adjust.m- This is mainly for the user’s convenience. It helps adjust the position of the user with respect to the drums.</para>
      <para id="id11857787">checkframe.m- This can be used to verify that the color detection works properly for a particular frame.</para>
    </section>
  </content>
</document>
