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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<refentry id="integ">
<indexterm id="IndexInteg"><primary>integ</primary></indexterm>
  <refentryinfo><title>Signal Modifiers:Sample Level Operators</title></refentryinfo>
  <refmeta>
    <refentrytitle>integ</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>integ</refname>
    <refpurpose>
      Modify a signal by integration.
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Modify a signal by integration.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ares <command>integ</command> asig [, iskip]</synopsis>

    <synopsis>kres <command>integ</command> ksig [, iskip]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iskip</emphasis> (optional) -- initial disposition of internal save space (see <link linkend="reson"><citetitle>reson</citetitle></link>). The default value is 0.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>integ</emphasis> and <link linkend="diff"><citetitle>diff</citetitle></link> perform integration and differentiation on an input control signal or audio signal. Each is the converse of the other, and applying both will reconstruct the original signal. Since these units are special cases of low-pass and high-pass filters, they produce a scaled (and phase shifted) output that is frequency-dependent. Thus <emphasis>diff</emphasis> of a sine produces a cosine, with amplitude 2 * <emphasis>pi</emphasis> * Hz / <emphasis>sr</emphasis> that of the original (for each component partial); <emphasis>integ</emphasis> will inversely affect the magnitudes of its component inputs. With this understanding, these units can provide useful signal modification.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the integ opcode. It uses the file <ulink url="examples/integ.csd"><citetitle>integ.csd</citetitle></ulink>.
      <example>
        <title>Example of the integ opcode.</title>
        <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>
          <xi:include href="examples-xml/integ.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="diff"><citetitle>diff</citetitle></link>,
      <link linkend="downsamp"><citetitle>downsamp</citetitle></link>,
      <link linkend="interp"><citetitle>interp</citetitle></link>,
      <link linkend="samphold"><citetitle>samphold</citetitle></link>,
      <link linkend="upsamp"><citetitle>upsamp</citetitle></link>
    </para>
  </refsect1>
</refentry>