ref: c624f310c5db0a0b03235531a73d6248276c45d3
dir: /docs/leaf/group__tramp.html/
<!-- HTML header for doxygen 1.8.18--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>LEAF: tRamp</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> <script type="text/javascript" src="../js/iframeResizer.contentWindow.min.js"></script> <!-- <script src="/js/template.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/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function() { init_search(); }); /* @license-end */ </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="customdoxygen.css" rel="stylesheet" type="text/css"/> <!-- <link rel="stylesheet" href="/css/tachyons.css" type="text/css" /> --> </head> <body class="bg-washed-green black-70 ph0 sans-serif" onload="iframeResizePipe()"> <div> <!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr> </tr> </tbody> </table> </div> <!-- end header part --> </div> </body> </html><!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </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="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">tRamp<div class="ingroups"><a class="el" href="group__envelopes.html">Envelopes</a></div></div> </div> </div><!--header--> <div class="contents"> <p>Value ramp. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga44d22f890ed04cd061cfba963b1f9729"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#ga44d22f890ed04cd061cfba963b1f9729">tRamp_init</a> (tRamp *const, float time, int samplesPerTick, <a class="el" href="struct_l_e_a_f.html">LEAF</a> *const leaf)</td></tr> <tr class="memdesc:ga44d22f890ed04cd061cfba963b1f9729"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a tRamp to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance. <a href="group__tramp.html#ga44d22f890ed04cd061cfba963b1f9729">More...</a><br /></td></tr> <tr class="separator:ga44d22f890ed04cd061cfba963b1f9729"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gac4d46bba12df2569f57bbdb9b407fe24"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#gac4d46bba12df2569f57bbdb9b407fe24">tRamp_initToPool</a> (tRamp *const, float time, int samplesPerTick, tMempool *const)</td></tr> <tr class="memdesc:gac4d46bba12df2569f57bbdb9b407fe24"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a tRamp to a specified mempool. <a href="group__tramp.html#gac4d46bba12df2569f57bbdb9b407fe24">More...</a><br /></td></tr> <tr class="separator:gac4d46bba12df2569f57bbdb9b407fe24"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga155e473a79ce4b174fa468981bb13750"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#ga155e473a79ce4b174fa468981bb13750">tRamp_free</a> (tRamp *const)</td></tr> <tr class="memdesc:ga155e473a79ce4b174fa468981bb13750"><td class="mdescLeft"> </td><td class="mdescRight">Free a tRamp from its mempool. <a href="group__tramp.html#ga155e473a79ce4b174fa468981bb13750">More...</a><br /></td></tr> <tr class="separator:ga155e473a79ce4b174fa468981bb13750"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gadd8abe3a4b8f0f082d1a7f2c752f7980"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#gadd8abe3a4b8f0f082d1a7f2c752f7980">tRamp_tick</a> (tRamp *const)</td></tr> <tr class="separator:gadd8abe3a4b8f0f082d1a7f2c752f7980"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga4a3488c43e978d905080773353ce40f4"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#ga4a3488c43e978d905080773353ce40f4">tRamp_sample</a> (tRamp *const)</td></tr> <tr class="separator:ga4a3488c43e978d905080773353ce40f4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gada173eb52e34ee8fb16d79026014a4be"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#gada173eb52e34ee8fb16d79026014a4be">tRamp_setTime</a> (tRamp *const, float time)</td></tr> <tr class="separator:gada173eb52e34ee8fb16d79026014a4be"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gad348c3b0601d99326ce06ba017ef2508"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#gad348c3b0601d99326ce06ba017ef2508">tRamp_setDest</a> (tRamp *const, float dest)</td></tr> <tr class="separator:gad348c3b0601d99326ce06ba017ef2508"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:gafe5e687461cdb8b7cd0714b9fdca4223"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tramp.html#gafe5e687461cdb8b7cd0714b9fdca4223">tRamp_setVal</a> (tRamp *const, float val)</td></tr> <tr class="separator:gafe5e687461cdb8b7cd0714b9fdca4223"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <p>Value ramp. </p> <h2 class="groupheader">Function Documentation</h2> <a id="ga44d22f890ed04cd061cfba963b1f9729"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga44d22f890ed04cd061cfba963b1f9729">◆ </a></span>tRamp_init()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_init </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>time</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>samplesPerTick</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_l_e_a_f.html">LEAF</a> *const </td> <td class="paramname"><em>leaf</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Initialize a tRamp to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the tRamp to initialize. </td></tr> <tr><td class="paramname">leaf</td><td>A pointer to the leaf instance. </td></tr> </table> </dd> </dl> </div> </div> <a id="gac4d46bba12df2569f57bbdb9b407fe24"></a> <h2 class="memtitle"><span class="permalink"><a href="#gac4d46bba12df2569f57bbdb9b407fe24">◆ </a></span>tRamp_initToPool()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_initToPool </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>time</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>samplesPerTick</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">tMempool * const </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Initialize a tRamp to a specified mempool. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the tRamp to initialize. </td></tr> <tr><td class="paramname">mempool</td><td>A pointer to the tMempool to use. </td></tr> </table> </dd> </dl> </div> </div> <a id="ga155e473a79ce4b174fa468981bb13750"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga155e473a79ce4b174fa468981bb13750">◆ </a></span>tRamp_free()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_free </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Free a tRamp from its mempool. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the tRamp to free. </td></tr> </table> </dd> </dl> </div> </div> <a id="gadd8abe3a4b8f0f082d1a7f2c752f7980"></a> <h2 class="memtitle"><span class="permalink"><a href="#gadd8abe3a4b8f0f082d1a7f2c752f7980">◆ </a></span>tRamp_tick()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float tRamp_tick </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the relevant tRamp. </td></tr> </table> </dd> </dl> </div> </div> <a id="ga4a3488c43e978d905080773353ce40f4"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga4a3488c43e978d905080773353ce40f4">◆ </a></span>tRamp_sample()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float tRamp_sample </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the relevant tRamp. </td></tr> </table> </dd> </dl> </div> </div> <a id="gada173eb52e34ee8fb16d79026014a4be"></a> <h2 class="memtitle"><span class="permalink"><a href="#gada173eb52e34ee8fb16d79026014a4be">◆ </a></span>tRamp_setTime()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_setTime </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>time</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the relevant tRamp. </td></tr> </table> </dd> </dl> </div> </div> <a id="gad348c3b0601d99326ce06ba017ef2508"></a> <h2 class="memtitle"><span class="permalink"><a href="#gad348c3b0601d99326ce06ba017ef2508">◆ </a></span>tRamp_setDest()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_setDest </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>dest</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the relevant tRamp. </td></tr> </table> </dd> </dl> </div> </div> <a id="gafe5e687461cdb8b7cd0714b9fdca4223"></a> <h2 class="memtitle"><span class="permalink"><a href="#gafe5e687461cdb8b7cd0714b9fdca4223">◆ </a></span>tRamp_setVal()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tRamp_setVal </td> <td>(</td> <td class="paramtype">tRamp * const </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>val</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ramp</td><td>A pointer to the relevant tRamp. </td></tr> </table> </dd> </dl> </div> </div> </div><!-- contents --> <!-- HTML footer for doxygen 1.8.18--> <!-- start footer part --> </body> </html>