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

« back to all changes in this revision

Viewing changes to opcodes/tablefilter.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:
 
1
 
 
2
<refentry id="tablefilter">
 
3
<indexterm id="IndexTablefilter"><primary>tablefilter</primary></indexterm>
 
4
  <refentryinfo><title>Table Control:Models and Emulations</title></refentryinfo>
 
5
  <refmeta>
 
6
    <refentrytitle>tablefilter</refentrytitle>
 
7
  </refmeta>
 
8
 
 
9
 
 
10
 
 
11
  <refnamediv>
 
12
    <refname>tablefilter</refname>
 
13
    <refpurpose>
 
14
      Filters a source table and writes result into a destination table.
 
15
    </refpurpose>
 
16
  </refnamediv>
 
17
 
 
18
  <refsect1>
 
19
    <title>Description</title>
 
20
    <para>
 
21
      This opcode can be used in order to filter values from function
 
22
      tables following certain algorithms. The filtered output is
 
23
      written into a destination table and the number of elements that
 
24
      have passed the filter is returned.
 
25
    </para>
 
26
  </refsect1>
 
27
 
 
28
  <refsect1>
 
29
    <title>Syntax</title>
 
30
    <synopsis>knumpassed <command>tablefilter</command> kouttable, kintatble, kmode, kparam</synopsis>
 
31
  </refsect1>
 
32
 
 
33
  <refsect1>
 
34
    <title>Performance</title>
 
35
 
 
36
    <para>
 
37
      <emphasis>knumpassed</emphasis> -- the number of elements that
 
38
      have passed the filter.
 
39
    </para>
 
40
 
 
41
    <para>
 
42
      <emphasis>kouttable</emphasis> -- the number of the table containing the values that have passed.
 
43
    </para>
 
44
 
 
45
    <para>
 
46
      <emphasis>kintatble</emphasis> -- the number of the table used as filter input.
 
47
    </para>
 
48
 
 
49
    <para>
 
50
      <emphasis>kmode</emphasis> -- mode of the filter:
 
51
      <itemizedlist>
 
52
        <listitem>
 
53
          1 -- tests the weight of the denominators of the fractions
 
54
          in the source table.  Letting pass only vaules from the
 
55
          source that are less heavy than the weight of the threshold.
 
56
        </listitem>
 
57
        <listitem>
 
58
          2 -- tests the weight of the denominators of the fractions
 
59
          in the source table.  Letting pass only vaules from the
 
60
          source that are heavier than or equal to the weight of the
 
61
          threshold.
 
62
        </listitem>
 
63
      </itemizedlist>
 
64
    </para>
 
65
 
 
66
    <para>
 
67
      <emphasis>kparam</emphasis> -- integer threshold parameter for
 
68
      the filter. It means that denominators whose weights are heavier
 
69
      than the weight of this threshold are not passed through the
 
70
      filter. The weight of an integer is calculated using Clarence
 
71
      Barlow's function of indigestibility of a number. According to
 
72
      this function, higher prime numbers contribute to an increased
 
73
      weight of any natural integer they divide.  The order of the
 
74
      first 16 integers according to their indigestibility is: 1, 2,
 
75
      4, 3, 8, 6, 16, 12, 9, 5, 10, 15, 7, 14
 
76
    </para>
 
77
  </refsect1>
 
78
 
 
79
  <refsect1>
 
80
    <title>Examples</title>
 
81
    <para>
 
82
      Here is an example of the tablefilter opcode. It uses the file <ulink url="examples/tablefilter.csd"><citetitle>tablefilter.csd</citetitle></ulink>.
 
83
 
 
84
      <example>
 
85
        <title>Example of the tablefilter opcode.</title>
 
86
 
 
87
 
 
88
        <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>
 
89
          <xi:include href="examples-xml/tablefilter.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
90
      </example>
 
91
    </para>
 
92
  </refsect1>
 
93
 
 
94
  <refsect1>
 
95
    <title>Credits</title>
 
96
    <para>
 
97
      <simplelist>
 
98
        <member>Author: Georg Boenn </member>
 
99
        <member>University of Glamorgan, UK</member>
 
100
      </simplelist>
 
101
    </para>
 
102
 
 
103
    <para>New in Csound version 5.13</para>
 
104
  </refsect1>
 
105
</refentry>