<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>aubio: temporal/test-filter.c</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], }); </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">aubio  <span id="projectnumber">0.4.2~alpha</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">temporal/test-filter.c</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><span class="preprocessor">#include <<a class="code" href="aubio_8h.html">aubio.h</a>></span></div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main (<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line"> <a class="code" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> win_s = 16; <span class="comment">// window size</span></div><div class="line"> <a class="code" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> impulse_at = win_s / 2;</div><div class="line"> <a name="_a0"></a><a class="code" href="structfvec__t.html">fvec_t</a> *in = <a name="a1"></a><a class="code" href="fvec_8h.html#aa9bc0906651523429a4ebf7b4342fe73">new_fvec</a> (win_s); <span class="comment">// input buffer</span></div><div class="line"> <a class="code" href="structfvec__t.html">fvec_t</a> *out = <a class="code" href="fvec_8h.html#aa9bc0906651523429a4ebf7b4342fe73">new_fvec</a> (win_s); <span class="comment">// input buffer</span></div><div class="line"></div><div class="line"> <a class="code" href="filter_8h.html#a49b09d27ea1ef7b06d9948048143f67a">aubio_filter_t</a> *o = <a name="a2"></a><a class="code" href="c__weighting_8h.html#ac2de2f91d6934b96f7dcbabe8e8e18c3">new_aubio_filter_c_weighting</a> (44100);</div><div class="line"> in-><a name="a3"></a><a class="code" href="structfvec__t.html#a14bf045394eb718428b8cd64573caa54">data</a>[impulse_at] = 0.5;</div><div class="line"> <a name="a4"></a><a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (in);</div><div class="line"> <a name="a5"></a><a class="code" href="filter_8h.html#aca218f7701ad142eb6c0ce95b2d1c49b">aubio_filter_do</a> (o, in);</div><div class="line"> <a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (in);</div><div class="line"> <a name="a6"></a><a class="code" href="filter_8h.html#a55e4be86dd74d9eddfe544bddc94e482">del_aubio_filter</a> (o);</div><div class="line"></div><div class="line"> o = <a name="a7"></a><a class="code" href="a__weighting_8h.html#a99c12d2c155e374aa55f4c9bea923ef5">new_aubio_filter_a_weighting</a> (32000);</div><div class="line"> in-><a class="code" href="structfvec__t.html#a14bf045394eb718428b8cd64573caa54">data</a>[impulse_at] = 0.5;</div><div class="line"> <a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (in);</div><div class="line"> <a name="a8"></a><a class="code" href="filter_8h.html#af206da6d4cb1ba6fd82b6cd1bc8eaa3f">aubio_filter_do_outplace</a> (o, in, out);</div><div class="line"> <a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (out);</div><div class="line"></div><div class="line"> <a name="a9"></a><a class="code" href="a__weighting_8h.html#a97f5c911472782ae7db077353de7063a">aubio_filter_set_a_weighting</a> (o, 32000);</div><div class="line"> in-><a class="code" href="structfvec__t.html#a14bf045394eb718428b8cd64573caa54">data</a>[impulse_at] = 0.5;</div><div class="line"> <a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (in);</div><div class="line"> <a name="a10"></a><a class="code" href="filter_8h.html#acae88254d736d3d02c81ef48ac64b108">aubio_filter_do_filtfilt</a> (o, in, out);</div><div class="line"> <a class="code" href="fvec_8h.html#a2b2b47e5243d628a0995dde2d97e3433">fvec_print</a> (out);</div><div class="line"></div><div class="line"> <a name="a11"></a><a class="code" href="fvec_8h.html#a86fad6d27aad91c910d1b48195922cb9">del_fvec</a> (in);</div><div class="line"> <a class="code" href="fvec_8h.html#a86fad6d27aad91c910d1b48195922cb9">del_fvec</a> (out);</div><div class="line"> <a class="code" href="filter_8h.html#a55e4be86dd74d9eddfe544bddc94e482">del_aubio_filter</a> (o);</div><div class="line"> <a name="a12"></a><a class="code" href="musicutils_8h.html#a2b5d813f8d70b69add6f4811a68c9424">aubio_cleanup</a> ();</div><div class="line"></div><div class="line"> <span class="keywordflow">return</span> 0;</div><div class="line">}</div></div><!-- fragment --> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>