Debian Codegraph @

opcodes/signum.xml

raw symbols SCIP
1
2 <refentry id="signum">
3 <indexterm id="IndexSignum"><primary>signum</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Trigonometric Functions</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>signum</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>signum</refname>
13
14 <refpurpose>
15 Performs a signum function.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Returns the signum of <emphasis>x</emphasis> returning -1, 0 or 1.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>signum</command>(x) (no rate restriction)</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Examples</title>
33 <para>
34 Here is an example of the signum opcode. It uses the file <ulink url="examples/signum.csd"><citetitle>signum.csd</citetitle></ulink>.
35 <example>
36 <title>Example of the signum opcode.</title>
37 <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>
38 <xi:include href="examples-xml/signum.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
39 </example>
40 </para>
41 <para>
42 Here is another example of the signum opcode. It uses the file <ulink url="examples/signum2.csd"><citetitle>signum2.csd</citetitle></ulink>.
43 <example>
44 <xi:include href="examples-xml/signum2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
45 </example>
46 <para>
47 A musical example featuring the signum opcode: <ulink url="examples/musical/Signum_Welsh.csd"><citetitle>Signum_Welsh.csd</citetitle></ulink> by Kevin Welsh.
48 </para>
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>See also</title>
54 <para><link linkend="MathTrig"><citetitle>Trigonometric Functions</citetitle></link></para>
55 </refsect1>
56
57 <refsect1>
58 <title>Credits</title>
59 <para>
60 <simplelist>
61 <member>Author: &namejohn;</member>
62 <member>University of Bath, Codemist Ltd.</member>
63 <member>Bath, UK</member>
64 <member>July 2013</member>
65 </simplelist>
66 </para>
67
68 <para>New in Csound version 6.01</para>
69 </refsect1>
70
71
72 </refentry>