Debian Codegraph @

opcodes/endop.xml

raw symbols SCIP
1
2 <refentry id="endop">
3 <indexterm id="IndexEndop"><primary>endop</primary></indexterm>
4 <refentryinfo><title>Orchestra Syntax:Block Statements</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>endop</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>endop</refname>
13 <refpurpose>
14 Marks the end of an user-defined opcode block.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Marks the end of an user-defined opcode block.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>endop</command></synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 The syntax of a user-defined opcode block is as follows:
34
35 <programlisting>
36 <emphasis role="oblock">opcode</emphasis> <command>name</command>, outtypes, intypes
37 xinarg1 [, xinarg2] [, xinarg3] ... [xinargN] <emphasis role="opc">xin</emphasis>
38 [<emphasis role="opc">setksmps</emphasis> iksmps]
39 ... the rest of the instrument's code.
40 <emphasis role="opc">xout</emphasis> xoutarg1 [, xoutarg2] [, xoutarg3] ... [xoutargN]
41 <emphasis role="oblock">endop</emphasis></programlisting>
42 </para>
43
44 <para>
45 The new opcode can then be used with the usual syntax:
46
47 <programlisting>
48 [xinarg1] [, xinarg2] ... [xinargN] <command>name</command> [xoutarg1] [, xoutarg2] ... [xoutargN] [, iksmps]</programlisting>
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>Examples</title>
54 <para>
55 Here is an example of the endop opcode. It uses the file <ulink url="examples/endop.csd"><citetitle>endop.csd</citetitle></ulink>.
56 <example>
57 <title>Example of the endop opcode.</title>
58 <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>
59 <xi:include href="examples-xml/endop.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61 </para>
62 </refsect1>
63
64
65 <refsect1>
66 <title>See Also</title>
67 <para>
68 <link linkend="OrchUDO"><citetitle>User Defined Opcodes (UDO)</citetitle></link>
69 </para>
70 <para> More information on this opcode: <ulink url="http://www.csoundjournal.com/2006summer/controlFlow_part2.html"><citetitle>http://www.csoundjournal.com/2006summer/controlFlow_part2.html</citetitle></ulink> , written by Steven Yi </para>
71 <para> The user-defined opcode page: <ulink url="http://www.csounds.com/udo/"><citetitle>http://www.csounds.com/udo/</citetitle></ulink> , maintained by Steven Yi </para>
72 </refsect1>
73
74 <refsect1>
75 <title>Credits</title>
76 <para>Author: Istvan Varga, 2002; based on code by Matt J. Ingalls</para>
77 <para>New in version 4.22</para>
78 </refsect1>
79 </refentry>