<?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="m11010">
  <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">CD to DAT Conversion</name>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2.2</md:version>
  <md:created xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/01/15</md:created>
  <md:revised xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2005/09/20 15:06:18.206 GMT-5</md:revised>
  <md:authorlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
      <md:author xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="schniter">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Phil</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Schniter</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">schniter@ee.eng.ohio-state.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="jago">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Adan</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Galvan</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">jago@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">CD</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">DAT</md:keyword>
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">rate conversion</md:keyword>
  </md:keywordlist>

  <md:abstract xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/>
</metadata>


  <content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

    <section 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="sec3">
      <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Example: CD to DAT rate conversion</name>

      <para 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="para3">
	Digital audio signals stored on compact digital discs (CDs)
	are sampled at 
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>44.1</m:cn>
	    <m:ci>kHz</m:ci>
	  </m:apply>
	</m:math>, while those stored on digital audio tapes (DATs)
	are sampled at 
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>48</m:cn>
	    <m:ci>kHz</m:ci>
	  </m:apply>
	</m:math>. Conversion from CD to DAT requires an exchange rate of

	<m:math display="block">
	  <m:apply>
	    <m:eq/>
	    <m:ci>Q</m:ci>
	    <m:apply>
	      <m:divide/>
	      <m:cn>48000</m:cn>
	      <m:cn>44100</m:cn>
	    </m:apply>
	    <m:apply>
	      <m:divide/>
	      <m:cn>160</m:cn>
	      <m:cn>147</m:cn>
	    </m:apply>
	  </m:apply>
	</m:math>

	Assuming that the audio signal is bandlimited to 
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>20</m:cn>
	    <m:ci>kHz</m:ci>
	  </m:apply>
	</m:math>, we design our master lowpass filter with transition
	bands

	<m:math display="block">
	  <m:apply>
	    <m:forall/>
	    <m:bvar><m:ci>k</m:ci></m:bvar>
	    <m:apply>
	      <m:interval closure="closed-open">
		<m:apply>
		  <m:times/>
		  <m:apply>
		    <m:plus/>
		    <m:apply>
		      <m:times/>
		      <m:cn>2</m:cn>
		      <m:ci>k</m:ci>
		    </m:apply>
		    <m:apply>
		      <m:divide/>
		      <m:cn>20</m:cn>
		      <m:cn>22.05</m:cn>
		    </m:apply>
		  </m:apply>
		  <m:apply>
		    <m:divide/>
		    <m:pi/>
		    <m:cn>160</m:cn>
		  </m:apply>
		</m:apply>
		<m:apply>
		  <m:times/>
		  <m:apply>
		    <m:minus/>
		    <m:apply>
		      <m:times/>
		      <m:cn>2</m:cn>
		      <m:apply>
			<m:plus/>
			<m:ci>k</m:ci>
			<m:cn>1</m:cn>
		      </m:apply>
		    </m:apply>
		    <m:apply>
		      <m:divide/>
		      <m:cn>20</m:cn>
		      <m:cn>22.05</m:cn>
		    </m:apply>
		  </m:apply>
		  <m:apply>
		    <m:divide/>
		    <m:pi/>
		    <m:cn>160</m:cn>
		  </m:apply>
		</m:apply>
	      </m:interval>
	    </m:apply>
	    <m:condition>
	      <m:apply>
		<m:in/>
		<m:ci>k</m:ci>
		<m:integers/>
	      </m:apply>
	    </m:condition>
	  </m:apply>
	</m:math>

	Keeping the passband and stopband ripple levels below
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>-96</m:cn>
	    <m:ci>dB</m:ci>
	  </m:apply>
	</m:math> requires a filter with a length
	<m:math>
	  <m:apply>
	    <m:approx/>
	    <m:ci>N</m:ci>
	    <m:cn>10000</m:cn>
	  </m:apply>
	</m:math>, implying that the standard polyphase resampler will
	require about
	<m:math>
	  <m:apply>
	    <m:eq/>
	    <m:apply>
	      <m:times/>
	      <m:ci>N</m:ci>
	      <m:ci>M</m:ci>
	    </m:apply>
	    <m:apply>
	      <m:times/>
	      <m:cn>1.5</m:cn>
	      <m:ci>million</m:ci>
	    </m:apply>
	  </m:apply>
	</m:math>
	multiplication per output, or 
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>70</m:cn>
	    <m:ci>billion</m:ci>
	  </m:apply>
	</m:math> multiplications per second! If the equivalent
	polyphase implementation is used instead, we require only
	<m:math>
	  <m:apply>
	    <m:approx/>
	    <m:apply>
	      <m:divide/>
	      <m:ci>N</m:ci>
	      <m:ci>L</m:ci>
	    </m:apply>
	    <m:cn>62</m:cn>
	  </m:apply>
	</m:math>
	multiplies per output, or
	<m:math>
	  <m:apply>
	    <m:times/>
	    <m:cn>3</m:cn>
	    <m:ci>million</m:ci>
	  </m:apply>
	</m:math>
	multiplications per second.
      </para>

    </section>
  </content>
  
</document>
