<?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-10.3030">
  <name>Music Classification by Genre: Beat Detection</name>
  <metadata>
  <md:version>1.2</md:version>
  <md:created>2003/12/10 18:30:30 US/Central</md:created>
  <md:revised>2003/12/10 21:15:11.263 US/Central</md:revised>
  <md:authorlist>
    <md:author id="mitali">
      <md:firstname>Mitali</md:firstname>
      
      <md:surname>Banerjee</md:surname>
      <md:email>mitali@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="mitali">
      <md:firstname>Mitali</md:firstname>
      
      <md:surname>Banerjee</md:surname>
      <md:email>mitali@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>beat</md:keyword>
    <md:keyword>detection</md:keyword>
    <md:keyword>music</md:keyword>
    <md:keyword>classification</md:keyword>
  </md:keywordlist>

  <md:abstract>Tempo variation within a song</md:abstract>
</metadata>

  <content>
    <para id="beat1">
Beat detection emphasizes the sudden impulses of sound in the song and then finds the fundamental period at which these impulses appear. It convolves a signal with itself and finds frequency peaks.  Then it measures the distance between these frequency peaks.  This is done by breaking the signal into frequency bands, extracting the envelope of these frequency-banded signals, differentiating them to emphasize sudden changes in sound, and running the signals through a filter to choose the highest energy result as the tempo. Variation in tempo, found by detecting beat in different windows of the song, helps determine musical genres.
    </para>  

    <para id="beat2">
The filter can only separate rap from all other genres effectively, because it has the steadiest backbeat, consistent across the genre!  Classical and jazz have too much variability, which makes sense, considering that each piece is often long and divided into sections.
    </para> 

<figure id="beatdetect">
  <media type="image/jpeg" src="beatdetection.gif"/>
</figure> 

<figure id="beatsd">
  <media type="image/jpeg" src="sdbeat.gif"/>
</figure> 

  </content>
  
</document>
