<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!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/html; charset=UTF-8" /> <title>oscil1</title> <link rel="stylesheet" href="csound.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="oscil.html" title="oscil" /> <link rel="next" href="oscil1i.html" title="oscil1i" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">oscil1</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="oscil.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="oscil1i.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="oscil1"> <a id="oscil1"></a> <div class="titlepage"></div> <a id="IndexOscil1" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">oscil1</span> </h2> <p>oscil1 — Accesses table values by incremental sampling. </p> </div> <div class="refsect1" title="Description"> <a id="id3061615"></a> <h2>Description</h2> <p> Accesses table values by incremental sampling. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3061626"></a> <h2>Syntax</h2> <pre class="synopsis">kres <span class="command"><strong>oscil1</strong></span> idel, kamp, idur, ifn</pre> </div> <div class="refsect1" title="Initialization"> <a id="id3061840"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>idel</em></span> -- delay in seconds before <span class="emphasis"><em>oscil1</em></span> incremental sampling begins. </p> <p> <span class="emphasis"><em>idur</em></span> -- duration in seconds to sample through the <span class="emphasis"><em>oscil1</em></span> table just once. A zero or negative value will cause all initialization to be skipped. </p> <p> <span class="emphasis"><em>ifn</em></span> -- function table number. <span class="emphasis"><em>tablei, oscil1i</em></span> require the extended guard point. </p> </div> <div class="refsect1" title="Performance"> <a id="id3062553"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kamp</em></span> -- amplitude factor. </p> <p> <span class="emphasis"><em>oscil1</em></span> accesses values by sampling once through the function table at a rate determined by <span class="emphasis"><em>idur</em></span>. For the first <span class="emphasis"><em>idel</em></span> seconds, the point of scan will reside at the first location of the table; it will then begin moving through the table at a constant rate, reaching the end in another <span class="emphasis"><em>idur</em></span> seconds; from that time on (i.e. after <span class="emphasis"><em>idel</em></span> + <span class="emphasis"><em>idur</em></span> seconds) it will remain pointing at the last location. Each value obtained from sampling is then multiplied by an amplitude factor <span class="emphasis"><em>kamp</em></span> before being written into the result. </p> </div> <div class="refsect1" title="See Also"> <a id="id3062603"></a> <h2>See Also</h2> <p> <a class="link" href="table.html" title="table"><em class="citetitle">table</em></a>, <a class="link" href="tablei.html" title="tablei"><em class="citetitle">tablei</em></a>, <a class="link" href="table3.html" title="table3"><em class="citetitle">table3</em></a>, <a class="link" href="oscil1i.html" title="oscil1i"><em class="citetitle">oscil1i</em></a>, <a class="link" href="osciln.html" title="osciln"><em class="citetitle">osciln</em></a> </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="oscil.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="oscil1i.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">oscil </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> oscil1i</td> </tr> </table> </div> </body> </html>