<!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/wavetable.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">wavetable.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Wavetable synthesis. <a href="#details">More...</a></p> <p><a href="wavetable_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:abbf3d07fc6bfec0ababa1e36fa4d2953"><td class="memItemLeft" align="right" valign="top"><a id="abbf3d07fc6bfec0ababa1e36fa4d2953"></a> typedef struct _aubio_wavetable_t </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a></td></tr> <tr class="memdesc:abbf3d07fc6bfec0ababa1e36fa4d2953"><td class="mdescLeft"> </td><td class="mdescRight">wavetable object <br /></td></tr> <tr class="separator:abbf3d07fc6bfec0ababa1e36fa4d2953"><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:ae1433850799b37ef1c13772b8a5d332b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b">new_aubio_wavetable</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:ae1433850799b37ef1c13772b8a5d332b"><td class="mdescLeft"> </td><td class="mdescRight">create new wavetable object <a href="#ae1433850799b37ef1c13772b8a5d332b">More...</a><br /></td></tr> <tr class="separator:ae1433850799b37ef1c13772b8a5d332b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a058472fe69cf20d7997070e352095d5a"><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="wavetable_8h.html#a058472fe69cf20d7997070e352095d5a">aubio_wavetable_load</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o, <a class="el" href="types_8h.html#a40bb5262bf908c328fbcfbe5d29d0201">char_t</a> *uri)</td></tr> <tr class="memdesc:a058472fe69cf20d7997070e352095d5a"><td class="mdescLeft"> </td><td class="mdescRight">load source in wavetable <a href="#a058472fe69cf20d7997070e352095d5a">More...</a><br /></td></tr> <tr class="separator:a058472fe69cf20d7997070e352095d5a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acb766dead872e20b256117a03a0a54ce"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#acb766dead872e20b256117a03a0a54ce">aubio_wavetable_do</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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:acb766dead872e20b256117a03a0a54ce"><td class="mdescLeft"> </td><td class="mdescRight">process wavetable function <a href="#acb766dead872e20b256117a03a0a54ce">More...</a><br /></td></tr> <tr class="separator:acb766dead872e20b256117a03a0a54ce"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab05e12da1e27433e1369f71e513f72a7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#ab05e12da1e27433e1369f71e513f72a7">aubio_wavetable_do_multi</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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:ab05e12da1e27433e1369f71e513f72a7"><td class="mdescLeft"> </td><td class="mdescRight">process wavetable function, multiple channels <a href="#ab05e12da1e27433e1369f71e513f72a7">More...</a><br /></td></tr> <tr class="separator:ab05e12da1e27433e1369f71e513f72a7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1174a3cb4400aab2d1781893de1462a5"><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="wavetable_8h.html#a1174a3cb4400aab2d1781893de1462a5">aubio_wavetable_get_playing</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:a1174a3cb4400aab2d1781893de1462a5"><td class="mdescLeft"> </td><td class="mdescRight">get current playing state <a href="#a1174a3cb4400aab2d1781893de1462a5">More...</a><br /></td></tr> <tr class="separator:a1174a3cb4400aab2d1781893de1462a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a63337f308a282f11b297036cfc094329"><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="wavetable_8h.html#a63337f308a282f11b297036cfc094329">aubio_wavetable_set_playing</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o, <a class="el" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> playing)</td></tr> <tr class="memdesc:a63337f308a282f11b297036cfc094329"><td class="mdescLeft"> </td><td class="mdescRight">set current playing state <a href="#a63337f308a282f11b297036cfc094329">More...</a><br /></td></tr> <tr class="separator:a63337f308a282f11b297036cfc094329"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeb76a5d89b91b509b297ea480a1b7b2a"><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="wavetable_8h.html#aeb76a5d89b91b509b297ea480a1b7b2a">aubio_wavetable_play</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:aeb76a5d89b91b509b297ea480a1b7b2a"><td class="mdescLeft"> </td><td class="mdescRight">play sample from start <a href="#aeb76a5d89b91b509b297ea480a1b7b2a">More...</a><br /></td></tr> <tr class="separator:aeb76a5d89b91b509b297ea480a1b7b2a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab39769ce70db186dd340cce48a20431f"><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="wavetable_8h.html#ab39769ce70db186dd340cce48a20431f">aubio_wavetable_stop</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:ab39769ce70db186dd340cce48a20431f"><td class="mdescLeft"> </td><td class="mdescRight">stop wavetable <a href="#ab39769ce70db186dd340cce48a20431f">More...</a><br /></td></tr> <tr class="separator:ab39769ce70db186dd340cce48a20431f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1f51931af1a13db4667173aca645d05d"><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="wavetable_8h.html#a1f51931af1a13db4667173aca645d05d">aubio_wavetable_set_freq</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o, <a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> freq)</td></tr> <tr class="memdesc:a1f51931af1a13db4667173aca645d05d"><td class="mdescLeft"> </td><td class="mdescRight">set wavetable frequency <a href="#a1f51931af1a13db4667173aca645d05d">More...</a><br /></td></tr> <tr class="separator:a1f51931af1a13db4667173aca645d05d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac42ed3634a98246c9546bc5455b9312b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#ac42ed3634a98246c9546bc5455b9312b">aubio_wavetable_get_freq</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:ac42ed3634a98246c9546bc5455b9312b"><td class="mdescLeft"> </td><td class="mdescRight">get wavetable frequency <a href="#ac42ed3634a98246c9546bc5455b9312b">More...</a><br /></td></tr> <tr class="separator:ac42ed3634a98246c9546bc5455b9312b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad2a1038f6748551e688fbe328ab14f90"><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="wavetable_8h.html#ad2a1038f6748551e688fbe328ab14f90">aubio_wavetable_set_amp</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o, <a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> amp)</td></tr> <tr class="memdesc:ad2a1038f6748551e688fbe328ab14f90"><td class="mdescLeft"> </td><td class="mdescRight">set wavetable amplitude <a href="#ad2a1038f6748551e688fbe328ab14f90">More...</a><br /></td></tr> <tr class="separator:ad2a1038f6748551e688fbe328ab14f90"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abfc75dd8d21445865c3dda967160c979"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#abfc75dd8d21445865c3dda967160c979">aubio_wavetable_get_amp</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:abfc75dd8d21445865c3dda967160c979"><td class="mdescLeft"> </td><td class="mdescRight">get wavetable amplitude <a href="#abfc75dd8d21445865c3dda967160c979">More...</a><br /></td></tr> <tr class="separator:abfc75dd8d21445865c3dda967160c979"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aef974c1cee018f29d8b61c12a430b63a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="wavetable_8h.html#aef974c1cee018f29d8b61c12a430b63a">del_aubio_wavetable</a> (<a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> *o)</td></tr> <tr class="memdesc:aef974c1cee018f29d8b61c12a430b63a"><td class="mdescLeft"> </td><td class="mdescRight">destroy aubio_wavetable_t object <a href="#aef974c1cee018f29d8b61c12a430b63a">More...</a><br /></td></tr> <tr class="separator:aef974c1cee018f29d8b61c12a430b63a"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Wavetable synthesis. </p> <p>This file creates a wavetable and plays it at different frequency.</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="wavetable_8h_source.html">wavetable.h</a>.</p> </div><h2 class="groupheader">Function Documentation</h2> <a id="acb766dead872e20b256117a03a0a54ce"></a> <h2 class="memtitle"><span class="permalink"><a href="#acb766dead872e20b256117a03a0a54ce">◆ </a></span>aubio_wavetable_do()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void aubio_wavetable_do </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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 wavetable function </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a> </td></tr> <tr><td class="paramname">input</td><td>input of the wavetable, to be added to the output </td></tr> <tr><td class="paramname">output</td><td>output of the wavetable</td></tr> </table> </dd> </dl> <p>This function adds the new samples from the playing wavetable 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="examples_2aubioonset_8c-example.html#a6">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiopitch_8c-example.html#a7">examples/aubiopitch.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a7">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a7">synth/test-wavetable.c</a>.</dd> </dl> </div> </div> <a id="ab05e12da1e27433e1369f71e513f72a7"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab05e12da1e27433e1369f71e513f72a7">◆ </a></span>aubio_wavetable_do_multi()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void aubio_wavetable_do_multi </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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 wavetable function, multiple channels </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a> </td></tr> <tr><td class="paramname">input</td><td>input of the wavetable, to be added to the output </td></tr> <tr><td class="paramname">output</td><td>output of the wavetable</td></tr> </table> </dd> </dl> <p>This function adds the new samples from the playing wavetable 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="abfc75dd8d21445865c3dda967160c979"></a> <h2 class="memtitle"><span class="permalink"><a href="#abfc75dd8d21445865c3dda967160c979">◆ </a></span>aubio_wavetable_get_amp()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> aubio_wavetable_get_amp </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>get wavetable amplitude </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>current amplitude </dd></dl> </div> </div> <a id="ac42ed3634a98246c9546bc5455b9312b"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac42ed3634a98246c9546bc5455b9312b">◆ </a></span>aubio_wavetable_get_freq()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> aubio_wavetable_get_freq </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>get wavetable frequency </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a></td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>current frequency, in Hz </dd></dl> </div> </div> <a id="a1174a3cb4400aab2d1781893de1462a5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1174a3cb4400aab2d1781893de1462a5">◆ </a></span>aubio_wavetable_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_wavetable_get_playing </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</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="a058472fe69cf20d7997070e352095d5a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a058472fe69cf20d7997070e352095d5a">◆ </a></span>aubio_wavetable_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_wavetable_load </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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 wavetable </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</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> </div> </div> <a id="aeb76a5d89b91b509b297ea480a1b7b2a"></a> <h2 class="memtitle"><span class="permalink"><a href="#aeb76a5d89b91b509b297ea480a1b7b2a">◆ </a></span>aubio_wavetable_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_wavetable_play </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</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="examples_2aubioonset_8c-example.html#a4">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiopitch_8c-example.html#a14">examples/aubiopitch.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a5">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a4">synth/test-wavetable.c</a>.</dd> </dl> </div> </div> <a id="ad2a1038f6748551e688fbe328ab14f90"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad2a1038f6748551e688fbe328ab14f90">◆ </a></span>aubio_wavetable_set_amp()</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_wavetable_set_amp </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> </td> <td class="paramname"><em>amp</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>set wavetable amplitude </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a> </td></tr> <tr><td class="paramname">amp</td><td>new amplitude value for the wavetable</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="examples_2aubiopitch_8c-example.html#a4">examples/aubiopitch.c</a>.</dd> </dl> </div> </div> <a id="a1f51931af1a13db4667173aca645d05d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1f51931af1a13db4667173aca645d05d">◆ </a></span>aubio_wavetable_set_freq()</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_wavetable_set_freq </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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#a5d7119468d78a1dc35cf76d0adfb1436">smpl_t</a> </td> <td class="paramname"><em>freq</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>set wavetable frequency </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a> </td></tr> <tr><td class="paramname">freq</td><td>new frequency value for the wavetable</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="examples_2aubioonset_8c-example.html#a13">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiopitch_8c-example.html#a6">examples/aubiopitch.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a13">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a5">synth/test-wavetable.c</a>.</dd> </dl> </div> </div> <a id="a63337f308a282f11b297036cfc094329"></a> <h2 class="memtitle"><span class="permalink"><a href="#a63337f308a282f11b297036cfc094329">◆ </a></span>aubio_wavetable_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_wavetable_set_playing </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_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>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</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="ab39769ce70db186dd340cce48a20431f"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab39769ce70db186dd340cce48a20431f">◆ </a></span>aubio_wavetable_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_wavetable_stop </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>stop wavetable </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</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="examples_2aubioonset_8c-example.html#a5">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a6">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a6">synth/test-wavetable.c</a>.</dd> </dl> </div> </div> <a id="aef974c1cee018f29d8b61c12a430b63a"></a> <h2 class="memtitle"><span class="permalink"><a href="#aef974c1cee018f29d8b61c12a430b63a">◆ </a></span>del_aubio_wavetable()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void del_aubio_wavetable </td> <td>(</td> <td class="paramtype"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a> * </td> <td class="paramname"><em>o</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>destroy aubio_wavetable_t object </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">o</td><td>wavetable, created by <a class="el" href="wavetable_8h.html#ae1433850799b37ef1c13772b8a5d332b" title="create new wavetable object ">new_aubio_wavetable()</a> </td></tr> </table> </dd> </dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="examples_2aubioonset_8c-example.html#a15">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiopitch_8c-example.html#a16">examples/aubiopitch.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a15">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a9">synth/test-wavetable.c</a>.</dd> </dl> </div> </div> <a id="ae1433850799b37ef1c13772b8a5d332b"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae1433850799b37ef1c13772b8a5d332b">◆ </a></span>new_aubio_wavetable()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="wavetable_8h.html#abbf3d07fc6bfec0ababa1e36fa4d2953">aubio_wavetable_t</a>* new_aubio_wavetable </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 wavetable 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 wavetable </td></tr> <tr><td class="paramname">hop_size</td><td>the block size of the new wavetable</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the newly created aubio_wavetable_t </dd></dl> <dl><dt><b>Examples: </b></dt><dd><a class="el" href="examples_2aubioonset_8c-example.html#a12">examples/aubioonset.c</a>, <a class="el" href="examples_2aubiopitch_8c-example.html#a13">examples/aubiopitch.c</a>, <a class="el" href="examples_2aubiotrack_8c-example.html#a12">examples/aubiotrack.c</a>, and <a class="el" href="synth_2test-wavetable_8c-example.html#a3">synth/test-wavetable.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>