~ubuntu-branches/ubuntu/trusty/csound-manual/trusty-proposed

« back to all changes in this revision

Viewing changes to opcodes/tablei.xml

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Sateler
  • Date: 2011-08-01 22:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801222158-90kslkp5ujci2f5d
Tags: 1:5.13~dfsg-1
* New upstream release
 - Add Menno Knevel to the copyright file
 - Refresh patch 2000-stripped-opcodes.diff
 - Update copyright hints file
* Update Vcs-* headers
* Bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    <refentrytitle>tablei</refentrytitle>
7
7
  </refmeta>
8
8
 
9
 
 
10
 
 
11
9
  <refnamediv>
12
10
    <refname>tablei</refname>
13
11
    <refpurpose>
14
12
      Accesses table values by direct indexing with linear interpolation.
15
 
          </refpurpose>
 
13
    </refpurpose>
16
14
  </refnamediv>
17
15
 
18
16
  <refsect1>
53
51
      <emphasis>iwrap</emphasis> (optional) -- wraparound index flag. The default value is 0.
54
52
      <itemizedlist>
55
53
        <listitem>
56
 
          <para>0 = nowrap (index &lt; 0 treated as index=0; index tablesize sticks at index=size)</para>
 
54
          <para>0 = nowrap (index &lt; 0 treated as index=0; index &gt; tablesize sticks at index=size)</para>
57
55
        </listitem>
58
56
 
59
57
        <listitem>
66
64
  <refsect1>
67
65
    <title>Performance</title>
68
66
    <para>
69
 
      <emphasis>tablei</emphasis> is a 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. Note that when <emphasis>tablei</emphasis> uses a periodic index whose modulo <emphasis>n</emphasis> is less than the power of 2 table length, the interpolation process requires that there be an (<emphasis>n</emphasis>+ 1)th table value that is a repeat of the 1st (see <link linkend="f"><citetitle>f Statement</citetitle></link> in score).
 
67
      <emphasis>tablei</emphasis> is a 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. Note that when <emphasis>tablei</emphasis> uses a periodic index whose modulo <emphasis>n</emphasis> is less than the power of 2 table length, the interpolation process requires that there be an (<emphasis>n</emphasis> + 1)th table value that is a repeat of the 1st (see <link linkend="f"><citetitle>f Statement</citetitle></link> in score).
70
68
    </para>
71
69
  </refsect1>
72
70