Debian Codegraph @

opcodes/downsamp.xml

raw symbols SCIP
1
2 <refentry id="downsamp">
3 <indexterm id="IndexDownsamp"><primary>downsamp</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Sample Level Operators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>downsamp</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>downsamp</refname>
13 <refpurpose>
14 Modify a signal by down-sampling.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Modify a signal by down-sampling.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>kres <command>downsamp</command> asig [, iwlen]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iwlen</emphasis> (optional) -- window length in samples over which the audio signal is averaged to determine a downsampled value. Maximum length is <emphasis>ksmps</emphasis>; 0 and 1 imply no window averaging. The default value is 0.
34 </para>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>downsamp</emphasis> converts an audio signal to a control signal by downsampling. It produces one kval for each audio control period. The optional window invokes a simple averaging process to suppress foldover.
41 </para>
42 </refsect1>
43
44 <refsect1>
45 <title>Examples</title>
46 <para>
47 Here is an example of the downsamp opcode. It uses the file <ulink url="examples/downsamp.csd"><citetitle>downsamp.csd</citetitle></ulink>.
48
49 <example>
50 <title>Example of the downsamp opcode.</title>
51
52
53
54 <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>
55 <xi:include href="examples-xml/downsamp.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
56 </example>
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>See also</title>
62 <para><link linkend="SigmodSample"><citetitle>Sample Level Operators</citetitle></link></para>
63 </refsect1>
64
65 </refentry>