Debian Codegraph @

opcodes/limit.xml

raw symbols SCIP
1
2 <refentry id="limit">
3 <indexterm id="IndexLimit"><primary>limit</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Signal Limiters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>limit</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>limit</refname>
13 <refpurpose>
14 Sets the lower and upper limits of the value it processes.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Sets the lower and upper limits of the value it processes.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>limit</command> asig, klow, khigh</synopsis>
28
29 <synopsis>ires <command>limit</command> isig, ilow, ihigh</synopsis>
30
31 <synopsis>kres <command>limit</command> ksig, klow, khigh</synopsis>
32
33 <synopsis>ires[] <command>limit</command> isig[], ilow, ihigh</synopsis>
34
35 <synopsis>kres[] <command>limit</command> ksig[], klow, khigh</synopsis>
36
37 </refsect1>
38
39 <refsect1>
40 <title>Initialization</title>
41 <para>
42 <emphasis>isig</emphasis> -- input signal
43 </para>
44
45 <para>
46 <emphasis>ilow</emphasis> -- low threshold
47 </para>
48
49 <para>
50 <emphasis>ihigh</emphasis> -- high threshold
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Performance</title>
56 <para>
57 <emphasis>xsig</emphasis> -- input signal
58 </para>
59
60 <para>
61 <emphasis>klow</emphasis> -- low threshold
62 </para>
63
64 <para>
65 <emphasis>khigh</emphasis> -- high threshold
66 </para>
67
68 <para>
69 <emphasis>limit</emphasis> sets the lower and upper limits on the <emphasis>xsig</emphasis> value it processes. If <emphasis>xhigh</emphasis> is lower than <emphasis>xlow</emphasis>, then the output will be the average of the two - it will not be affected by <emphasis>xsig</emphasis>.
70 </para>
71
72 <para>
73 This opcode is useful in several situations, such as table indexing or for clipping and modeling a-rate, i-rate or k-rate signals.
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>Examples</title>
79 <para>
80 Here is an example of the limit opcode. It uses the file <ulink url="examples/limit.csd"><citetitle>limit.csd</citetitle></ulink>.
81 <example>
82 <title>Example of the limit opcode.</title>
83 <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>
84 <xi:include href="examples-xml/limit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
85 </example>
86 </para>
87 </refsect1>
88
89 <refsect1>
90 <title>See also</title>
91 <para><link linkend="SigmodSiglimit"><citetitle>Signal Limiters</citetitle></link></para>
92 <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para>
93 </refsect1>
94
95 <refsect1>
96 <title>Credits</title>
97 <para>
98 <simplelist>
99 <member>Author: Robin Whittle</member>
100 <member>Australia</member>
101 </simplelist>
102 </para>
103
104 <para>New in Csound version 3.46</para>
105 </refsect1>
106 </refentry>