<!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: synth/sampler.h File Reference</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> <!-- 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 id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_0019dc9908b3707f2efe5d1d2e908f03.html">synth</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#typedef-members">Typedefs</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">sampler.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Load and play sound files. <a href="#details">More...</a></p> <p><a href="sampler_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a08afa960796433d1a38b7ef2e5f4ed57"><td class="memItemLeft" align="right" valign="top"><a id="a08afa960796433d1a38b7ef2e5f4ed57"></a> typedef struct _aubio_sampler_t </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a></td></tr> <tr class="memdesc:a08afa960796433d1a38b7ef2e5f4ed57"><td class="mdescLeft"> </td><td class="mdescRight">sampler object <br /></td></tr> <tr class="separator:a08afa960796433d1a38b7ef2e5f4ed57"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:add7d61740922f6a0c08d031d2e4426e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4">new_aubio_sampler</a> (<a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> samplerate, <a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> hop_size)</td></tr> <tr class="memdesc:add7d61740922f6a0c08d031d2e4426e4"><td class="mdescLeft"> </td><td class="mdescRight">create new sampler object <a href="#add7d61740922f6a0c08d031d2e4426e4">More...</a><br /></td></tr> <tr class="separator:add7d61740922f6a0c08d031d2e4426e4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa0e0ea3b389aba12204fc31f5ebf0a2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#aa0e0ea3b389aba12204fc31f5ebf0a2c">aubio_sampler_load</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o, <a class="el" href="types_8h.html#a40bb5262bf908c328fbcfbe5d29d0201">char_t</a> *uri)</td></tr> <tr class="memdesc:aa0e0ea3b389aba12204fc31f5ebf0a2c"><td class="mdescLeft"> </td><td class="mdescRight">load source in sampler <a href="#aa0e0ea3b389aba12204fc31f5ebf0a2c">More...</a><br /></td></tr> <tr class="separator:aa0e0ea3b389aba12204fc31f5ebf0a2c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a40215a747d841e551ebcb7f34e8a6c32"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a40215a747d841e551ebcb7f34e8a6c32">aubio_sampler_do</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o, <a class="el" href="structfvec__t.html">fvec_t</a> *input, <a class="el" href="structfvec__t.html">fvec_t</a> *output)</td></tr> <tr class="memdesc:a40215a747d841e551ebcb7f34e8a6c32"><td class="mdescLeft"> </td><td class="mdescRight">process sampler function <a href="#a40215a747d841e551ebcb7f34e8a6c32">More...</a><br /></td></tr> <tr class="separator:a40215a747d841e551ebcb7f34e8a6c32"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae5ee646e66a8e3ba7fb5325d4e043697"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#ae5ee646e66a8e3ba7fb5325d4e043697">aubio_sampler_do_multi</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o, <a class="el" href="structfmat__t.html">fmat_t</a> *input, <a class="el" href="structfmat__t.html">fmat_t</a> *output)</td></tr> <tr class="memdesc:ae5ee646e66a8e3ba7fb5325d4e043697"><td class="mdescLeft"> </td><td class="mdescRight">process sampler function, multiple channels <a href="#ae5ee646e66a8e3ba7fb5325d4e043697">More...</a><br /></td></tr> <tr class="separator:ae5ee646e66a8e3ba7fb5325d4e043697"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a61b5867df1614e29e4c18f4a1292801b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a61b5867df1614e29e4c18f4a1292801b">aubio_sampler_get_playing</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o)</td></tr> <tr class="memdesc:a61b5867df1614e29e4c18f4a1292801b"><td class="mdescLeft"> </td><td class="mdescRight">get current playing state <a href="#a61b5867df1614e29e4c18f4a1292801b">More...</a><br /></td></tr> <tr class="separator:a61b5867df1614e29e4c18f4a1292801b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9cac45abb40d8eb103b3f723d720e074"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a9cac45abb40d8eb103b3f723d720e074">aubio_sampler_set_playing</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o, <a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> playing)</td></tr> <tr class="memdesc:a9cac45abb40d8eb103b3f723d720e074"><td class="mdescLeft"> </td><td class="mdescRight">set current playing state <a href="#a9cac45abb40d8eb103b3f723d720e074">More...</a><br /></td></tr> <tr class="separator:a9cac45abb40d8eb103b3f723d720e074"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a350c1e25e8f313edb87715e0ddd7299b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a350c1e25e8f313edb87715e0ddd7299b">aubio_sampler_play</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o)</td></tr> <tr class="memdesc:a350c1e25e8f313edb87715e0ddd7299b"><td class="mdescLeft"> </td><td class="mdescRight">play sample from start <a href="#a350c1e25e8f313edb87715e0ddd7299b">More...</a><br /></td></tr> <tr class="separator:a350c1e25e8f313edb87715e0ddd7299b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a69218d332bc9d59cdda976f24708e6b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a69218d332bc9d59cdda976f24708e6b8">aubio_sampler_stop</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o)</td></tr> <tr class="memdesc:a69218d332bc9d59cdda976f24708e6b8"><td class="mdescLeft"> </td><td class="mdescRight">stop sample <a href="#a69218d332bc9d59cdda976f24708e6b8">More...</a><br /></td></tr> <tr class="separator:a69218d332bc9d59cdda976f24708e6b8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a46ee35372a4c87ca65227986309c4dee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sampler_8h.html#a46ee35372a4c87ca65227986309c4dee">del_aubio_sampler</a> (<a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> *o)</td></tr> <tr class="memdesc:a46ee35372a4c87ca65227986309c4dee"><td class="mdescLeft"> </td><td class="mdescRight">destroy <a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57" title="sampler object ">aubio_sampler_t</a> object <a href="#a46ee35372a4c87ca65227986309c4dee">More...</a><br /></td></tr> <tr class="separator:a46ee35372a4c87ca65227986309c4dee"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Load and play sound files. </p> <p>This file loads a sample and gets ready to play it.</p> <p>The <code>_do</code> function adds the new samples to the input, and write the result as the output. </p> <p class="definition">Definition in file <a class="el" href="sampler_8h_source.html">sampler.h</a>.</p> </div><h2 class="groupheader">Function Documentation</h2> <a id="a40215a747d841e551ebcb7f34e8a6c32"></a> <h2 class="memtitle"><span class="permalink"><a href="#a40215a747d841e551ebcb7f34e8a6c32">◆ </a></span>aubio_sampler_do()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void aubio_sampler_do </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfvec__t.html">fvec_t</a> * </td> <td class="paramname"><em>input</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfvec__t.html">fvec_t</a> * </td> <td class="paramname"><em>output</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>process sampler function </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a> </td></tr> <tr><td class="paramname">input</td><td>input of the sampler, to be added to the output </td></tr> <tr><td class="paramname">output</td><td>output of the sampler</td></tr> </table> </dd> </dl> <p>This function adds the new samples from the playing source to the output.</p> <p>If <code>input</code> is not NULL and different from <code>output</code>, then the samples from <code>input</code> are added to the output. </p> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a10">synth/test-sampler.c</a>.</dd> </dl> </div> </div> <a id="ae5ee646e66a8e3ba7fb5325d4e043697"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae5ee646e66a8e3ba7fb5325d4e043697">◆ </a></span>aubio_sampler_do_multi()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void aubio_sampler_do_multi </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfmat__t.html">fmat_t</a> * </td> <td class="paramname"><em>input</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfmat__t.html">fmat_t</a> * </td> <td class="paramname"><em>output</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>process sampler function, multiple channels </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a> </td></tr> <tr><td class="paramname">input</td><td>input of the sampler, to be added to the output </td></tr> <tr><td class="paramname">output</td><td>output of the sampler</td></tr> </table> </dd> </dl> <p>This function adds the new samples from the playing source to the output.</p> <p>If <code>input</code> is not NULL and different from <code>output</code>, then the samples from <code>input</code> are added to the output. </p> </div> </div> <a id="a61b5867df1614e29e4c18f4a1292801b"></a> <h2 class="memtitle"><span class="permalink"><a href="#a61b5867df1614e29e4c18f4a1292801b">◆ </a></span>aubio_sampler_get_playing()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> aubio_sampler_get_playing </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>get current playing state </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if not playing, 1 if playing </dd></dl> </div> </div> <a id="aa0e0ea3b389aba12204fc31f5ebf0a2c"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa0e0ea3b389aba12204fc31f5ebf0a2c">◆ </a></span>aubio_sampler_load()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> aubio_sampler_load </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a40bb5262bf908c328fbcfbe5d29d0201">char_t</a> * </td> <td class="paramname"><em>uri</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>load source in sampler </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a> </td></tr> <tr><td class="paramname">uri</td><td>the uri of the source to load</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero otherwise </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a6">synth/test-sampler.c</a>.</dd> </dl> </div> </div> <a id="a350c1e25e8f313edb87715e0ddd7299b"></a> <h2 class="memtitle"><span class="permalink"><a href="#a350c1e25e8f313edb87715e0ddd7299b">◆ </a></span>aubio_sampler_play()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> aubio_sampler_play </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>play sample from start </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful, 1 otherwise </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a8">synth/test-sampler.c</a>.</dd> </dl> </div> </div> <a id="a9cac45abb40d8eb103b3f723d720e074"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9cac45abb40d8eb103b3f723d720e074">◆ </a></span>aubio_sampler_set_playing()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> aubio_sampler_set_playing </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td> <td class="paramname"><em>playing</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>set current playing state </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a> </td></tr> <tr><td class="paramname">playing</td><td>0 for not playing, 1 for playing</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful, 1 otherwise </dd></dl> </div> </div> <a id="a69218d332bc9d59cdda976f24708e6b8"></a> <h2 class="memtitle"><span class="permalink"><a href="#a69218d332bc9d59cdda976f24708e6b8">◆ </a></span>aubio_sampler_stop()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> aubio_sampler_stop </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>stop sample </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful, 1 otherwise </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a9">synth/test-sampler.c</a>.</dd> </dl> </div> </div> <a id="a46ee35372a4c87ca65227986309c4dee"></a> <h2 class="memtitle"><span class="permalink"><a href="#a46ee35372a4c87ca65227986309c4dee">◆ </a></span>del_aubio_sampler()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void del_aubio_sampler </td> <td>(</td> <td class="paramtype"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>destroy <a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57" title="sampler object ">aubio_sampler_t</a> object </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>sampler, created by <a class="el" href="sampler_8h.html#add7d61740922f6a0c08d031d2e4426e4" title="create new sampler object ">new_aubio_sampler()</a> </td></tr> </table> </dd> </dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a12">synth/test-sampler.c</a>.</dd> </dl> </div> </div> <a id="add7d61740922f6a0c08d031d2e4426e4"></a> <h2 class="memtitle"><span class="permalink"><a href="#add7d61740922f6a0c08d031d2e4426e4">◆ </a></span>new_aubio_sampler()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57">aubio_sampler_t</a>* new_aubio_sampler </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td> <td class="paramname"><em>samplerate</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> </td> <td class="paramname"><em>hop_size</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>create new sampler object </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">samplerate</td><td>the sampling rate of the new sampler </td></tr> <tr><td class="paramname">hop_size</td><td>the block size of the new sampler</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the newly created <a class="el" href="sampler_8h.html#a08afa960796433d1a38b7ef2e5f4ed57" title="sampler object ">aubio_sampler_t</a> </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="synth_2test-sampler_8c-example.html#a5">synth/test-sampler.c</a>.</dd> </dl> </div> </div> </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>