| 1 | |
| 2 | <refentry id="oscil1i"> |
| 3 | <indexterm id="IndexOscil1i"><primary>oscil1i</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Table Access</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>oscil1i</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>oscil1i</refname> |
| 11 | <refpurpose> |
| 12 | Accesses table values by incremental sampling with linear interpolation. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Accesses table values by incremental sampling with linear interpolation. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>kres <command>oscil1i</command> idel, kamp, idur [, ifn]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>idel</emphasis> -- delay in seconds before <emphasis>oscil1i</emphasis> incremental sampling begins. |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>idur</emphasis> -- duration in seconds to sample |
| 36 | through the <emphasis>oscil1i</emphasis> table just once. A |
| 37 | negative value will make the table be read from the end to the beginning. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>ifn</emphasis> -- (optional) function table |
| 42 | number. <emphasis>oscil1i</emphasis> requires the extended guard |
| 43 | point. The default value is -1 indicating a sine wave. |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Performance</title> |
| 49 | <para> |
| 50 | <emphasis>kamp</emphasis> -- amplitude factor |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | <emphasis>oscil1i</emphasis> is an interpolating unit in which the fractional part of index is used to interpolate between adjacent table entries. The smoothness gained by interpolation is at some small cost in execution time (see also <link linkend="oscili"><citetitle>oscili</citetitle></link>, etc.), but the interpolating and non-interpolating units are otherwise interchangeable. |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Examples</title> |
| 60 | <para> |
| 61 | Here is an example of the oscil1i opcode. It uses the file <ulink url="examples/oscil1i.csd"><citetitle>oscil1i.csd</citetitle></ulink>. |
| 62 | <example> |
| 63 | <title>Example of the oscil1i opcode.</title> |
| 64 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 65 | <xi:include href="examples-xml/oscil1i.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 66 | </example> |
| 67 | </para> |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>See Also</title> |
| 72 | <para><link linkend="SiggenTableacc"><citetitle>Table Access</citetitle></link></para> |
| 73 | </refsect1> |
| 74 | |
| 75 | </refentry> |